Debian Codegraph @

third_party/rust/time/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 = "2021"
14 rust-version = "1.67.0"
15 name = "time"
16 version = "0.3.36"
17 authors = [
18 "Jacob Pratt <[email protected]>",
19 "Time contributors",
20 ]
21 include = [
22 "src/**/*",
23 "LICENSE-*",
24 "README.md",
25 ]
26 description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]."
27 homepage = "https://time-rs.github.io"
28 readme = "README.md"
29 keywords = [
30 "date",
31 "time",
32 "calendar",
33 "duration",
34 ]
35 categories = [
36 "date-and-time",
37 "no-std",
38 "parser-implementations",
39 "value-formatting",
40 ]
41 license = "MIT OR Apache-2.0"
42 repository = "https://github.com/time-rs/time"
43
44 [package.metadata.docs.rs]
45 all-features = true
46 rustdoc-args = [
47 "--cfg",
48 "__time_03_docs",
49 "--generate-link-to-definition",
50 ]
51 targets = ["x86_64-unknown-linux-gnu"]
52
53 [lib]
54 bench = false
55
56 [[test]]
57 name = "tests"
58 path = "../tests/main.rs"
59
60 [[bench]]
61 name = "benchmarks"
62 path = "../benchmarks/main.rs"
63 harness = false
64
65 [dependencies.deranged]
66 version = "0.3.9"
67 features = ["powerfmt"]
68 default-features = false
69
70 [dependencies.itoa]
71 version = "1.0.1"
72 optional = true
73
74 [dependencies.num-conv]
75 version = "0.1.0"
76
77 [dependencies.powerfmt]
78 version = "0.2.0"
79 default-features = false
80
81 [dependencies.quickcheck]
82 version = "1.0.3"
83 optional = true
84 default-features = false
85
86 [dependencies.rand]
87 version = "0.8.4"
88 optional = true
89 default-features = false
90
91 [dependencies.serde]
92 version = "1.0.184"
93 optional = true
94 default-features = false
95
96 [dependencies.time-core]
97 version = "=0.1.2"
98
99 [dependencies.time-macros]
100 version = "=0.2.18"
101 optional = true
102
103 [dev-dependencies.num-conv]
104 version = "0.1.0"
105
106 [dev-dependencies.quickcheck_macros]
107 version = "1.0.0"
108
109 [dev-dependencies.rand]
110 version = "0.8.4"
111 default-features = false
112
113 [dev-dependencies.rstest]
114 version = "0.18.2"
115 default-features = false
116
117 [dev-dependencies.rstest_reuse]
118 version = "0.6.0"
119
120 [dev-dependencies.serde]
121 version = "1.0.184"
122 features = ["derive"]
123 default-features = false
124
125 [dev-dependencies.serde_json]
126 version = "1.0.68"
127
128 [dev-dependencies.serde_test]
129 version = "1.0.126"
130
131 [dev-dependencies.time-macros]
132 version = "=0.2.18"
133
134 [features]
135 alloc = ["serde?/alloc"]
136 default = ["std"]
137 formatting = [
138 "dep:itoa",
139 "std",
140 "time-macros?/formatting",
141 ]
142 large-dates = ["time-macros?/large-dates"]
143 local-offset = [
144 "std",
145 "dep:libc",
146 "dep:num_threads",
147 ]
148 macros = ["dep:time-macros"]
149 parsing = ["time-macros?/parsing"]
150 quickcheck = [
151 "dep:quickcheck",
152 "alloc",
153 "deranged/quickcheck",
154 ]
155 rand = [
156 "dep:rand",
157 "deranged/rand",
158 ]
159 serde = [
160 "dep:serde",
161 "time-macros?/serde",
162 "deranged/serde",
163 ]
164 serde-human-readable = [
165 "serde",
166 "formatting",
167 "parsing",
168 ]
169 serde-well-known = [
170 "serde",
171 "formatting",
172 "parsing",
173 ]
174 std = [
175 "alloc",
176 "deranged/std",
177 ]
178 wasm-bindgen = ["dep:js-sys"]
179
180 [target."cfg(__ui_tests)".dev-dependencies.trybuild]
181 version = "1.0.68"
182
183 [target."cfg(all(target_family = \"wasm\", not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dependencies.js-sys]
184 version = "0.3.58"
185 optional = true
186
187 [target."cfg(bench)".dev-dependencies.criterion]
188 version = "0.5.1"
189 default-features = false
190
191 [target."cfg(target_family = \"unix\")".dependencies.libc]
192 version = "0.2.98"
193 optional = true
194
195 [target."cfg(target_family = \"unix\")".dependencies.num_threads]
196 version = "0.1.2"
197 optional = true
198
199 [lints.clippy]
200 all = "warn"
201 alloc-instead-of-core = "deny"
202 dbg-macro = "warn"
203 decimal-literal-representation = "warn"
204 explicit-auto-deref = "warn"
205 get-unwrap = "warn"
206 manual-let-else = "warn"
207 missing-docs-in-private-items = "warn"
208 missing-enforced-import-renames = "warn"
209 nursery = "warn"
210 obfuscated-if-else = "warn"
211 print-stdout = "warn"
212 semicolon-outside-block = "warn"
213 std-instead-of-core = "deny"
214 todo = "warn"
215 undocumented-unsafe-blocks = "deny"
216 unimplemented = "warn"
217 uninlined-format-args = "warn"
218 unnested-or-patterns = "warn"
219 unwrap-in-result = "warn"
220 unwrap-used = "warn"
221 use-debug = "warn"
222
223 [lints.clippy.option-if-let-else]
224 level = "allow"
225 priority = 1
226
227 [lints.clippy.redundant-pub-crate]
228 level = "allow"
229 priority = 1
230
231 [lints.rust]
232 ambiguous-glob-reexports = "deny"
233 clashing-extern-declarations = "deny"
234 const-item-mutation = "deny"
235 deref-nullptr = "deny"
236 drop-bounds = "deny"
237 future-incompatible = "deny"
238 hidden-glob-reexports = "deny"
239 improper-ctypes = "deny"
240 improper-ctypes-definitions = "deny"
241 invalid-from-utf8 = "deny"
242 invalid-macro-export-arguments = "deny"
243 invalid-nan-comparisons = "deny"
244 invalid-reference-casting = "deny"
245 invalid-value = "deny"
246 keyword-idents = "warn"
247 let-underscore = "warn"
248 macro-use-extern-crate = "warn"
249 meta-variable-misuse = "warn"
250 missing-abi = "warn"
251 missing-copy-implementations = "warn"
252 missing-debug-implementations = "warn"
253 missing-docs = "warn"
254 named-arguments-used-positionally = "deny"
255 non-ascii-idents = "deny"
256 noop-method-call = "warn"
257 opaque-hidden-inferred-bound = "deny"
258 overlapping-range-endpoints = "deny"
259 single-use-lifetimes = "warn"
260 suspicious-double-ref-op = "deny"
261 temporary-cstring-as-ptr = "deny"
262 trivial-casts = "warn"
263 trivial-numeric-casts = "warn"
264 unconditional-recursion = "deny"
265 unnameable-test-items = "deny"
266 unreachable-pub = "warn"
267 unsafe-op-in-unsafe-fn = "deny"
268 unstable-syntax-pre-expansion = "deny"
269 unused = "warn"
270 unused-import-braces = "warn"
271 unused-lifetimes = "warn"
272 unused-qualifications = "warn"
273 variant-size-differences = "warn"
274
275 [lints.rust.unstable-name-collisions]
276 level = "warn"
277 priority = 1
278
279 [lints.rustdoc]
280 private-doc-tests = "warn"
281 unescaped-backticks = "warn"