[package]
edition = "2021"
name = "ntimestamp"
version = "1.0.0"
authors = ["Nuh <nuh@nuh.dev>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Strictly monotonic unix timestamp in microseconds"
readme = "README.md"
keywords = [
"time",
"monotonic",
"timestamp",
]
categories = ["date-and-time"]
license = "MIT"
repository = "https://github.com/nuhvi/timestamp"
[package.metadata.docs.rs]
all-features = true
unwrap_used = "deny"
[lib]
name = "ntimestamp"
path = "src/lib.rs"
[dependencies.base32]
version = "0.5.1"
optional = true
[dependencies.document-features]
version = "0.2.10"
[dependencies.httpdate]
version = "1.0.3"
optional = true
[dependencies.once_cell]
version = "1.20.3"
[dependencies.serde]
version = "1.0.217"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.postcard]
version = "1.1.1"
features = ["alloc"]
[features]
base32 = ["dep:base32"]
full = [
"serde",
"base32",
"httpdate",
]
httpdate = ["dep:httpdate"]
serde = ["dep:serde"]
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.getrandom]
version = "0.2.15"
features = ["js"]
default-features = false
[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3.77"
[target.'cfg(not(all(target_family = "wasm", target_os = "unknown")))'.dependencies.getrandom]
version = "0.2.15"
default-features = false