Installation

There are multiple ways to install the laze CLI tool. Choose any one of the methods below that best suit your needs. If you are installing laze for automatic deployment, check out the continuous integration chapter for more examples on how to install.

Distribution packages

The easiest way to install laze is probably by using a package for your distribution.

Available packages:

Distribution                      Package name
Arch Linux AURlaze-bin

Dependencies

laze requires Ninja. You can download the Ninja binary or find it in your system's package manager.

Pre-compiled binaries

Executable binaries are available for download on the GitHub Releases page. Download the binary for your platform (Windows, macOS, or Linux) and extract the archive. The archive contains laze executable.

To make it easier to run, put the path to the binary into your PATH.

Build from source using Rust

To build the laze executable from source, you will first need to install Rust and Cargo. Follow the instructions on the Rust installation page. laze currently requires at least Rust version 1.54.

Once you have installed Rust, the following command can be used to build and install laze:

cargo install laze

This will automatically download laze from crates.io, build it, and install it in Cargo's global binary directory (~/.cargo/bin/ by default).

Installing the latest master version

The version published to crates.io will ever so slightly be behind the version hosted on GitHub. If you need the latest version you can build the git version of laze yourself. Cargo makes this super easy!

cargo install --git https://github.com/kaspar030.git laze

Again, make sure to add the Cargo bin directory to your PATH.

If you are interested in making modifications to laze itself, check out the Contributing Guide for more information.