-
Notifications
You must be signed in to change notification settings - Fork 23
/
Cargo.toml
150 lines (141 loc) · 5.49 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[package]
name = "iota-crypto"
version = "0.23.2"
license = "Apache-2.0"
authors = [ "IOTA Stiftung" ]
edition = "2021"
readme = "README.md"
keywords = [ "iota", "cryptography", "security" ]
categories = [ "cryptography" ]
description = "The canonical source of cryptographic ground-truth for all IOTA Rust projects"
homepage = "https://iota.org"
repository = "https://github.com/iotaledger/crypto.rs"
exclude = [ "/tests", "/.github", "/.changes" ]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [ "--cfg", "docsrs" ]
[lib]
name = "crypto"
[features]
default = [ ]
std = [ "k256?/std", "serde?/std" ]
aes-cbc = [
"dep:aes",
"cipher",
"dep:cbc",
"hmac",
"sha",
"subtle",
"zeroize"
]
aes-kw = [ "dep:aes" ]
aes-gcm = [ "dep:aes-gcm", "cipher" ]
chacha = [ "chacha20poly1305", "cipher" ]
ed25519 = [ "ed25519-zebra", "zeroize" ]
x25519 = [ "x25519-dalek", "curve25519-dalek", "zeroize" ]
random = [ "getrandom", "rand?/getrandom" ]
rand = [ "dep:rand" ]
aes = [ "aes-cbc", "aes-gcm", "aes-kw" ]
blake2b = [ "blake2", "digest" ]
ternary_hashes = [ ]
curl-p = [ "ternary_hashes", "ternary_encoding" ]
kerl_deprecated_do_not_use = [
"ternary_hashes",
"ternary_encoding",
"byteorder",
"lazy_static",
"dep:tiny-keccak"
]
ternary_keys = [ ]
ternary_signatures = [ ]
wots_deprecated_do_not_use = [
"ternary_keys",
"ternary_signatures",
"ternary_encoding",
"sha3",
"zeroize",
"dep:rand",
"bee-common-derive"
]
sha = [ "dep:sha2", "digest" ]
keccak = [ "dep:tiny-keccak" ]
hmac = [ "dep:hmac" ]
pbkdf2 = [ "dep:pbkdf2", "pbkdf2/hmac", "dep:sha2" ]
bip39 = [
"dep:iterator-sorted",
"dep:unicode-normalization",
"pbkdf2",
"sha",
"zeroize",
"zeroize/alloc"
]
bip39-en = [ "bip39" ]
bip39-jp = [ "bip39" ]
bip44 = [ "slip10" ]
slip10 = [ "hmac", "sha", "zeroize" ]
cipher = [ "aead", "dep:cipher", "generic-array" ]
ternary_encoding = [ "serde", "num-traits" ]
age = [
"aead",
"base64",
"chacha20poly1305",
"dep:hkdf",
"dep:hmac",
"dep:scrypt",
"dep:sha2",
"zeroize"
]
secp256k1 = [ "dep:k256", "k256?/ecdsa", "zeroize" ]
serde = [
"dep:serde",
"ed25519-zebra?/serde",
"k256?/serde",
"k256?/pem"
]
[dependencies]
aead = { version = "0.5", optional = true, default-features = false }
aes = { version = "0.8", optional = true, default-features = false }
aes-gcm = { version = "0.10", optional = true, default-features = false, features = [ "aes" ] }
bee-common-derive = { version = "0.1.1-alpha", optional = true, default-features = false }
blake2 = { version = "0.10.5", optional = true, default-features = false }
byteorder = { version = "1.4", optional = true, default-features = false }
cbc = { version = "0.1", optional = true, default-features = false }
chacha20poly1305 = { version = "0.10", optional = true, default-features = false }
cipher = { version = "0.4", optional = true, default-features = false, features = [ "block-padding" ] }
digest = { version = "0.10", optional = true, default-features = false }
ed25519-zebra = { version = "4.0.1", optional = true, default-features = false }
generic-array = { version = "0.14", optional = true, default-features = false }
getrandom = { version = "0.2", optional = true, default-features = false, features = [ "js" ] }
hmac = { version = "0.12", optional = true, default-features = false }
iterator-sorted = { version = "0.1.0", optional = true, default-features = false }
lazy_static = { version = "1.4", optional = true, default-features = false }
num-traits = { version = "0.2", optional = true, default-features = false }
pbkdf2 = { version = "0.12", optional = true, default-features = false }
rand = { version = "0.8", optional = true, default-features = false }
subtle = { version = "2.4", default-features = false, optional = true }
sha2 = { version = "0.10", optional = true, default-features = false }
serde = { version = "1.0", optional = true, default-features = false, features = [ "derive", "alloc" ] }
sha3 = { version = "0.10", optional = true, default-features = false }
tiny-keccak = { version = "2.0", optional = true, default-features = false, features = [ "keccak" ] }
unicode-normalization = { version = "0.1", optional = true, default-features = false }
curve25519-dalek = { version = "4.1.3", optional = true, default-features = false }
x25519-dalek = { version = "2.0.1", optional = true, default-features = false, features = ["static_secrets", "zeroize"] }
zeroize = { version = "1.5", optional = true, default-features = false, features = [ "zeroize_derive" ] }
scrypt = { version = "0.11", optional = true, default-features = false }
hkdf = { version = "0.12", optional = true, default-features = false }
base64 = { version = "0.21", optional = true, default-features = false }
k256 = { version = "0.13", optional = true, default-features = false, features = [ "ecdsa" ] }
[target."cfg(not(target_family = \"wasm\"))".dependencies]
cpufeatures = { version = "0.2", optional = true, default-features = false }
[build-dependencies]
autocfg = { version = "1.1", default-features = false }
[dev-dependencies]
hex = { version = "0.4", default-features = false, features = [ "alloc", "std" ] }
rand = { version = "0.8", default-features = false, features = [ "std", "std_rng", "min_const_gen" ] }
serde = { version = "1.0", default-features = false, features = [ "derive" ] }
serde_json = { version = "1.0", default-features = false, features = [ "alloc", "std" ] }
age = { version = "0.10", default-features = false }
[profile.dev]
split-debuginfo = "unpacked"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_i128)', 'cfg(has_u128)'] }