-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
50 lines (40 loc) · 1.28 KB
/
Cargo.toml
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
[package]
name = "luna-vdb"
version = "0.0.1"
authors = ["dingyi <[email protected]>"]
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
[dependencies]
wasm-bindgen = "0.2.84"
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
tsify = { version = "0.4.5", features = ["js"] }
kiddo = { version = "5.0.3", features = ["serde"] }
serde = "1.0.217"
serde-wasm-bindgen = "0.6.5"
wee_alloc = { version = "0.4.5", optional = true }
flate2 = "1.0.35"
bincode = "1.3.3"
[dev-dependencies]
getrandom = { version = "0.2.15", features = ["js"] }
wasm-bindgen-test = "0.3.34"
web-sys = { version = "0.3.67", features = ["console"] }
[profile.release]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
[profile.dev]
debug = true
debug-assertions = true
opt-level = 1
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[package.metadata.wasm-pack]
skip-pkg-json = true
[package.metadata.wasm-pack.profile.dev.wasm-bindgen]
dwarf-debug-info = true