| 1 |
lints.workspace = true |
| 2 |
|
| 3 |
[package] |
| 4 |
name = "time" |
| 5 |
version = "0.3.47" |
| 6 |
categories = [ |
| 7 |
"date-and-time", |
| 8 |
"no-std", |
| 9 |
"parser-implementations", |
| 10 |
"value-formatting", |
| 11 |
] |
| 12 |
description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]." |
| 13 |
include = ["{src,tests,benchmarks}/**/*", "LICENSE-*", "README.md"] |
| 14 |
readme = "../README.md" |
| 15 |
|
| 16 |
authors.workspace = true |
| 17 |
edition.workspace = true |
| 18 |
homepage.workspace = true |
| 19 |
keywords.workspace = true |
| 20 |
license.workspace = true |
| 21 |
repository.workspace = true |
| 22 |
rust-version.workspace = true |
| 23 |
|
| 24 |
[package.metadata.docs.rs] |
| 25 |
all-features = true |
| 26 |
targets = ["x86_64-unknown-linux-gnu"] |
| 27 |
rustdoc-args = ["--generate-link-to-definition"] |
| 28 |
|
| 29 |
[lib] |
| 30 |
bench = false |
| 31 |
|
| 32 |
[features] |
| 33 |
default = ["std"] |
| 34 |
alloc = ["serde_core?/alloc"] |
| 35 |
formatting = ["dep:itoa", "std", "time-macros?/formatting"] |
| 36 |
large-dates = ["time-core/large-dates", "time-macros?/large-dates"] |
| 37 |
local-offset = ["std", "dep:libc", "dep:num_threads"] |
| 38 |
macros = ["dep:time-macros"] |
| 39 |
parsing = ["time-macros?/parsing"] |
| 40 |
quickcheck = ["dep:quickcheck", "alloc", "deranged/quickcheck"] |
| 41 |
rand = ["rand08", "rand09"] |
| 42 |
rand08 = ["dep:rand08", "deranged/rand08"] |
| 43 |
rand09 = ["dep:rand09", "deranged/rand09"] |
| 44 |
serde = ["dep:serde_core", "time-macros?/serde", "deranged/serde"] |
| 45 |
serde-human-readable = ["serde", "formatting", "parsing"] |
| 46 |
# Deprecated in favor of using the relevant flags directly. |
| 47 |
serde-well-known = ["serde", "formatting", "parsing"] |
| 48 |
std = ["alloc"] |
| 49 |
wasm-bindgen = ["dep:js-sys"] |
| 50 |
|
| 51 |
# If adding an optional dependency, be sure to use the `dep:` prefix above to avoid an implicit |
| 52 |
# feature gate. |
| 53 |
[dependencies] |
| 54 |
deranged.workspace = true |
| 55 |
itoa = { workspace = true, optional = true } |
| 56 |
num-conv.workspace = true |
| 57 |
powerfmt.workspace = true |
| 58 |
quickcheck = { workspace = true, optional = true } |
| 59 |
rand08 = { workspace = true, optional = true } |
| 60 |
rand09 = { workspace = true, optional = true } |
| 61 |
serde_core = { workspace = true, optional = true } |
| 62 |
time-core.workspace = true |
| 63 |
time-macros = { workspace = true, optional = true } |
| 64 |
|
| 65 |
[target.'cfg(target_family = "unix")'.dependencies] |
| 66 |
libc = { workspace = true, optional = true } |
| 67 |
num_threads = { workspace = true, optional = true } |
| 68 |
|
| 69 |
[target.'cfg(all(target_family = "wasm", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] |
| 70 |
js-sys = { workspace = true, optional = true } |
| 71 |
|
| 72 |
[dev-dependencies] |
| 73 |
num-conv.workspace = true |
| 74 |
rand08.workspace = true |
| 75 |
rand09 = { workspace = true, features = ["small_rng"] } |
| 76 |
serde = { workspace = true, features = ["derive"] } |
| 77 |
serde_json.workspace = true |
| 78 |
serde_test.workspace = true |
| 79 |
quickcheck_macros.workspace = true |
| 80 |
time-macros.workspace = true |
| 81 |
rstest.workspace = true |
| 82 |
rstest_reuse.workspace = true |
| 83 |
|
| 84 |
[target.'cfg(__ui_tests)'.dev-dependencies] |
| 85 |
trybuild.workspace = true |
| 86 |
|
| 87 |
[target.'cfg(bench)'.dev-dependencies] |
| 88 |
criterion.workspace = true |
| 89 |
|
| 90 |
[[bench]] |
| 91 |
name = "benchmarks" |
| 92 |
harness = false |
| 93 |
path = "benchmarks/main.rs" |
| 94 |
|
| 95 |
[[test]] |
| 96 |
name = "tests" |
| 97 |
path = "tests/integration/main.rs" |