# sunface/rust-course architecture

> Architecture diagram of the GitHub repository sunface/rust-course, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sunface/rust-course
- Repository: https://github.com/sunface/rust-course

## Overview

This repository is primarily a Chinese Rust learning resource: readers use the course for beginner-to-advanced study, with additional practice materials and an AI-learning chapter. The tree shows these as content areas rather than runtime services. No source excerpts were provided, so the graph avoids inferred calls or flows; the reader-to-course relationship is documented in the README.

Main entry points: [`src`](https://github.com/sunface/rust-course/tree/main/src) (Course content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_foundations["Rust foundations"]
  node_course["Course content"]
  node_first_steps["Getting started"]
  node_basics["Language basics"]
end

subgraph group_advanced["Advanced Rust"]
  node_advanced_topics["Advanced topics"]
  node_async["Async Rust"]
  node_thread_concurrency["Thread concurrency"]
end

subgraph group_practice["Practice and use"]
  node_basic_practice["Basic practice"]
  node_practice_material["Rustlings exercises"]
  node_async_practice["Async practice"]
  node_use_cases["Rust use cases"]
end

subgraph group_reference["Reference topics"]
  node_libraries["Library guides"]
  node_standard_library["Standard library"]
  node_cargo["Cargo guide"]
  node_ai_learning["AI learning chapter<br/>[beat-ai.md]"]
end

node_reader(("Learner"))

node_reader -->|"reads"| node_course

click node_course "https://github.com/sunface/rust-course/tree/main/src"
click node_first_steps "https://github.com/sunface/rust-course/tree/main/src/first-try"
click node_basics "https://github.com/sunface/rust-course/tree/main/src/basic"
click node_basic_practice "https://github.com/sunface/rust-course/tree/main/src/basic-practice"
click node_practice_material "https://github.com/sunface/rust-course/tree/main/assets/rustlings-zh/exercises"
click node_advanced_topics "https://github.com/sunface/rust-course/tree/main/src/advance"
click node_async "https://github.com/sunface/rust-course/tree/main/src/advance/async"
click node_thread_concurrency "https://github.com/sunface/rust-course/tree/main/src/advance/concurrency-with-threads"
click node_async_practice "https://github.com/sunface/rust-course/tree/main/src/advance-practice"
click node_use_cases "https://github.com/sunface/rust-course/tree/main/src/usecases"
click node_libraries "https://github.com/sunface/rust-course/tree/main/src/libraries"
click node_standard_library "https://github.com/sunface/rust-course/tree/main/src/std"
click node_cargo "https://github.com/sunface/rust-course/tree/main/src/cargo"
click node_ai_learning "https://github.com/sunface/rust-course/blob/main/src/beat-ai.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_course,node_first_steps,node_basics toneBlue
class node_advanced_topics,node_async,node_thread_concurrency toneAmber
class node_basic_practice,node_practice_material,node_async_practice,node_use_cases toneMint
class node_libraries,node_standard_library,node_cargo,node_ai_learning toneRose
class node_reader toneIndigo
```

## Components

### Rust foundations

- [Course content](https://github.com/sunface/rust-course/tree/main/src): `src`
- [Getting started](https://github.com/sunface/rust-course/tree/main/src/first-try): `src/first-try`
- [Language basics](https://github.com/sunface/rust-course/tree/main/src/basic): `src/basic`

### Advanced Rust

- [Advanced topics](https://github.com/sunface/rust-course/tree/main/src/advance): `src/advance`
- [Async Rust](https://github.com/sunface/rust-course/tree/main/src/advance/async): `src/advance/async`
- [Thread concurrency](https://github.com/sunface/rust-course/tree/main/src/advance/concurrency-with-threads): `src/advance/concurrency-with-threads`

### Practice and use

- [Basic practice](https://github.com/sunface/rust-course/tree/main/src/basic-practice): `src/basic-practice`
- [Rustlings exercises](https://github.com/sunface/rust-course/tree/main/assets/rustlings-zh/exercises): `assets/rustlings-zh/exercises`
- [Async practice](https://github.com/sunface/rust-course/tree/main/src/advance-practice): `src/advance-practice`
- [Rust use cases](https://github.com/sunface/rust-course/tree/main/src/usecases): `src/usecases`

### Reference topics

- [Library guides](https://github.com/sunface/rust-course/tree/main/src/libraries): `src/libraries`
- [Standard library](https://github.com/sunface/rust-course/tree/main/src/std): `src/std`
- [Cargo guide](https://github.com/sunface/rust-course/tree/main/src/cargo): `src/cargo`
- [AI learning chapter](https://github.com/sunface/rust-course/blob/main/src/beat-ai.md): `src/beat-ai.md`

### Other components

- **Learner**

## Connections

- Learner → Course content: reads (evidence: `README.md`)
