forked from axelarnetwork/tofn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
67 lines (58 loc) · 1.68 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
[package]
name = "tofn"
version = "1.1.0"
authors = [
"Interoplabs Eng <eng@interoplabs.io>",
]
edition = "2021"
license = "MIT OR Apache-2.0"
rust-version = "1.78.0"
description = "A cryptography library in Rust, used by the Axelar Network."
keywords = ["cryptography", "axelar", "blockchain"]
[lib]
crate-type = ["lib"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
bincode = "1.3.3"
rand_chacha = "0.3"
hmac = "0.12"
zeroize = { version = "1.8", features = ["zeroize_derive"] }
rand = "0.8"
sha2 = { version = "0.10", features = [
"std",
"asm",
], default-features = false }
# Ecdsa deps
k256 = { version = "0.13", features = [
"ecdsa",
], default-features = false, optional = true }
ecdsa = { version = "0.16", features = [
"digest",
], default-features = false, optional = true } # needed only for FromDigest trait
crypto-bigint = { version = "0.5", default-features = false, optional = true }
# Ed25519 deps
ed25519 = { version = "2.2", default-features = false, optional = true }
ed25519-dalek = { version = "2.1", features = [
"rand_core",
"zeroize",
"asm",
], default_features = false, optional = true }
# logging
tracing = { version = "0.1", default-features = false }
[dev-dependencies]
tracing-test = "0.2" # enable logging for tests
tracing-subscriber = { version = "0.3", features = [
"env-filter",
"fmt",
], default-features = false }
goldie = "0.5"
hex = "0.4"
# Don't abort in case there is a panic to clean up data
[profile.dev]
panic = "unwind"
[profile.release]
panic = "unwind"
[features]
default = ["secp256k1", "ed25519"]
secp256k1 = ["dep:ecdsa", "dep:k256", "dep:crypto-bigint"]
ed25519 = ["dep:ed25519", "dep:ed25519-dalek"]