[package] name = "tai-time" # When incrementing version and releasing to crates.io: # - Update crate version in README.md # - Update CHANGELOG.md # - Update if necessary copyright notice in LICENSE-MIT # - Create a "vX.Y.Z" git tag version = "0.3.3" authors = ["Serge Barral "] edition = "2021" rust-version = "1.64" license = "MIT OR Apache-2.0" repository = "https://github.com/asynchronics/tai-time" readme = "README.md" description = """ Nanosecond-precision monotonic clock timestamps based on the TAI time standard. """ categories = ["date-and-time", "no-std", "science", "embedded"] keywords = ["date", "time", "monotonic", "tai", "gps"] [dependencies] chrono = { version = "0.4.31", default-features = false, optional = true } serde = { version = "1", default-features = false, features = ["derive"], optional = true } nix = { version = "0.26", default-features = false, features = ["time"], optional = true } defmt = { version = "0.3", optional = true } [dev-dependencies] serde_json = "1" [features] default = ["std"] std = [] # Note that the MSRV cannot be guaranteed when the following features are # activated since cargo resolver v2 ignores MSRV. chrono = ["dep:chrono"] serde = ["dep:serde"] defmt = ["dep:defmt"] tai_clock = ["dep:nix"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]