This crate contains Rust raw FFI bindings automatically generated by bindgen to the C API of the libarchive library and some basic tests.
You need to have the following dependencies installed
- Rust
- libclang
- libarchive (for now)
Arch Linux
If you are using Arch Linux or a derivative, you could install all the required dependencies by running the following commands.
sudo pacman -S rust clang libarchive
# Optionally install the bindgen CLI
cargo install bindgen
Debian
If you are using Debian or a derivative (e.g. Ubuntu, Linux Mint), it is recommended to install Rust using the standard installation script.
sudo apt install curl clang llvm-dev libclang-dev libarchive-dev
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Optionally install the bindgen CLI
cargo install bindgen
macOS
If you are using macOS you could install all the development dependencies using Homebrew by running the following commands.
brew install curl llvm libarchive
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Optionally install the bindgen CLI
cargo install bindgen
Windows
If you are using Windows, you could install most of the required dependencies using Chocolatey by running the following commands.
choco install rust-ms llvm
# Optionally install the bindgen CLI
cargo install bindgen
For
libarchive
you could usevcpkg
.
To build the library on your host machine use
cargo build
Run all the default tests
cargo test
This project is licensed under the MIT license.