-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathCargo.toml
69 lines (60 loc) · 2.05 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
[package]
name = "mithril-stm"
version = "0.3.36"
edition = { workspace = true }
authors = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "A Rust implementation of Mithril Stake-based Threshold Multisignatures (STMs)."
categories = ["cryptography"]
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
[lib]
crate-type = ["lib", "cdylib", "staticlib"]
[dependencies]
blake2 = "0.10.6"
# Enforce blst portable feature for runtime detection of Intel ADX instruction set.
blst = { version = "0.3.13", features = ["portable"] }
digest = { version = "0.10.7", features = ["alloc"] }
rand_core = "0.6.4"
rayon = "1.10.0"
serde = { version = "1.0.217", features = ["rc", "derive"] }
thiserror = "2.0.9"
[target.'cfg(not(any(target_family = "wasm", windows)))'.dependencies]
# only unix supports the rug backend
rug = { version = "1.26.1", optional = true }
num-bigint = { version = "0.4.6", optional = true }
num-rational = { version = "0.4.2", optional = true }
num-traits = { version = "0.2.19", optional = true }
[target.'cfg(any(target_family = "wasm", windows))'.dependencies]
# WASM and Windows don't support rug backend, fallback to num-integer only
num-bigint = { version = "0.4.6" }
num-rational = { version = "0.4.2" }
num-traits = { version = "0.2.19" }
[dev-dependencies]
bincode = "1.3.3"
criterion = { version = "0.5.1", features = ["html_reports"] }
hex = "0.4.3"
num-bigint = "0.4.6"
num-rational = "0.4.2"
proptest = "1.6.0"
rand = "0.8.5"
rand_chacha = "0.3.1"
[[bench]]
name = "multi_sig"
harness = false
required-features = ["benchmark-internals"]
[[bench]]
name = "stm"
harness = false
[[bench]]
name = "size_benches"
harness = false
[features]
default = ["rug-backend"]
rug-backend = ["rug/default"]
num-integer-backend = ["num-bigint", "num-rational", "num-traits"]
portable = [] # deprecated, will be removed soon
benchmark-internals = [] # For benchmarking multi_sig
batch-verify-aggregates = [
] # For batch verification of multi-signatures (set automatically by build script)