# 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.2.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 = 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 = "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 = "readme_api_tests"
path = "tests/readme_api_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"

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