[package]
name = "uhlc"
version = "0.5.2"
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 = [
"hex/std",
"humantime",
"lazy_static",
"log",
"serde/std",
"uuid/std"
]
defmt = ["dep:defmt"]
[dependencies]
defmt = { version = "0.3.2", features = ["alloc"], optional = true }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
humantime = { version = "2.0", optional = true }
lazy_static = { version = "1.4.0", optional = true }
log = { version = "0.4", optional = true }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
spin = { version = "0.9", default-features = false, features = ["mutex", "spin_mutex"] }
uuid = { version = "1.1", default-features = false, features = ["v4"] }
[dev-dependencies]
async-std = "1.6"
futures = "0.3"