denis2glez / libarchive-sys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

This crate contains Rust raw FFI bindings automatically generated by bindgen to the C API of the libarchive library and some basic tests.

Prerequisites

You need to have the following dependencies installed

Installing

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 use vcpkg.

Build

To build the library on your host machine use

cargo build

Run the tests

Run all the default tests

cargo test

License

This project is licensed under the MIT license.

About

License:MIT License


Languages

Language:Rust 98.9%Language:C 1.1%