[package] name = "tinytime" description = "Low overhead implementation of time-related concepts." homepage = "https://github.com/moia-oss/tinytime.rs" repository = "https://github.com/moia-oss/tinytime.rs" documentation = "https://docs.rs/tinytime" edition = "2021" version = "0.12.7" license = "MIT OR Apache-2.0" [features] rand = ["dep:rand"] [dependencies] chrono = "0.4.31" derive_more = { version = "1.0.0", features = ["deref", "from", "into", "not", "sum"] } lazy_static = "1.4.0" rand = { version = "0.8.5", optional = true } regex = "1.11.1" serde = { version = "1.0.215", features = ["derive"], default-features = false } thiserror = "2.0.3" [dev-dependencies] serde_test = "1.0.176" serde_json = "1.0.133" [lints.rust] macro_use_extern_crate = "warn" meta_variable_misuse = "warn" missing_copy_implementations = "warn" missing_debug_implementations = "warn" missing_docs = "allow" # TODO single_use_lifetimes = "warn" unreachable_pub = "warn" unsafe_code = "deny" unstable_features = "deny" 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" dead_code = "warn" unused = { level = "warn", priority = -1 } [lints.rustdoc] broken_intra_doc_links = "deny" missing_crate_level_docs = "warn" [lints.clippy] complexity = { level = "warn", priority = -1 } correctness = { level = "deny", priority = -1 } perf = { level = "warn", priority = -1 } style = { level = "warn", priority = -1 } suspicious = { level = "deny", priority = -1 } cargo = { level = "allow", priority = -1 } # TODO todo = "warn" disallowed-types = "deny" missing_const_for_fn = "warn" allow_attributes = "deny" allow_attributes_without_reason = "deny" ### Pedantic pedantic = { level = "warn", priority = -1 } missing_errors_doc = "allow" # TODO cast_precision_loss = "allow" cast_possible_truncation = "allow" cast_lossless = "allow" cast_possible_wrap = "allow" cast_sign_loss = "allow"