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.

Peel 1.4.0 · Snack Studio · Updated

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.

TerminalShell
brew install snackstudio/tap/rind

Check it:

TerminalShell
peel --version
peel formats

Install script

TerminalShell
curl -fsSL https://filesunwrapped.com/developers/install.sh | sh

It 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:

TerminalShell
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.

TerminalShell
git clone git@github.com:SnackStudio/peel.git
cd peel
cargo build --release -p peel-cli
./target/release/peel --version

The 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:

TerminalShell
cargo build --release -p peel-ffi
ls target/release/libpeel_ffi.a target/release/libpeel_ffi.dylib include/peel.h

As 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.

Cargo.tomlTOML
[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>" }

Next: the quickstart.