[package]
edition = "2024"
rust-version = "1.85"
name = "clock-lib"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Monotonic and wall-clock time readings for Rust, with a mockable clock for deterministic testing. Simple Tier-1 API, zero dependencies, no unsafe."
homepage = "https://github.com/jamesgober/clock-lib"
documentation = "https://docs.rs/clock-lib"
readme = "README.md"
keywords = [
"time",
"clock",
"monotonic",
"timekeeping",
"mock",
]
categories = [
"date-and-time",
"development-tools::testing",
"no-std",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/clock-lib"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
std = []
[lib]
name = "clock_lib"
path = "src/lib.rs"
[[test]]
name = "clock"
path = "tests/clock.rs"
[[test]]
name = "monotonic"
path = "tests/monotonic.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[[test]]
name = "wall"
path = "tests/wall.rs"
[[bench]]
name = "clock_bench"
path = "benches/clock_bench.rs"
harness = false
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"