[package]
edition = "2024"
name = "tilo-clock"
version = "0.5.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The sanctioned monotonic and wall clocks on every target, Unix-time helpers, and an injectable millisecond Clock with fixed and manual test clocks."
homepage = "https://tilo.so"
readme = "supporting-crate.md"
license = "MIT"
repository = "https://code.tilo.so/tilo/tilo"
resolver = "2"
[features]
local = ["dep:jiff"]
test-support = []
[lib]
name = "tilo_clock"
path = "src/lib.rs"
[dependencies.jiff]
version = "0.2.37"
features = [
"std",
"serde",
"tz-system",
"tzdb-zoneinfo",
]
optional = true
default-features = false
[dev-dependencies]
[target.'cfg(all(target_family = "wasm", not(tilo_no_js)))'.dependencies.js-sys]
version = "0.3.85"
[target.'cfg(all(target_family = "wasm", not(tilo_no_js)))'.dependencies.wasm-bindgen]
version = "0.2.108"
[target.'cfg(all(target_family = "wasm", not(tilo_no_js)))'.dependencies.web-time]
version = "1"
[lints.clippy]
allow_attributes_without_reason = "deny"
arithmetic_side_effects = "deny"
as_conversions = "allow"
as_ptr_cast_mut = "deny"
clear_with_drain = "deny"
collection_is_never_read = "deny"
debug_assert_with_mut_call = "deny"
disallowed_methods = "deny"
duration_suboptimal_units = "allow"
equatable_if_let = "deny"
exit = "deny"
expect_used = "deny"
future_not_send = "deny"
indexing_slicing = "deny"
iter_with_drain = "deny"
literal_string_with_formatting_args = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
needless_collect = "deny"
needless_pass_by_ref_mut = "deny"
non_send_fields_in_send_ty = "deny"
or_fun_call = "deny"
panic = "deny"
panic_in_result_fn = "deny"
path_buf_push_overwrite = "deny"
read_zero_byte_vec = "deny"
redundant_clone = "deny"
set_contains_or_insert = "deny"
significant_drop_in_scrutinee = "deny"
significant_drop_tightening = "deny"
string_slice = "deny"
suspicious_operation_groupings = "deny"
todo = "deny"
too_many_arguments = "deny"
trailing_empty_array = "deny"
transmute_undefined_repr = "deny"
unimplemented = "deny"
uninhabited_references = "deny"
unreachable = "deny"
unused_peekable = "deny"
unwrap_used = "deny"
while_float = "deny"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(tilo_no_js)",
"cfg(tilo_model_split)",
"cfg(tilo_model_guest)",
]