Debian Codegraph @

debian/rust-vendor/crypto-common/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 = "crypto-common"
16 version = "0.2.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 = "Common traits used by cryptographic algorithms"
25 documentation = "https://docs.rs/crypto-common"
26 readme = "README.md"
27 keywords = [
28 "crypto",
29 "traits",
30 ]
31 categories = [
32 "cryptography",
33 "no-std",
34 ]
35 license = "MIT OR Apache-2.0"
36 repository = "https://github.com/RustCrypto/traits"
37
38 [package.metadata.docs.rs]
39 all-features = true
40
41 [features]
42 getrandom = [
43 "rand_core",
44 "dep:getrandom",
45 ]
46 rand_core = ["dep:rand_core"]
47 zeroize = ["hybrid-array/zeroize"]
48
49 [lib]
50 name = "crypto_common"
51 path = "src/lib.rs"
52
53 [dependencies.getrandom]
54 version = "0.4"
55 features = ["sys_rng"]
56 optional = true
57
58 [dependencies.hybrid-array]
59 version = "0.4.7"
60
61 [dependencies.rand_core]
62 version = "0.10"
63 optional = true
64
65 [lints.clippy]
66 borrow_as_ptr = "warn"
67 cast_lossless = "warn"
68 cast_possible_truncation = "warn"
69 cast_possible_wrap = "warn"
70 cast_precision_loss = "warn"
71 cast_sign_loss = "warn"
72 checked_conversions = "warn"
73 from_iter_instead_of_collect = "warn"
74 implicit_saturating_sub = "warn"
75 manual_assert = "warn"
76 map_unwrap_or = "warn"
77 missing_errors_doc = "warn"
78 missing_panics_doc = "warn"
79 mod_module_files = "warn"
80 must_use_candidate = "warn"
81 needless_range_loop = "allow"
82 ptr_as_ptr = "warn"
83 redundant_closure_for_method_calls = "warn"
84 ref_as_ptr = "warn"
85 return_self_not_must_use = "warn"
86 semicolon_if_nothing_returned = "warn"
87 std_instead_of_alloc = "warn"
88 std_instead_of_core = "warn"
89 trivially_copy_pass_by_ref = "warn"
90 undocumented_unsafe_blocks = "warn"
91 unnecessary_safety_comment = "warn"
92 unwrap_in_result = "warn"
93 unwrap_used = "warn"
94
95 [lints.rust]
96 missing_copy_implementations = "warn"
97 missing_debug_implementations = "warn"
98 missing_docs = "warn"
99 trivial_casts = "warn"
100 trivial_numeric_casts = "warn"
101 unused_lifetimes = "warn"
102 unused_qualifications = "warn"