kesto/babyjubjub-wasm-example/Cargo.toml
babyjubjub-wasm-example/Cargo.tomlRaw
1[package]
2name = "wasm-bindings"
3version = "0.1.0"
4authors = ["arnaucube <root@arnaucube.com>"]
5edition = "2018"
6
7[lib]
8crate-type = ["cdylib", "rlib"]
9
10[features]
11default = ["console_error_panic_hook"]
12
13[dependencies]
14wasm-bindgen = "0.2.63"
15
16ark-std = { version = "0.4.0" }
17poseidon-ark = { git = "https://github.com/arnaucube/poseidon-ark" }
18babyjubjub-ark = { git="https://github.com/arnaucube/babyjubjub-ark", features = ["wasm"] }
19# babyjubjub-ark = { path="../../../babyjubjub-ark", features = ["wasm"] }
20
21# The `console_error_panic_hook` crate provides better debugging of panics by
22# logging them with `console.error`. This is great for development, but requires
23# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
24# code size when deploying.
25console_error_panic_hook = { version = "0.1.6", optional = true }
26
27# `wee_alloc` is a tiny allocator for wasm that is only ~1K in code size
28# compared to the default allocator's ~10K. It is slower than the default
29# allocator, however.
30wee_alloc = { version = "0.4.5", optional = true }
31
32[dev-dependencies]
33wasm-bindgen-test = "0.3.13"
34
35[profile.release]
36# Tell `rustc` to optimize for small code size.
37opt-level = "s"