Debian Codegraph @

Cargo.toml

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
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 = "der"
16 version = "0.8.1"
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 embedded-friendly implementation of the Distinguished Encoding Rules
26 (DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690 with
27 full support for heapless `no_std`/`no_alloc` targets
28 """
29 homepage = "https://github.com/RustCrypto/formats/tree/master/der"
30 readme = "README.md"
31 keywords = [
32 "asn1",
33 "crypto",
34 "no-alloc",
35 "itu",
36 "pkcs",
37 ]
38 categories = [
39 "cryptography",
40 "data-structures",
41 "encoding",
42 "no-std",
43 "parser-implementations",
44 ]
45 license = "Apache-2.0 OR MIT"
46 repository = "https://github.com/RustCrypto/formats"
47 resolver = "2"
48
49 [package.metadata.docs.rs]
50 all-features = true
51 rustdoc-args = [
52 "--cfg",
53 "docsrs",
54 ]
55
56 [features]
57 alloc = ["zeroize?/alloc"]
58 arbitrary = [
59 "dep:arbitrary",
60 "dep:derive_arbitrary",
61 "const-oid?/arbitrary",
62 "std",
63 ]
64 ber = []
65 bytes = [
66 "dep:bytes",
67 "alloc",
68 ]
69 derive = ["dep:der_derive"]
70 oid = ["dep:const-oid"]
71 pem = [
72 "dep:pem-rfc7468",
73 "alloc",
74 "zeroize",
75 ]
76 real = []
77 std = ["alloc"]
78
79 [lib]
80 name = "der"
81 path = "src/lib.rs"
82
83 [[test]]
84 name = "datetime"
85 path = "tests/datetime.rs"
86
87 [[test]]
88 name = "derive"
89 path = "tests/derive.rs"
90
91 [[test]]
92 name = "derive_no_alloc"
93 path = "tests/derive_no_alloc.rs"
94
95 [[test]]
96 name = "nesting"
97 path = "tests/nesting.rs"
98
99 [[test]]
100 name = "pem"
101 path = "tests/pem.rs"
102
103 [[test]]
104 name = "set_of"
105 path = "tests/set_of.rs"
106
107 [dependencies.arbitrary]
108 version = "1.4.2"
109 features = ["derive"]
110 optional = true
111
112 [dependencies.bytes]
113 version = "1"
114 optional = true
115 default-features = false
116
117 [dependencies.const-oid]
118 version = "0.10"
119 optional = true
120
121 [dependencies.der_derive]
122 version = "0.8"
123 optional = true
124
•125 [dependencies.derive_arbitrary]
126 version = "1.4.2"
127 optional = true
128
129 [dependencies.flagset]
130 version = "0.4.7"
131 optional = true
132
133 [dependencies.heapless]
134 version = ">= 0.8, < 0.10"
135 optional = true
136 default-features = false
137
138 [dependencies.pem-rfc7468]
139 version = "1"
140 features = ["alloc"]
141 optional = true
142
143 [dependencies.time]
144 version = "0.3.4"
145 optional = true
146 default-features = false
147
148 [dependencies.zeroize]
149 version = "1.8"
150 optional = true
151 default-features = false
152
153 [dev-dependencies.hex-literal]
154 version = "1"
155
156 [target."cfg(any(unix, windows))".dev-dependencies.proptest]
157 version = "1.10"
158
159 [lints.clippy]
160 borrow_as_ptr = "warn"
161 cast_lossless = "warn"
162 cast_possible_truncation = "warn"
163 cast_possible_wrap = "warn"
164 cast_precision_loss = "warn"
165 cast_sign_loss = "warn"
166 checked_conversions = "warn"
167 doc_markdown = "warn"
168 from_iter_instead_of_collect = "warn"
169 implicit_saturating_sub = "warn"
170 manual_assert = "warn"
171 map_unwrap_or = "warn"
172 missing_errors_doc = "warn"
173 missing_panics_doc = "warn"
174 mod_module_files = "warn"
175 must_use_candidate = "warn"
176 needless_range_loop = "allow"
177 ptr_as_ptr = "warn"
178 redundant_closure_for_method_calls = "warn"
179 ref_as_ptr = "warn"
180 return_self_not_must_use = "warn"
181 semicolon_if_nothing_returned = "warn"
182 std_instead_of_alloc = "warn"
183 std_instead_of_core = "warn"
184 trivially_copy_pass_by_ref = "warn"
185 undocumented_unsafe_blocks = "warn"
186 unnecessary_safety_comment = "warn"
187 unwrap_in_result = "warn"
188 unwrap_used = "warn"
189
190 [lints.rust]
191 missing_copy_implementations = "warn"
192 missing_debug_implementations = "warn"
193 missing_docs = "warn"
194 trivial_casts = "warn"
195 trivial_numeric_casts = "warn"
196 unused_lifetimes = "warn"
197 unused_qualifications = "warn"