Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

From crates.io

cargo install diesel-guard

Prebuilt Binaries

macOS and Linux:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ayarotsky/diesel-guard/releases/latest/download/diesel-guard-installer.sh | sh

Windows (PowerShell):

powershell -ExecutionPolicy Bypass -c "irm https://github.com/ayarotsky/diesel-guard/releases/latest/download/diesel-guard-installer.ps1 | iex"

Homebrew:

brew install ayarotsky/tap/diesel-guard

Verify Installation

diesel-guard --version

Initialize Configuration

Generate a documented configuration file in your project root:

diesel-guard init

This creates a diesel-guard.toml with all available options and their descriptions. See Configuration for full details.