qubit-clock 0.8.1

Thread-safe clock abstractions for Rust: monotonic clocks, mock testing, high-precision time meters, and timezone support
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.94"
name = "qubit-clock"
version = "0.8.1"
authors = ["Haixing Hu <starfish.hu@gmail.com>"]
build = false
include = [
    "/Cargo.toml",
    "/LICENSE",
    "/README.md",
    "/README.zh_CN.md",
    "/RUST_CODING_STYLE.md",
    "/RUST_CODING_STYLE.zh_CN.md",
    "/doc/**/user_guide*.md",
    "/examples/**",
    "/resources/**",
    "/src/**",
    "/tests/**",
]
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"

[features]
default = []
tokio = ["dep:tokio"]

[lib]
name = "qubit_clock"
path = "src/lib.rs"
doctest = true

[[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 = "meter_tests"
path = "tests/meter_tests.rs"

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.chrono-tz]
version = "0.10"

[dependencies.parking_lot]
version = "0.12"

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt",
    "sync",
    "time",
]
optional = true

[dev-dependencies.serde_json]
version = "1.0"