Debian Codegraph @

debian/rust-vendor/chacha20/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 = "chacha20"
16 version = "0.10.2"
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 The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits
26 from the RustCrypto `cipher` crate, with optional architecture-specific
27 hardware acceleration (AVX2, SSE2). Additionally provides the ChaCha8, ChaCha12,
28 XChaCha20, XChaCha12 and XChaCha8 stream ciphers, and also optional
29 rand_core-compatible RNGs based on those ciphers.
30 """
31 documentation = "https://docs.rs/chacha20"
32 readme = "README.md"
33 keywords = [
34 "crypto",
35 "stream-cipher",
36 "chacha8",
37 "chacha12",
38 "xchacha20",
39 ]
40 categories = [
41 "cryptography",
42 "no-std",
43 ]
44 license = "MIT OR Apache-2.0"
45 repository = "https://github.com/RustCrypto/stream-ciphers"
46 resolver = "2"
47
48 [package.metadata.docs.rs]
49 all-features = true
50
51 [features]
52 default = ["cipher"]
53 legacy = ["cipher"]
54 rng = ["dep:rand_core"]
55 xchacha = ["cipher"]
56
57 [lib]
58 name = "chacha20"
59 path = "src/lib.rs"
60
61 [[test]]
62 name = "kats"
63 path = "tests/kats.rs"
64
65 [[test]]
66 name = "rng"
67 path = "tests/rng.rs"
68
69 [[bench]]
70 name = "mod"
71 path = "benches/mod.rs"
72
73 [dependencies.cfg-if]
74 version = "1"
75
76 [dependencies.cipher]
77 version = "0.5"
78 features = ["stream-wrapper"]
79 optional = true
80
81 [dependencies.rand_core]
82 version = "0.10"
83 optional = true
84 default-features = false
85
86 [dependencies.zeroize]
87 version = "1.8.1"
88 optional = true
89 default-features = false
90
91 [dev-dependencies.cipher]
92 version = "0.5"
93 features = ["dev"]
94
95 [dev-dependencies.hex-literal]
96 version = "1"
97
98 [target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dependencies.cpufeatures]
99 version = "0.3"
100
101 [lints.clippy]
102 borrow_as_ptr = "warn"
103 cast_lossless = "warn"
104 cast_possible_truncation = "warn"
105 cast_possible_wrap = "warn"
106 cast_precision_loss = "warn"
107 cast_sign_loss = "warn"
108 checked_conversions = "warn"
109 from_iter_instead_of_collect = "warn"
110 implicit_saturating_sub = "warn"
111 manual_assert = "warn"
112 map_unwrap_or = "warn"
113 missing_errors_doc = "warn"
114 missing_panics_doc = "warn"
115 mod_module_files = "warn"
116 must_use_candidate = "warn"
117 needless_range_loop = "allow"
118 ptr_as_ptr = "warn"
119 redundant_closure_for_method_calls = "warn"
120 ref_as_ptr = "warn"
121 return_self_not_must_use = "warn"
122 semicolon_if_nothing_returned = "warn"
123 std_instead_of_alloc = "warn"
124 std_instead_of_core = "warn"
125 trivially_copy_pass_by_ref = "warn"
126 undocumented_unsafe_blocks = "warn"
127 unnecessary_safety_comment = "warn"
128 unwrap_in_result = "warn"
129 unwrap_used = "warn"
130
131 [lints.rust]
132 missing_copy_implementations = "warn"
133 missing_debug_implementations = "warn"
134 missing_docs = "warn"
135 trivial_casts = "warn"
136 trivial_numeric_casts = "warn"
137 unreachable_pub = "warn"
138 unused_lifetimes = "warn"
139 unused_qualifications = "warn"
140
141 [lints.rust.unexpected_cfgs]
142 level = "warn"
143 priority = 0
144 check-cfg = [
145 "cfg(chacha20_avx512)",
146 'cfg(chacha20_backend, values("avx2", "avx512", "soft", "sse2"))',
147 ]