Skip to main content

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

Use rustup to manage Rust versions:
Installs cargo, rustc, rustfmt, etc.

βœ… 2. Set Up a Modern Rust Dev Environment

Toolchain
Project Starter

βœ… 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

  • cargo-watch β€” auto-rebuild on file change
  • just β€” 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

  1. Update System Packages
  2. Install Build Essentials
  3. Install Rust
  4. Install Additional Dependencies

Windows

  1. Install Visual Studio Build Tools
    • Download from Visual Studio
    • Select β€œDesktop development with C++”
  2. Install Rust
  3. Install Git Bash (recommended)
  4. Set Environment Variables

Development Setup

1. Clone Repository

2. Install Rust Toolchain

3. Build Project

4. IDE Configuration

VS Code

  1. Install extensions:
    • rust-analyzer
    • CodeLLDB (for debugging)
    • Even Better TOML
  2. Create .vscode/settings.json:

IntelliJ IDEA / CLion

  1. Install Rust plugin
  2. Open project root
  3. Configure Rust toolchain in Settings

5. Pre-commit Hooks (optional)

Shell-Specific Setup

iOS Shell (React Native)

  1. Install Node.js & Yarn
  2. Install CocoaPods
  3. Setup iOS Dependencies

Unity Shell

  1. Install Unity Hub
  2. Install Unity 2022.3 LTS
    • Add iOS/Android build support
  3. Import Soul Kernel Package

Physical AI Gateway

  1. Flash JetPack 5.1+ (for NVIDIA Jetson)
    • Use NVIDIA SDK Manager
  2. Install Rust on Physical AI Device
  3. 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

  • Ensure Visual Studio Build Tools are installed
  • Run from β€œx64 Native Tools Command Prompt”

Next Steps

Need help? File an issue on GitHub 🀝