This doc explains the supported Soroban toolchain for SplitNaira.
- Rust:
1.76+(stable) - Cargo: included with Rust
- Soroban CLI:
>=0.28.0(test coverage in repo built against current network) - Stellar CLI: latest stable
# Using rustup (PowerShell or CMD)
winget install Rustlang.Rust.MSVC
# Or manually
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup default stable
rustup updateSoroban contracts require MSVC build tools. Install via:
- Download Visual Studio Build Tools
- Select "Desktop development with C++" workload
- Ensure Windows 10/11 SDK is included
Alternatively, run in PowerShell:
winget install Microsoft.VisualStudio.2022.BuildTools --add Microsoft.VisualStudio.Workload.VCcargo install soroban-cli --lockedcargo install stellar-cliCause: Missing MSVC build tools.
Fix: Install Visual Studio Build Tools with C++ workload.
Cause: Windows SDK path not in PATH.
Fix: Open "Developer Command Prompt for VS2022" or run:
"%VSINSTALLDIR%\VC\Auxiliary\Build\vcvars64.bat"Cause: C++ standard library not linked.
Fix: Ensure MSVC is properly installed and run from VS Developer Prompt.
# Install the Soroban WASM target (one-time)
rustup target add wasm32v1-none
cd contracts
cargo test --locked
cargo build --release --target wasm32v1-none --lockedcontracts/target/wasm32v1-none/release/splitnaira_contract.wasmcontracts/target/wasm32v1-none/release/splitnaira_contract.wasm.sha256
soroban contract deployis the preferred deployment command.cargo testmust pass before deploy.