ntp-timer 0.1.0

A lightweight NTP time synchronization library for Rust applications. Provides in-process cached global time with background sync and clock-jump detection.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[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"