forked from w3f/schnorrkel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
62 lines (58 loc) · 2.57 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
[package]
name = "schnorrkel"
version = "0.11.0"
authors = ["Jeff Burdges <[email protected]>"]
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/w3f/schnorrkel"
documentation = "https://docs.rs/schnorrkel"
keywords = ["cryptography", "ed25519", "curve25519", "signature", "ECC"]
categories = ["cryptography", "no-std"]
description = "Schnorr VRF, signatures, etc. using the Ristretto group"
exclude = [ ".gitignore", "res/*" ]
edition = "2021"
[dependencies]
aead = { version = "0.5.2", default-features = false, optional = true }
arrayref = { version = "0.3.6", default-features = false }
# needs to match parity-scale-codec which is "=0.7.0"
arrayvec = { version = "0.7.0", default-features = false }
curve25519-dalek = { version = "4.0.0", default-features = false, features = ["digest", "zeroize", "precomputed-tables"] }
subtle = { version = "2.4.0", default-features = false }
merlin = { version = "3.0.0", default-features = false }
rand_core = { version = "0.6.2", default-features = false }
serde_crate = { version = "1.0.130", package = "serde", default-features = false, optional = true }
serde_bytes = { version = "0.11.5", default-features = false, optional = true }
cfg-if = { version = "1.0.0", optional = true }
sha2 = { version = "0.10.6", default-features = false }
failure = { version = "0.1.8", default-features = false, optional = true }
zeroize = { version = "1.4.2", default-features = false, features = ["zeroize_derive"] }
[dev-dependencies]
rand = "0.8.4"
rand_chacha = { version = "0.3.1", default-features = false }
hex-literal = "0.4.1"
sha3 = "0.10.7"
bincode = "1.3.3"
criterion = "0.4.0"
serde_json = "1.0.68"
[[bench]]
name = "schnorr_benchmarks"
harness = false
[features]
default = ["std", "getrandom", "precomputed-tables"]
preaudit_deprecated = []
nightly = []
alloc = ["curve25519-dalek/alloc", "rand_core/alloc", "serde_bytes/alloc"]
std = ["alloc", "getrandom", "serde_bytes/std"]
asm = ["sha2/asm"]
precomputed-tables = ["curve25519-dalek/precomputed-tables"]
serde = ["serde_crate", "serde_bytes", "cfg-if"]
# We cannot make getrandom a direct dependency because rand_core makes
# getrandom a feature name, which requires forwarding.
getrandom = ["rand_core/getrandom"]
# We thus cannot forward the wasm-bindgen feature of getrandom,
# but our consumers could depend upon getrandom and activate its
# wasm-bindgen feature themselve, which works due to cargo features
# being additive.
# wasm-bindgen = ["getrandom/wasm-bindgen"]
# See https://github.com/rust-lang/cargo/issues/9210
# and https://github.com/w3f/schnorrkel/issues/65#issuecomment-786923588