Use Auto as a scripting environment for Rust. Call any Rust code from AutoVM, or transpile Auto to production-grade Rust with A2R.
AutoVM is no longer just a language VM — it is a full Rust scripting environment.
use.rs std::path::PathBuf
use.rs std::time::Duration
let p = PathBuf.from("src/main.rs")
print(p)
let d = Duration.from_secs(5)
print(d) // prints 5000msCompile Auto to Rust with behavior parity to AutoVM. Ship production binaries from your Auto source.
#[api] → full Axum servers#[tauri::command] and Channel support// Auto source
fn add(a: int, b: int) -> int { a + b }
// Generated Rust
fn add(a: i64, b: i64) -> i64 { a + b }Choose the stdlib that fits your deployment target.
use.rs (the older use.rust spelling is deprecated).Portable across targets
Json.parse(data)Full crates.io access
use.rs std::net::TcpListenerWrite Rust-powered scripts in Auto without setting up a Cargo project for every task.
Tap into crates.io without leaving Auto. Axum, Tokio, Serde — all accessible.
Prototype in AutoVM, ship with A2R. Same code, two execution modes.
Auto's ownership system maps naturally to Rust's borrow checker.
A2R generates idiomatic Rust with no runtime overhead.
Compiler picks borrow, clone, or Rc based on actual usage patterns.
Read the design documents, run the cookbook examples, or try the Rust scripting mode in the Playground.