-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (39 loc) · 1.1 KB
/
Cargo.toml
File metadata and controls
47 lines (39 loc) · 1.1 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
[package]
name = "ruvector-nervous-system-wasm"
version = "0.1.0"
edition = "2021"
description = "WASM bindings for ruvector-nervous-system bio-inspired AI components"
license = "MIT"
repository = "https://github.com/ruvnet/ruvector"
documentation = "https://ruv.io/ruvector"
keywords = ["wasm", "neural", "hdс", "btsp", "neuromorphic"]
categories = ["wasm", "science", "algorithms"]
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
# WASM bindings
wasm-bindgen = "0.2"
js-sys = "0.3"
web-sys = { version = "0.3", features = ["console"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde-wasm-bindgen = "0.6"
console_error_panic_hook = { version = "0.1", optional = true }
# RNG for WASM
getrandom = { version = "0.2", features = ["js"] }
rand = "0.8"
[dev-dependencies]
wasm-bindgen-test = "0.3"
[features]
default = ["console_error_panic_hook"]
[profile.release]
# Optimize for size (<100KB target)
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.release.package."*"]
opt-level = "z"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false