Rust by Example is a learning resource that teaches Rust programming through executable code examples with an integrated live editor.
The resource addresses the challenge of learning Rust by providing concrete, runnable examples rather than abstract explanations. Each example can be executed directly in the browser through the embedded code editor, allowing learners to experiment with language features immediately without setting up a local development environment. The examples are organized by topic, progressing from basic concepts to more advanced features.
Rust by Example suits developers new to Rust who learn best through hands-on experimentation and concrete code samples. It works well as a companion to other documentation or as a standalone introduction for those who prefer example-driven learning over reference material. The resource is available both online and for local reading, though running the examples requires an internet connection. The project maintains translations in multiple languages, with dedicated translation guides for Japanese and Chinese communities, and community-contributed translations in several other languages.
The project accepts contributions through a formal process documented in its contributing guidelines. Translation efforts are actively supported with language-specific guidance and coordination. The codebase uses Handlebars as its primary templating language for rendering content.