1[package]
2name = "sha1"
3version = "0.10.6"
4description = "SHA-1 hash function"
5authors = ["RustCrypto Developers"]
6license = "MIT OR Apache-2.0"
7readme = "README.md"
8edition = "2018"
9documentation = "https://docs.rs/sha1"
10repository = "https://github.com/RustCrypto/hashes"
11keywords = ["crypto", "sha1", "hash", "digest"]
12categories = ["cryptography", "no-std"]
13
14[dependencies]
15digest = "0.10.7"
16cfg-if = "1.0"
17
18[target.'cfg(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"))'.dependencies]
19cpufeatures = "0.2"
20sha1-asm = { version = "0.5", optional = true }
21
22[dev-dependencies]
23digest = { version = "0.10.7", features = ["dev"] }
24hex-literal = "0.2.2"
25
26[features]
27default = ["std"]
28std = ["digest/std"]
29oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57
30asm = ["sha1-asm"] # WARNING: this feature SHOULD NOT be enabled by library crates
31# Use assembly backend for LoongArch64 targets
32# WARNING: Bumps MSRV to 1.72. This feature SHOULD NOT be enabled by library crates
33loongarch64_asm = []
34compress = [] # Expose compress function
35force-soft = [] # Force software implementation
36
37[package.metadata.docs.rs]
38all-features = true
39rustdoc-args = ["--cfg", "docsrs"]
40