Soul Kernel Setup Guide
This guide covers setting up Soul Kernel on various platforms and configurations.π Table of Contents
System Requirements
Minimum Requirements
- CPU: 64-bit processor (x86_64 or ARM64)
- RAM: 4GB minimum, 8GB recommended
- Storage: 2GB free space
- OS: macOS 11+, Ubuntu 20.04+, Windows 10+
Supported Architectures
- x86_64 (Intel/AMD)
- aarch64 (Apple Silicon, ARM64)
- Cross-compilation to iOS, Android, Physical AI devices
Platform Setup
macOS
Hereβs the best way to set up and develop with Rust on macOS, optimized for both speed and ergonomics:β 1. Install Rust
Userustup to manage Rust versions:
Installscargo,rustc,rustfmt, etc.
β 2. Set Up a Modern Rust Dev Environment
Toolchainβ 3. Editor Setup (VS Code)
Install extensions:- Rust Analyzer (
rust-lang.rust-analyzer) β best LSP - CodeLLDB β native debugging
Ensure rust-analyzer is enabled in VS Code settings.
β
4. Use cargo Efficiently
| Command | Purpose |
|---|---|
cargo build | Compile debug build |
cargo check | Fast type-check only |
cargo test | Run unit tests |
cargo fmt | Format code |
cargo clippy | Lint with Clippy |
β 5. Recommended Add-ons
cargo-watchβ auto-rebuild on file changejustβ task runner like Make but Rust-y
β 6. Apple-Silicon Gotchas
- Ensure dependencies compile for
aarch64-apple-darwin. - Some crates (e.g.
openssl) require Xcode CLI tools:
β
7. Optional: Use nix for reproducible builds
If you want consistent dev environments across teams, try nix or devbox.
Linux
-
Update System Packages
-
Install Build Essentials
-
Install Rust
-
Install Additional Dependencies
Windows
-
Install Visual Studio Build Tools
- Download from Visual Studio
- Select βDesktop development with C++β
-
Install Rust
- Download and run rustup-init.exe
- Follow the installer prompts
-
Install Git Bash (recommended)
- Download from git-scm.com
-
Set Environment Variables
Development Setup
1. Clone Repository
2. Install Rust Toolchain
3. Build Project
4. IDE Configuration
VS Code
-
Install extensions:
- rust-analyzer
- CodeLLDB (for debugging)
- Even Better TOML
-
Create
.vscode/settings.json:
IntelliJ IDEA / CLion
- Install Rust plugin
- Open project root
- Configure Rust toolchain in Settings
5. Pre-commit Hooks (optional)
Shell-Specific Setup
iOS Shell (React Native)
-
Install Node.js & Yarn
-
Install CocoaPods
-
Setup iOS Dependencies
Unity Shell
-
Install Unity Hub
- Download from unity.com
-
Install Unity 2022.3 LTS
- Add iOS/Android build support
-
Import Soul Kernel Package
Physical AI Gateway
-
Flash JetPack 5.1+ (for NVIDIA Jetson)
- Use NVIDIA SDK Manager
-
Install Rust on Physical AI Device
-
Install dora-rs
Environment Variables
Development
Production
Troubleshooting
Common Issues
1. Rust Installation Fails
2. Cargo Build Errors
3. Binary Size Too Large
4. Cross-compilation Issues
Platform-Specific Issues
macOS: βxcrun: errorβ
Linux: Missing Libraries
Windows: Link Errors
- Ensure Visual Studio Build Tools are installed
- Run from βx64 Native Tools Command Promptβ
Next Steps
- Read the Developer Onboarding Guide
- Explore the Architecture Documentation
- Join our Discord Community