[package]
edition = "2021"
name = "tzcraft"
version = "0.1.2"
authors = ["blueokanna"]
build = false
exclude = [
"wiki/",
"benchmarks/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A schema-driven date & time library: one 128-bit nanosecond timeline, a const civil calendar, and codec-aware wire formats on nextjson / rustbinary."
documentation = "https://docs.rs/tzcraft"
readme = "README.md"
keywords = [
"date",
"time",
"datetime",
"timezone",
"posix",
]
categories = [
"date-and-time",
"value-formatting",
"development-tools::build-utils",
]
license = "Apache-2.0"
repository = "https://github.com/blueokanna/Tzcraft"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
binary = [
"dep:rustbinary",
"serde",
"alloc",
]
default = [
"std",
"serde",
"binary",
]
serde = [
"dep:nextjson",
"alloc",
]
std = ["alloc"]
[lib]
name = "tzcraft"
path = "src/lib.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[test]]
name = "chrono_parity"
path = "tests/chrono_parity.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "no_alloc"
path = "tests/no_alloc.rs"
[[test]]
name = "readme"
path = "tests/readme.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[[test]]
name = "y2038"
path = "tests/y2038.rs"
[dependencies.nextjson]
version = "0.1.4"
features = ["derive"]
optional = true
default-features = false
[dependencies.rustbinary]
version = "0.1.7"
features = ["alloc"]
optional = true
default-features = false
[profile.dev]
opt-level = 1
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1