Skip to content

v1.2.4 — Real Rust Compilation & Test Execution

Choose a tag to compare

@sylvester-francis sylvester-francis released this 23 Mar 03:21
· 63 commits to main since this release

What's New

Real Rust Compilation in Playground

  • New Compile button alongside the existing AI Run button
  • Sends code to the Rust Playground API for real rustc compilation
  • See actual compiler errors, warnings, and program output — not AI approximations
  • Works without the on-device model (only requires internet)

Automated Test Execution for Exercises

  • New Run Tests button on exercises that include test cases
  • Runs real cargo test via the Rust Playground API
  • Shows per-test pass/fail results with expandable raw output
  • All tests passing auto-completes the exercise
  • 3 exercises ship with tests as proof of concept (if1, functions5, structs1)

Architecture

  • New network layer with RustPlaygroundService interface (testable, injectable)
  • CompileCodeUseCase and RunExerciseTestsUseCase follow existing Clean Architecture patterns
  • Backward-compatible exercise schema — exercises without tests continue working unchanged
  • play.rust-lang.org added to network security config

Offline-First Preserved

  • AI tutor, content, flashcards, and all learning features remain fully offline
  • Compilation and test execution are optional online enhancements
  • Graceful error handling when offline ("No internet connection" message)

Full Changelog: v1.2.3...v1.2.4