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