2 releases

0.1.1 Mar 11, 2022
0.1.0 Nov 1, 2021

#307 in Date and time

Apache-2.0

22KB
230 lines

Crates.io License

ClockBoundC

A client library to communicate with ClockBoundD.

Usage

ClockBoundC requires ClockBoundD to be running to work. See ClockBoundD documentation for installation instructions.

For Rust programs built with Cargo, add "clock-bound-c" as a dependency in your Cargo.toml.

For example:

[dependencies]
clock-bound-c = "0.1.0"

Examples

Runnable examples exist at examples and can be run with Cargo.

"/run/clockboundd/clockboundd.sock" is the expected default clockboundd.sock location, but the examples can be run with a different socket location if desired:

cargo run --example now /run/clockboundd/clockboundd.sock
cargo run --example before /run/clockboundd/clockboundd.sock
cargo run --example after /run/clockboundd/clockboundd.sock
cargo run --example timing /run/clockboundd/clockboundd.sock

Updating README

This README is generated via cargo-readme. Updating can be done by running:

cargo readme > README.md

Security

See CONTRIBUTING for more information.

License

Licensed under the Apache 2.0 license.

Dependencies

~1.5–2.3MB
~41K SLoC