4 releases
| 0.2.0 | Jun 25, 2020 |
|---|---|
| 0.1.2 | Mar 5, 2020 |
| 0.1.1 | Mar 3, 2020 |
| 0.1.0 | Mar 2, 2020 |
#1625 in Hardware support
Used in isa-l-erasure-coder
3MB
72K
SLoC
isa-l-rs
Rust bindings to libisal, the Intel(R) Intelligent Storage Acceleration Library
Currently only bindings for Erasure codes are implemented. CRC, Raid, Compression and De-compression might follow later (PRs welcome).
Usage
# Cargo.toml
[dependencies]
isa-l = "0.1"
Building
Dynamic linking to libisal >= 2.14.1 is attempted otherwise it is built from source. Building from source requires
nasm or yasm (See https://github.com/intel/isa-l#prerequisites).
Updating libisal-sys bindings
To update the bindings we use bindgen and update the resulting bindings manually:
- Install
bindgen:$ cargo install bindgen - Install the new version of
libisalon the system. - Enter the
toolsdirectory:$ cd tools - Review
wrapper.handbindgen.sh - Generate the new bindings
$ ./bindgen.sh > ../libisal-sys/lib.bindgen.rs - Merge with old bindings, check docs, update / add tests
$ vimdiff ../libisal-sys/lib.bindgen.rs ../libisal-sys/lib.rs