[package]
edition = "2021"
rust-version = "1.88.0"
name = "dtt"
version = "0.0.10"
authors = ["The DateTime (DTT) contributors"]
build = "build.rs"
exclude = [
"/.git/*",
"/.github/*",
"/.gitignore",
"/.vscode/*",
]
include = [
"/CONTRIBUTING.md",
"/LICENSE-APACHE",
"/LICENSE-MIT",
"/benches/**",
"/build.rs",
"/Cargo.toml",
"/examples/**",
"/README.md",
"/src/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
A Rust library for parsing, validating, manipulating, and formatting dates
and times.
"""
homepage = "https://dttlib.com/"
documentation = "https://docs.rs/dtt"
readme = "README.md"
keywords = [
"dtt",
"date",
"datetime",
"time",
"timezone",
]
categories = [
"date-and-time",
"parser-implementations",
"value-formatting",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/dtt.git"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]
[features]
bench = []
default = ["serde"]
serde = [
"dep:serde",
"dep:serde_json",
"time/serde",
]
[lib]
name = "dtt"
crate-type = ["lib"]
path = "src/lib.rs"
[[bin]]
name = "dtt"
path = "src/main.rs"
[[example]]
name = "arithmetic"
path = "examples/arithmetic.rs"
[[example]]
name = "builder"
path = "examples/builder.rs"
[[example]]
name = "dtt"
path = "examples/dtt.rs"
required-features = ["serde"]
[[example]]
name = "macros"
path = "examples/macros.rs"
[[example]]
name = "parse"
path = "examples/parse.rs"
[[example]]
name = "timezone"
path = "examples/timezone.rs"
[[example]]
name = "validate"
path = "examples/validate.rs"
[[test]]
name = "test_datetime"
path = "tests/test_datetime.rs"
[[test]]
name = "test_dtt"
path = "tests/test_dtt.rs"
[[test]]
name = "test_error"
path = "tests/test_error.rs"
[[test]]
name = "test_lib"
path = "tests/test_lib.rs"
[[test]]
name = "test_macros"
path = "tests/test_macros.rs"
[[test]]
name = "test_main"
path = "tests/test_main.rs"
[[test]]
name = "test_properties"
path = "tests/test_properties.rs"
[[test]]
name = "test_readme"
path = "tests/test_readme.rs"
[[bench]]
name = "benchmark"
path = "benches/criterion.rs"
harness = false
[dependencies.pastey]
version = "0.2.1"
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0.143"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.time]
version = "0.3.47"
features = [
"formatting",
"parsing",
]
default-features = false
[dev-dependencies.assert_cmd]
version = "2.2.2"
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.proptest]
version = "1.5.0"
[dev-dependencies.regex]
version = "1.12.3"
[dev-dependencies.serde_json]
version = "1.0.143"
[dev-dependencies.serial_test]
version = "3.2.0"
[build-dependencies.version_check]
version = "0.9.5"
[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "warn"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "warn"
variant_size_differences = "deny"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.keyword_idents]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1
[lints.rust.unused]
level = "deny"
priority = -1
[profile.bench]
debug = 2
[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"
[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false