Run Rust on your Android phone: add the optional Rust pack once, then compile and run your code on-device and offline. What it's for and where the limits are.
Rust and a phone don't sound like a match — the compiler alone is a serious piece
of software. PocketCode makes it work with an optional Rust pack: download it
once, and your .rs files compile and run on the device, offline from then on.
Rust arrives as a language pack you install a single time — it isn't one of the
five bundled-by-default languages. After that, the loop is the same: open a .rs
file, tap Run, and it builds and executes locally.
fn main, ownership and borrowing, match,
Result, println! — compiles on the device.The editor backs it with Rust-aware highlighting, autocomplete and formatting and a symbol bar for Rust's punctuation.
Within those lines, it's real Rust, compiling on your phone.
Rust is one of a dozen-plus languages PocketCode runs on-device — five bundled offline (Python, JavaScript, C, Ruby, PHP) plus packs like this one and Go. See the full lineup.
Add the pack once and your phone compiles Rust, offline.
PocketCode is heading to Google Play. Join the pre-registration to try it on your own device.
Code Editor