Crates.io | clock-bound-ffi |
lib.rs | clock-bound-ffi |
version | |
source | src |
created_at | 2024-04-09 20:13:17.458498+00 |
updated_at | 2025-05-07 22:58:37.565286+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 |
Cargo.toml error: | TOML parse error at line 27, column 1 | 27 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.