clock-bound 3.0.0-beta.0

A crate to provide error bounded timestamp intervals.
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 = "2024"
name = "clock-bound"
version = "3.0.0-beta.0"
authors = [
    "Jacob Wisniewski <jacoblwisniewski@gmail.com>",
    "Jennifer Solidum <jennsolidum@gmail.com>",
    "Julien Ridoux <julien@synclab.org>",
    "Mohammed Kabir <mekabir93@gmail.com>",
    "Myles Neloms <mcneloms.451@gmail.com>",
    "Nick Matthews <nick.matthews1020@gmail.com>",
    "Ryan Luu <ryanluu@gmail.com>",
    "Shamik Chakraborty <shamchak808@gmail.com>",
    "Tam Phan <tphan093@gmail.com>",
    "Thoth Gunter <thothgunter@live.com>",
    "Wei-Han Huang <danny87123@gmail.com>",
    "Wenhao Piao <wenhao.piao@outlook.com>",
    "Mason Stoecker <masonsto@amazon.com>",
    "Sierra Nicholes <s.k.nicholes@gmail.com>",
    "Pranay Mallik <pranaym2004@gmail.com>",
]
build = false
exclude = []
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A crate to provide error bounded timestamp intervals."
readme = "README.md"
keywords = [
    "aws",
    "ntp",
    "ec2",
    "time",
]
categories = ["date-and-time"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aws/clock-bound"

[package.metadata.generate-rpm]
name = "clockbound"

[[package.metadata.generate-rpm.assets]]
source = "target/release/clockbound"
dest = "/usr/bin/clockbound"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "target/release/cbctl"
dest = "/usr/bin/cbctl"
mode = "755"

[[package.metadata.generate-rpm.assets]]
source = "assets/clockbound.service"
dest = "/usr/lib/systemd/system/clockbound.service"
mode = "644"

[[package.metadata.generate-rpm.assets]]
source = "assets/configure_phc"
dest = "/usr/sbin/configure_phc"
mode = "755"

[features]
algorithm = [
    "dep:chrono",
    "dep:serde",
    "dep:thiserror",
    "dep:serde_json",
    "dep:md5",
    "tracing-subscriber/env-filter",
]
client = []
daemon = [
    "dep:clap",
    "dep:serde",
    "dep:tokio",
    "dep:tokio-util",
    "dep:chrono",
    "dep:bytes",
    "dep:nom",
    "dep:thiserror",
    "dep:toml",
    "dep:futures",
    "dep:md5",
    "dep:rand",
    "dep:serde_json",
    "tracing-subscriber",
    "nix/feature",
    "nix/ioctl",
    "nix/time",
]
default = ["client"]
env-filter = ["tracing-subscriber/env-filter"]
test-side-by-side = []
time-string-parse = ["dep:nom"]

[lib]
name = "clock_bound"
path = "src/lib.rs"

[[bin]]
name = "cbctl"
path = "src/bin/cbctl/main.rs"
required-features = [
    "client",
    "daemon",
]

[[bin]]
name = "clockbound"
path = "src/bin/clockbound.rs"
required-features = ["daemon"]

[dependencies.bon]
version = "3.8.0"

[dependencies.byteorder]
version = "1"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chrono]
version = "0.4"
optional = true

[dependencies.clap]
version = "4.5.50"
features = ["derive"]
optional = true

[dependencies.errno]
version = "0.3.0"
default-features = false

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.libc]
version = "0.2"
features = ["extra_traits"]
default-features = false

[dependencies.md5]
version = "0.8.0"
optional = true

[dependencies.nix]
version = "0.26"

[dependencies.nom]
version = "8"
optional = true

[dependencies.rand]
version = "0.9.2"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.145"
features = ["preserve_order"]
optional = true

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.tokio]
version = "1.47.1"
features = [
    "fs",
    "net",
    "macros",
    "rt",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7.17"
features = ["rt"]
optional = true

[dependencies.toml]
version = "1.1"
features = [
    "parse",
    "serde",
    "std",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "std",
    "fmt",
    "json",
    "registry",
]
optional = true

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.hex-literal]
version = "0.4"

[dev-dependencies.indoc]
version = "2"

[dev-dependencies.mockall]
version = "0.13.1"

[dev-dependencies.mockall_double]
version = "0.3.1"

[dev-dependencies.rstest]
version = "0.26"

[dev-dependencies.tempfile]
version = "3.13"

[dev-dependencies.tokio]
version = "1.47.1"
features = [
    "fs",
    "net",
    "macros",
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
    "test-util",
]

[dev-dependencies.tracing-test]
version = "0.2.5"

[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true