Quasar
Getting Started

Installation

Install Quasar and set up your development environment.

alt

Quasar is in beta. There are no published crate releases yet. Install from source by cloning the repository.


Prerequisites

Install Rust and the Solana CLI:

# Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# Solana CLI
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"

Install the Quasar CLI

cargo install quasar-cli

Verify with quasar --version.

Toolchain

Quasar compiles programs to SBF (Solana Bytecode Format). Two toolchains are available:

ToolchainBuild commandNotes
Solana (default)cargo build-sbfUses the Solana CLI. No extra setup.
Upstreamcargo +nightly buildTargets bpfel-unknown-none with sbpf-linker. Smaller binaries, nightly features.

Choose during quasar init or set in Quasar.toml:

[toolchain]
type = "solana"

Upstream setup

The upstream toolchain requires nightly Rust, the SBF target, and the linker:

rustup toolchain install nightly
rustup target add bpfel-unknown-none --toolchain nightly
cargo install sbpf-linker

Editor setup

Install rust-analyzer. Quasar programs use #![no_std] and cfg(target_os = "solana") -- the generated Cargo.toml configures check-cfg so rust-analyzer won't warn about either.

Next steps

Head to the Quickstart to scaffold and build your first program.

On this page