summaryrefslogtreecommitdiffstats
path: root/security/manager/ssl/crypto_hash/Cargo.toml
blob: 8d5e3f1c19473f00fea0e1c5283d0921b9dbe199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[package]
name = "crypto_hash"
version = "0.1.0"
edition = "2021"

[dependencies]
base64 = "0.21"
digest = "0.10.2"
libc = "0.2"
md-5 = "0.10.2"
nserror = { path = "../../../../xpcom/rust/nserror" }
nsstring = { path = "../../../../xpcom/rust/nsstring" }
sha1 = "0.10.2"
xpcom = { path = "../../../../xpcom/rust/xpcom" }

# bug 1838108: on Windows 7 pre-SP1, AVX instructions are disabled, even though
# they might be supported by the processor. cpufeatures doesn't take this into
# account, so the assembly implementation causes illegal instruction crashes.
# As a workaround for now, use the non-assembly implementation.
[target.'cfg(windows)'.dependencies]
sha2 = { version = "0.10.2", features = ["force-soft"]}
[target.'cfg(not(windows))'.dependencies]
sha2 = "0.10.2"