Install Rind
Get the peel command with Homebrew or a script, build Rind from source, or add the peel-core library to a Rust project.
The command is peel. Rind is the name of the engine; the executable it ships is called peel. So brew install rind installs the peel command, and every example in these docs uses peel.
Homebrew
Not published yet: this formula arrives with Rind’s own downloads. On a Mac today, use the install script.
brew install snackstudio/tap/rindCheck it:
peel --version
peel formatsInstall script
curl -fsSL https://filesunwrapped.com/developers/install.sh | shIt works on macOS (one universal build) and Linux (x86_64 and aarch64, glibc 2.35 or later). It checks the download’s SHA-256 before extracting anything, never uses sudo, and installs into /usr/local when that is writable, otherwise ~/.local. To choose the location or also install the C library and header:
curl -fsSL https://filesunwrapped.com/developers/install.sh | sh -s -- --prefix ~/.local --with-lib--with-lib adds lib/libpeel.a, lib/libpeel.dylib (or .so on Linux) and include/peel.h. --version X.Y.Z pins a release. As with any piped script, you can read it first: filesunwrapped.com/developers/install.sh.
Rind’s own downloads aren’t published yet. Until they are, the Homebrew formula and the Linux and library downloads don’t work. On a Mac the install script installs the peel tool from the latest Peel app release instead, and the C library builds from source.
From source
Building needs the Rust toolchain and access to the private SnackStudio/peel repository.
git clone git@github.com:SnackStudio/peel.git
cd peel
cargo build --release -p peel-cli
./target/release/peel --versionThe binary is target/release/peel. Copy it onto your PATH, for example install -m 755 target/release/peel /usr/local/bin/peel.
To build the C library and header instead:
cargo build --release -p peel-ffi
ls target/release/libpeel_ffi.a target/release/libpeel_ffi.dylib include/peel.hAs a Rust crate
peel-core is the library. It is not published to crates.io, so you depend on it by git, pinned to a commit. Cargo ignores the [patch] section of a dependency, so your root manifest repeats the two patch entries for the vendored unrar-ng and sevenz-rust2 crates. Use the same rev for all three.
[package]
name = "my-host"
version = "0.1.0"
edition = "2021"
[dependencies]
peel-core = { git = "ssh://git@github.com/SnackStudio/peel.git", rev = "<COMMIT>" }
# Cargo ignores peel-core's own [patch]. Repeat both entries.
[patch.crates-io]
unrar-ng = { git = "ssh://git@github.com/SnackStudio/peel.git", rev = "<COMMIT>" }
sevenz-rust2 = { git = "ssh://git@github.com/SnackStudio/peel.git", rev = "<COMMIT>" }- Commit your
Cargo.lock. It pins the transitive versionspeel-corewas tested against. - Check the patches took effect:
cargo tree -i unrar-ngmust show a git or path source, notregistry. - The
metalfeature (GPU key derivation for password recovery) is off by default and macOS only. Leave it off unless you want it. - Keep
panic = "unwind"(the default). The C layer relies on catching panics. - For an offline build, vendor
crates/peel-core,vendor/unrar-ngandvendor/sevenz-rust2inside a copy of the repository and point the dependency and both patches at those paths.
Next: the quickstart.