[package]
edition = "2024"
rust-version = "1.88"
name = "clocksync"
version = "0.2.0"
authors = ["kakilangit <crates@kakilangit.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fault-tolerant clock synchronization using Marzullo's algorithm with NULID nanosecond timestamps"
homepage = "https://github.com/kakilangit/clocksync"
readme = "README.md"
keywords = [
"clock",
"synchronization",
"marzullo",
"nulid",
"consensus",
]
categories = [
"date-and-time",
"algorithms",
]
license = "MIT"
repository = "https://github.com/kakilangit/clocksync"
[features]
default = []
wasm = ["nulid/wasm"]
[lib]
name = "clocksync"
path = "src/lib.rs"
[dependencies.nulid]
version = "0.10"
features = ["std"]
default-features = false
[dependencies.rand]
version = "0.9"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
]
[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
expect_used = "deny"
panic = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "warn"
priority = -1