clock-lib 0.3.0

Monotonic and wall-clock time readings for Rust, with a mockable clock for deterministic testing. Simple Tier-1 API, zero dependencies, no unsafe.
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"
name = "clock-lib"
version = "0.3.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"