time 0.3.24

Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std].
Documentation
[package]
name = "time"
version = "0.3.24"
authors = ["Jacob Pratt <open-source@jhpratt.dev>", "Time contributors"]
edition = "2021"
rust-version = "1.67.0"
repository = "https://github.com/time-rs/time"
homepage = "https://time-rs.github.io"
keywords = ["date", "time", "calendar", "duration"]
categories = [
    "date-and-time",
    "no-std",
    "parser-implementations",
    "value-formatting",
]
readme = "../README.md"
license = "MIT OR Apache-2.0"
description = "Date and time library. Fully interoperable with the standard library. Mostly compatible with #![no_std]."
include = ["src/**/*", "LICENSE-*", "README.md"]

[lib]
bench = false

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "__time_03_docs", "--generate-link-to-definition"]

[features]
default = ["std"]
alloc = ["serde?/alloc"]
formatting = ["dep:itoa", "std", "time-macros?/formatting"]
large-dates = ["time-macros?/large-dates"]
local-offset = ["std", "dep:libc", "dep:num_threads"]
macros = ["dep:time-macros"]
parsing = ["time-macros?/parsing"]
quickcheck = ["dep:quickcheck", "alloc", "deranged/quickcheck"]
rand = ["dep:rand", "deranged/rand"]
serde = ["dep:serde", "time-macros?/serde", "deranged/serde"]
serde-human-readable = ["serde", "formatting", "parsing"]
# Deprecated in favor of using the relevant flags directly.
serde-well-known = ["serde", "formatting", "parsing"]
std = ["alloc", "deranged/std"]
wasm-bindgen = ["dep:js-sys"]

# If adding an optional dependency, be sure to use the `dep:` prefix above to avoid an implicit
# feature gate.
[dependencies]
deranged = { workspace = true }
itoa = { workspace = true, optional = true }
quickcheck = { workspace = true, optional = true }
rand = { workspace = true, optional = true }
serde = { workspace = true, optional = true }
time-core = { workspace = true }
time-macros = { workspace = true, optional = true }

[target.'cfg(target_family = "unix")'.dependencies]
libc = { workspace = true, optional = true }
num_threads = { workspace = true, optional = true }

[target.'cfg(all(target_family = "wasm", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
js-sys = { workspace = true, optional = true }

[dev-dependencies]
rand = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
serde_test = { workspace = true }
quickcheck_macros = { workspace = true }
time-macros = { workspace = true }

[target.'cfg(__ui_tests)'.dev-dependencies]
trybuild = { workspace = true }

[target.'cfg(bench)'.dev-dependencies]
criterion = { workspace = true }

# Significant contributions to the benchmarks provided by Emil Lundberg.
[[bench]]
name = "benchmarks"
harness = false
path = "../benchmarks/main.rs"

[[test]]
name = "tests"
path = "../tests/main.rs"