Installation

Cobalt supports Windows, Linux, and Mac.

OS Package

None available yet

Pre-built Binary

Requirements: None

Download a release.

or the following will install cobalt to ~/.cargo/bin:

$ curl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git cobalt-org/cobalt.rs --crate cobalt

From Source

Requirements

Debian 9 (stretch)
# Install needed packages with
sudo apt install cmake git curl build-essential libssl-dev

# Install rust (do **not** use the package `sudo apt install rust`
# ass this will install a old rust version). Use:
curl https://sh.rustup.rs -sSf | sh
# Source the Rust environment
source $HOME/.cargo/env
Windows

Without syntax highlighting / sass (requires cargo ... --no-default-features):

  1. Ensure Rust is installed.

With syntax highlighting / sass:

  1. Ensure Rust is installed using Build Tools for Visual Studio instead of MinGW/MSYS2.
  2. Install Windows 10 SDK
  3. Run "<VS Path>\vcvarsall.bat" amd64 in your command prompt you'll build from.

Compile Steps

  1. Either git clone https://github.com/cobalt-org/cobalt.rs.git or Download a zip archive
  2. cargo build --release
  3. Check if all tests are passing with: cargo test

You can also customize the build, including adding support for unstable features:

$ cargo build --release --features=sass