[package]
name = "uhlc"
version = "0.8.0"
description = """
A Unique Hybrid Logical Clock for Rust.
"""
repository = "https://github.com/atolab/uhlc-rs"
homepage = "https://crates.io/crates/uhlc"
documentation = "https://atolab.github.io/uhlc-rs/"
readme = "README.md"
license = "EPL-2.0 OR Apache-2.0"
keywords = ["hlc", "clock", "timestamp"]
categories = ["date-and-time"]
authors = ["Julien Enoch <julien.enoch@adlinktech.com>"]
edition = "2018"
[features]
default = ["std"]
std = ["humantime", "lazy_static", "log", "serde/std", "rand/std"]
defmt = ["dep:defmt"]
[dependencies]
defmt = { version = "0.3.2", features = [
"alloc",
], optional = true }
humantime = { version = "2.0", optional = true }
lazy_static = { version = "1.4.0", optional = true }
log = { version = "0.4", optional = true }
rand = { version = "0.8.5", default-features = false, features = [
"alloc",
"getrandom",
] }
serde = { version = "1.0", default-features = false, features = [
"alloc",
"derive",
] }
spin = { version = "0.9.8", default-features = false, features = [
"mutex",
"spin_mutex",
] }
[dev-dependencies]
async-std = "1.6"
futures = "0.3"
regex = "1"
rand = "0.8"