Getting Started
Installation
Install Quasar and set up your development environment.

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-cliVerify with quasar --version.
Toolchain
Quasar compiles programs to SBF (Solana Bytecode Format). Two toolchains are available:
| Toolchain | Build command | Notes |
|---|---|---|
| Solana (default) | cargo build-sbf | Uses the Solana CLI. No extra setup. |
| Upstream | cargo +nightly build | Targets 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-linkerEditor 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.
