clock-kit 0.1.0

Time-source abstraction for Rust — monotonic/wall separation, TSC calibration, PTP quality detection, deterministic test clock
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 = "2021"
rust-version = "1.85"
name = "clock-kit"
version = "0.1.0"
build = false
exclude = [
    ".github/",
    "benches/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Time-source abstraction for Rust — monotonic/wall separation, TSC calibration, PTP quality detection, deterministic test clock"
readme = "README.md"
keywords = [
    "clock",
    "time",
    "latency",
    "ptp",
    "no-std",
]
categories = [
    "date-and-time",
    "no-std",
    "development-tools::profiling",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WyattAu/clock-kit"

[package.metadata.layers]
tier = "L1"

[features]
chronoshift = ["dep:chronoshift"]
default = ["std"]
libc = ["dep:libc"]
ptp = [
    "dep:libc",
    "std",
]
std = ["critical-section/std"]
tsc = []

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

[[test]]
name = "chronoshift_bridge"
path = "tests/chronoshift_bridge.rs"

[[test]]
name = "latency_ring"
path = "tests/latency_ring.rs"

[[test]]
name = "mock_clock"
path = "tests/mock_clock.rs"

[[test]]
name = "monotonic"
path = "tests/monotonic.rs"

[[test]]
name = "ptp_detect"
path = "tests/ptp_detect.rs"

[[test]]
name = "ring_alloc"
path = "tests/ring_alloc.rs"

[[test]]
name = "timestamp"
path = "tests/timestamp.rs"

[[test]]
name = "tsc_calibrated"
path = "tests/tsc_calibrated.rs"

[dependencies.chronoshift]
version = "1.0"
optional = true
default-features = false

[dependencies.libc]
version = "0.2"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.proptest]
version = "1"

[target."cfg(loom)".dev-dependencies.loom]
version = "0.7"

[target.'cfg(not(target_has_atomic = "64"))'.dependencies.critical-section]
version = "1"
features = ["restore-state-u8"]
default-features = false

[lints.clippy]
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"

[lints.rust]
missing_docs = "deny"
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]

[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true