Debian Codegraph @

debian/rust-vendor/sha2/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2024"
14 rust-version = "1.85"
15 name = "sha2"
16 version = "0.11.0"
17 authors = ["RustCrypto Developers"]
18 build = false
19 autolib = false
20 autobins = false
21 autoexamples = false
22 autotests = false
23 autobenches = false
24 description = """
25 Pure Rust implementation of the SHA-2 hash function family
26 including SHA-224, SHA-256, SHA-384, and SHA-512.
27 """
28 documentation = "https://docs.rs/sha2"
29 readme = "README.md"
30 keywords = [
31 "sha2",
32 "hash",
33 "digest",
34 ]
35 categories = [
36 "cryptography",
37 "no-std",
38 ]
39 license = "MIT OR Apache-2.0"
40 repository = "https://github.com/RustCrypto/hashes"
41
42 [package.metadata.docs.rs]
43 all-features = true
44
45 [features]
46 alloc = ["digest/alloc"]
47 default = [
48 "alloc",
49 "oid",
50 ]
51 oid = ["digest/oid"]
52 zeroize = ["digest/zeroize"]
53
54 [lib]
55 name = "sha2"
56 path = "src/lib.rs"
57
58 [[test]]
59 name = "mod"
60 path = "tests/mod.rs"
61
62 [[bench]]
63 name = "mod"
64 path = "benches/mod.rs"
65
66 [dependencies.cfg-if]
67 version = "1"
68
69 [dependencies.digest]
70 version = "0.11"
71
72 [dev-dependencies.digest]
73 version = "0.11"
74 features = ["dev"]
75
76 [dev-dependencies.hex-literal]
77 version = "1"
78
79 [target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))'.dependencies.cpufeatures]
80 version = "0.3"
81
82 [lints.rust.unexpected_cfgs]
83 level = "warn"
84 priority = 0
85 check-cfg = [
86 'cfg(sha2_backend, values("soft", "riscv-zknh"))',
87 'cfg(sha2_256_backend, values("aarch64-sha2", "soft", "riscv-zknh", "x86-sha"))',
88 'cfg(sha2_512_backend, values("aarch64-sha3", "soft", "riscv-zknh", "x86-avx2"))',
89 'cfg(sha2_backend_soft, values("compact"))',
90 'cfg(sha2_backend_riscv_zknh, values("compact"))',
91 ]