# rust-lang/rust-by-example

Learn Rust with examples (Live code editor included)

Repository: https://github.com/rust-lang/rust-by-example
Canonical: https://ross.abutalabs.com/products/rust-by-example
Homepage: https://doc.rust-lang.org/stable/rust-by-example/
Language: Handlebars
License: Apache-2.0
License Family: permissive
Last push: 2026-07-06T10:14:39+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 91, release rhythm 35, longevity 100
- inputs: {"age_days": 4514, "days_push": 58, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8092, forks 1567 (observed 2026-08-28T04:10:12.653662+00:00)

## What it is
Rust by Example is an official collection of runnable examples that teach the Rust programming language and its standard library, published as an mdBook-based website with a live code editor. It is maintained by the Rust project and can be read online or built locally.

## Use cases
- learn rust programming language from scratch
- find runnable examples of rust concepts like traits and lifetimes
- practice rust code in a browser with a live editor
- reference for rust standard library usage
- read rust tutorial offline locally
- access rust learning material in other languages

## When to choose
- you are new to Rust and learn best from short, runnable code snippets
- you want an official, free resource covering language basics through std library topics
- you want to read or build the material locally or in a translated language

## When to avoid
- you need a comprehensive reference manual rather than example-driven learning
- you want project-based or exercise-driven learning rather than concept examples
- you are looking for async Rust or advanced ecosystem topics, which are only lightly covered

## Facets
- artifact type: learning-resource
- maturity: active
- function: documentation, developer-tools
- domain: programming-languages, tutorials, education
- platform: cross-platform, rust
- tags: rust, mdbook, examples, tutorial, live-code-editor, open-source-book, web-server

## Member repositories
- rust-lang/rust-by-example (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:12.653662+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:30:45.330702+00:00, confidence not recorded.
  - readme: https://github.com/rust-lang/rust-by-example (fetched 2026-08-28T04:10:12.653662+00:00, sha f290c71569cb)
  - homepage: https://doc.rust-lang.org/stable/rust-by-example/ (fetched 2026-08-29T08:28:50.019398+00:00, sha a59c4adfc63b)
  - site_page: https://www.rust-lang.org/tools/install (fetched 2026-08-29T08:28:50.029038+00:00, sha 716aed8489a8)
  - site_page: https://doc.rust-lang.org/std (fetched 2026-08-29T08:28:50.032052+00:00, sha 69335b981ae2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
