[package]
edition = "2021"
rust-version = "1.70"
name = "qubit-clock"
version = "0.1.4"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
exclude = [
"coverage.sh",
"COVERAGE.md",
"COVERAGE.zh_CN.md",
".circleci/*",
"ci-check.sh",
".llvm-cov.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Thread-safe clock abstractions for Rust: monotonic clocks, mock testing, high-precision time meters, and timezone support"
homepage = "https://github.com/qubit-ltd/rs-clock"
documentation = "https://docs.rs/qubit-clock"
readme = "README.md"
keywords = [
"clock",
"time",
"monotonic",
"mock",
"testing",
]
categories = [
"date-and-time",
"development-tools::testing",
]
license = "Apache-2.0"
repository = "https://github.com/qubit-ltd/rs-clock"
[lib]
name = "qubit_clock"
path = "src/lib.rs"
doctest = false
[[example]]
name = "nano_time_meter_demo"
path = "examples/nano_time_meter_demo.rs"
[[example]]
name = "time_meter_demo"
path = "examples/time_meter_demo.rs"
[[test]]
name = "clock_tests"
path = "tests/clock_tests.rs"
[[test]]
name = "controllable_clock_tests"
path = "tests/controllable_clock_tests.rs"
[[test]]
name = "meter_tests"
path = "tests/meter_tests.rs"
[[test]]
name = "mock_tests"
path = "tests/mock_tests.rs"
[[test]]
name = "monotonic_tests"
path = "tests/monotonic_tests.rs"
[[test]]
name = "nano_clock_tests"
path = "tests/nano_clock_tests.rs"
[[test]]
name = "nano_monotonic_tests"
path = "tests/nano_monotonic_tests.rs"
[[test]]
name = "system_tests"
path = "tests/system_tests.rs"
[[test]]
name = "zoned_clock_tests"
path = "tests/zoned_clock_tests.rs"
[[test]]
name = "zoned_tests"
path = "tests/zoned_tests.rs"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.chrono-tz]
version = "0.10"
[dependencies.parking_lot]
version = "0.12"
[dev-dependencies.serde_json]
version = "1.0"