clock-bound-ffi

Crates.ioclock-bound-ffi
lib.rsclock-bound-ffi
version
sourcesrc
created_at2024-04-09 20:13:17.458498+00
updated_at2025-05-07 22:58:37.565286+00
descriptionA C client library used to interact with ClockBound daemon.
homepage
repositoryhttps://github.com/aws/clock-bound
max_upload_size
id1202815
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`
size0
Jacob Wisniewski (jacoblwisniewski)

documentation

README

Crates.io License

ClockBound Foreign Function Interface (FFI)

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.

Usage

clock-bound-ffi requires ClockBound daemon to be running to work.

See ClockBound daemon documentation for installation instructions.

Building

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/

Example

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.

Security

See CONTRIBUTING for more information.

License

Licensed under the Apache 2.0 license.

Commit count: 36

cargo fmt