-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
38 lines (30 loc) · 1.24 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
[package]
name = "shamir_rust"
version = "0.1.0"
authors = ["msedzinski"]
edition = "2018"
rust-version = "1.57"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
hex = "0.4.3"
num-bigint = "0.2.6"
wasm-bindgen = "0.2.90"
#shamir_secret_sharing = "0.1.1" -> uses rand in version 0.5 which doesn't support wasm-bindgen
#the newest shamir_secret_sharing from github supports rand 0.6 but contains some bugs that cause wasm-pack compilation errors
#the workaround is to fork the repo, take working version (0.1.1) and update for it rand "0.5" -> "0.6"
shamir_secret_sharing = { git = "https://github.com/msedzins/verifiable-secret-sharing", branch = "rand_fixed" }
# enable future in rand which is used by shamir_secret_sharing
rand = { version = "0.6", features = ["wasm-bindgen"] }
# 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 }
[dev-dependencies]
wasm-bindgen-test = "0.3.34"
[features]
default = ["console_error_panic_hook"]
[profile.release]
lto = true
opt-level = 's'