A crate to provide FFI bindings for OpenPGP and Sequoia.
This crate uses sequoia-openpgp with the crypto-rust backend, so it does not require nettle / nettle-dev system packages to build.
For the optional in-repo C smoke test (test.c), you’ll need a C compiler (e.g., gcc or clang).
- Install
cbindgen:cargo install --force cbindgen. cargo buildregeneratespgp-ffi.hautomatically viabuild.rs.- To run the C smoke test:
cargo buildgcc test.c -I. -L./target/debug -lpgp_ffi -o test_runnerLD_LIBRARY_PATH=./target/debug ./test_runner