[package]
edition = "2021"
name = "ntp-timer"
version = "0.1.0"
authors = ["liuhaoduoduo <liuhaoduoduo@163.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight NTP time synchronization library for Rust applications. Provides in-process cached global time with background sync and clock-jump detection."
homepage = "https://github.com/liuhaoduoduo/ntp-timer"
documentation = "https://docs.rs/ntp-timer"
readme = "README.md"
keywords = [
"ntp",
"time",
"timer",
"sync",
"network-time",
]
categories = [
"date-and-time",
"network-programming",
]
license = "MIT"
repository = "https://github.com/liuhaoduoduo/ntp-timer"
[package.metadata.docs.rs]
all-features = true
[lib]
name = "ntp_timer"
path = "src/lib.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.lazy_static]
version = "1.4"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
]
[dev-dependencies.tokio-test]
version = "0.4"