-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathCargo.toml
More file actions
54 lines (43 loc) · 1.26 KB
/
Cargo.toml
File metadata and controls
54 lines (43 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[package]
name = "ruvector-exotic-wasm"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
readme = "README.md"
description = "Exotic AI mechanisms for emergent behavior - Neural Autonomous Orgs, Morphogenetic Networks, Time Crystals"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# WASM
wasm-bindgen = { workspace = true }
js-sys = { workspace = true }
getrandom = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
serde-wasm-bindgen = "0.6"
# Utils
console_error_panic_hook = { version = "0.1", optional = true }
# Math and randomness
rand = { workspace = true }
[dev-dependencies]
wasm-bindgen-test = "0.3"
[features]
default = []
console_error_panic_hook = ["dep:console_error_panic_hook"]
# Ensure getrandom uses wasm_js/js feature for WASM
[target.'cfg(target_arch = "wasm32")'.dependencies]
getrandom = { workspace = true, features = ["wasm_js"] }
getrandom02 = { package = "getrandom", version = "0.2", features = ["js"] }
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[profile.release.package."*"]
opt-level = "z"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false