tinytime 0.15.0

Low overhead implementation of time-related concepts.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.85.0"
name = "tinytime"
version = "0.15.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low overhead implementation of time-related concepts."
homepage = "https://github.com/moia-oss/tinytime.rs"
documentation = "https://docs.rs/tinytime"
readme = "README.md"
keywords = [
    "time",
    "tiny",
    "low-overhead",
]
categories = ["date-and-time"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/moia-oss/tinytime.rs"

[features]
chrono = ["dep:chrono"]
rand = ["dep:rand"]
serde = ["dep:serde"]

[lib]
name = "tinytime"
path = "src/lib.rs"

[dependencies.chrono]
version = "0.4.44"
features = ["alloc"]
optional = true
default-features = false

[dependencies.rand]
version = "0.10.0"
features = ["thread_rng"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true
default-features = false

[dev-dependencies.serde_json]
version = "1.0.149"

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
disallowed-types = "deny"
exit = "warn"
expect_used = "warn"
indexing_slicing = "warn"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
panic = "warn"
string_slice = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
unwrap_used = "warn"

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
dead_code = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "allow"
single_use_lifetimes = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unstable_features = "forbid"
unused_crate_dependencies = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_results = "warn"

[lints.rust.unused]
level = "warn"
priority = -1

[lints.rustdoc]
broken_intra_doc_links = "deny"
missing_crate_level_docs = "warn"