| Crates.io | clock-bound-ffi |
| lib.rs | clock-bound-ffi |
| version | 3.0.0-alpha.1 |
| created_at | 2024-04-09 20:13:17.458498+00 |
| updated_at | 2025-12-02 16:52:58.444299+00 |
| description | A C client library used to interact with ClockBound daemon. |
| homepage | |
| repository | https://github.com/aws/clock-bound |
| max_upload_size | |
| id | 1202815 |
| size | 61,222 |
This crate implements the FFI for ClockBound. It builds into the libclockbound C library that an application can use to communicate with the ClockBound daemon.
clock-bound-ffi requires ClockBound daemon to be running to work.
See ClockBound daemon documentation for installation instructions.
Run the following to build the source code of this crate:
cargo build --release
The build will produce files libclockbound.a and libclockbound.so.
# Copy header file `clockbound.h` to directory `/usr/include/`.
sudo cp clock-bound-ffi/include/clockbound.h /usr/include/
# Copy library files `libclockbound.a` and `libclockbound.so` to
# directory `/usr/lib/`.
sudo cp target/release/libclockbound.a target/release/libclockbound.so /usr/lib/
Source code of a runnable c example program can be found at ../examples/client/c.
See the README.md in that directory for more details on how to build and run the example.
See CONTRIBUTING for more information.
Licensed under the Apache 2.0 license.