libcryptsetup-rs
This crate provides Rust bindings for libcryptsetup.
API documentation
The API documentation can be found here.
Building
The libcryptsetup bindings require some dependencies outside of cargo to build properly:
- cryptsetup (provided by
cryptsetupon Fedora) - cryptsetup development headers (provided by
cryptsetup-develon Fedora) - libclang (provided by
clangon Fedora)
Sanity testing bindings
There is one test that actually invokes libcryptsetup and can be used for basic sanity testing of the bindings as it will only succeed if low level bindings are correctly generated, the high level bindings build, and libcryptsetup successfully encrypts a loopback device.
This can be invoked as follows:
sudo cargo test -- --test-threads=1 --ignored