Installation

Get Turbo up and running on your machine.

Prerequisites

  • Rust (stable toolchain) -- rustup.rs
  • C compiler -- gcc or clang (for linking AOT binaries)

Option 1: Homebrew (macOS)

The fastest way to install on macOS:

brew tap ZVN-DEV/turbo
brew install turbo-lang

Option 2: Build from Source

# Clone the repository
git clone https://github.com/ZVN-DEV/Turbo-Language.git
cd Turbo-Language/turbo

# Build in release mode
cargo build --release

# The binary is at target/release/turbo

Add to PATH

Add the Turbo binary to your shell's PATH so you can use it from anywhere:

# Add to ~/.bashrc, ~/.zshrc, or equivalent
export PATH="$HOME/Turbo-Language/turbo/target/release:$PATH"

Verify Installation

turbo --version

You should see the current version number printed to the terminal.

LLVM Backend (Optional)

For maximum performance, install LLVM 18 and rebuild with LLVM support:

# macOS
brew install llvm@18

# Build with LLVM support
LLVM_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18 cargo build --release

# Now you can use: turbo build --llvm myapp.tb

Editor Support

Install the Turbo VS Code extension for syntax highlighting, snippets, and LSP integration:

# Search "Turbo Language" in the VS Code Extensions panel
# Or install from the command line:
code --install-extension zvndev.turbo-lang