2 stable releases
new 2.0.0 | May 7, 2025 |
---|---|
1.0.0 | Apr 9, 2024 |
#404 in Date and time
103 downloads per month
175KB
2.5K
SLoC
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.
Dependencies
~3–11MB
~113K SLoC