Skip to content Aller au contenu

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

lucid-lint ships through four routes. Pick the one that matches your environment.

One-line installer (Linux, macOS, WSL)

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bastien-gallay/lucid-lint/releases/latest/download/lucid-lint-installer.sh | sh

The script is generated by cargo-dist for every tagged release. It detects your platform, downloads the matching prebuilt binary from the GitHub release, and places it on $PATH (default: $CARGO_HOME/bin if set, else ~/.cargo/bin).

Audit before running

curl … | sh is fast but opaque. To read the script before executing it:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bastien-gallay/lucid-lint/releases/latest/download/lucid-lint-installer.sh -o install.sh
less install.sh
sh install.sh

The script is short — under 200 lines of POSIX shell — so a quick read is realistic. It pins the release version it was generated for, verifies the downloaded archive’s expected size, and exits non-zero on any mismatch.

Pin a specific version

latest resolves to the most recent release. To pin a known-good version:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/bastien-gallay/lucid-lint/releases/download/v0.2.2/lucid-lint-installer.sh | sh

One-line installer (Windows PowerShell)

powershell -ExecutionPolicy Bypass -c "irm https://github.com/bastien-gallay/lucid-lint/releases/latest/download/lucid-lint-installer.ps1 | iex"

Same cargo-dist machinery, PowerShell flavour. Drops the binary into %CARGO_HOME%\bin when CARGO_HOME is set, else %USERPROFILE%\.cargo\bin.

To audit before running, save the script and inspect it:

irm https://github.com/bastien-gallay/lucid-lint/releases/latest/download/lucid-lint-installer.ps1 -OutFile install.ps1
notepad install.ps1
.\install.ps1

Via Cargo

cargo install lucid-lint

This compiles from source via crates.io and places the binary in your Cargo bin directory (default ~/.cargo/bin/). Slower than the prebuilt installer but useful when the prebuilt targets don’t match your platform.

From source

git clone https://github.com/bastien-gallay/lucid-lint
cd lucid-lint
cargo install --path .

Pre-built binaries

Each release ships pre-built binaries for:

  • Linux (x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl)
  • macOS (aarch64-apple-darwin, x86_64-apple-darwin)
  • Windows (x86_64-pc-windows-msvc)

The shell and PowerShell installers above pick the right archive automatically. To install manually, download from the GitHub releases page and put the extracted binary on $PATH.

Verify the installation

lucid-lint --version

System requirements

  • Rust 1.75 or newer (only needed if building from source or via cargo install).
  • No runtime dependencies.