rust
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseRust リファレンス
Rust参考资料
Rust — システムプログラミング言語。所有権・借用・ライフタイム・型システムによりメモリ安全性とスレッド安全性を保証する。
公式ドキュメント (doc.rust-lang.org) から主要 14 リソースを構造化。
言語仕様・コード記述・ビルド(Cargo)・Unsafe Rust・組込み・CLI 開発時に参照する。
Rust——系统编程语言。通过所有权、借用、生命周期、类型系统保证内存安全与线程安全。
将官方文档(doc.rust-lang.org)中的14项核心资源进行结构化整理。
可在查阅语言规范、编写代码、构建项目(Cargo)、使用Unsafe Rust、嵌入式开发、CLI开发时参考。
ディレクトリ構成
目录结构
text
skills/rust/
SKILL.md
references/
book/
README.md
01-getting-started.md
02-guessing-game.md
03-common-programming-concepts.md
04-ownership.md
05-structs.md
06-enums-and-pattern-matching.md
07-packages-crates-modules.md
08-common-collections.md
09-error-handling.md
10-generic-types-traits-lifetimes.md
11-testing.md
12-io-project.md
13-iterators-closures.md
14-cargo-crates-io.md
15-smart-pointers.md
16-fearless-concurrency.md
18-oop.md
19-patterns-and-matching.md
20-advanced-features.md
21-final-project.md
by-example/
README.md
01-hello-world.md
02-primitives.md
03-custom-types.md
04-variable-bindings.md
05-types.md
06-conversion.md
07-expressions.md
08-flow-of-control.md
09-functions.md
10-modules.md
11-crates.md
12-cargo.md
13-attributes.md
14-generics.md
15-scoping-rules.md
16-traits.md
17-macros.md
18-error-handling.md
19-std-library-types.md
20-std-misc.md
21-testing.md
22-unsafe-operations.md
23-compatibility.md
24-meta.md
reference/
README.md
abi.md
attributes.md
behavior-considered-undefined.md
conditional-compilation.md
const-evaluation.md
crates-and-source-files.md
influences.md
inline-assembly.md
items.md
lexical-structure.md
linkage.md
macros.md
memory-model.md
names.md
notation.md
patterns.md
runtime.md
special-types-and-traits.md
statements-and-expressions.md
type-system.md
unsafety.md
cargo/
README.md
cargo-guide.md
commands.md
faq.md
getting-started.md
reference-build-scripts.md
reference-cargo-toml.md
reference-config.md
reference-environment-variables.md
reference-external-tools.md
reference-features.md
reference-lints.md
reference-manifest.md
reference-overriding-dependencies.md
reference-profiles.md
reference-publishing.md
reference-registries.md
reference-registry-auth.md
reference-resolver.md
reference-semver.md
reference-source-replacement.md
reference-specifying-dependencies.md
reference-unstable.md
reference-workspaces.md
rustc/
README.md
check-cfg.md
codegen-options.md
command-line-arguments.md
contributing.md
exploit-mitigations.md
instrument-coverage.md
jobserver.md
json.md
linker-plugin-lto.md
lints.md
platform-support.md
profile-guided-optimization.md
remap-path-prefix.md
sanitizers.md
symbol-mangling.md
targets.md
tests.md
rustdoc/
README.md
advanced-features.md
attributes.md
command-line.md
documentation-tests.md
how-to-read.md
how-to-write.md
linking-to-items-by-name.md
lints.md
passes.md
references.md
scraped-examples.md
unstable-features.md
what-is-rustdoc.md
nomicon/
README.md
atomics.md
beneath-std.md
concurrency.md
conversions.md
data-layout.md
ffi.md
implementing-arc-and-mutex.md
implementing-vec.md
meet-safe-and-unsafe.md
other-reprs.md
ownership-based-resource-management.md
ownership.md
uninitialized.md
unwinding.md
edition-guide/
README.md
creating-new-project.md
rust-2015.md
rust-2018.md
rust-2021.md
rust-2024.md
transitioning-existing-project.md
what-is-edition.md
cli/
README.md
config-files.md
error-handling.md
human-communication.md
in-depth-exit-code.md
in-depth-human-communication.md
in-depth-signal-handling.md
machine-communication.md
packaging-distribution.md
parsing-arguments.md
project-setup.md
testing.md
embedded/
README.md
appendix.md
collections.md
concurrency.md
design-patterns.md
installation.md
interoperability.md
intro.md
memory-mapped-registers.md
no-std.md
peripherals.md
portability.md
static-guarantees.md
tips-for-embedded-c-devs.md
unsorted.md
stdlib/
README.md
module-categories.md
overview.md
errors/
README.md
error-categories.md
unstable/
README.md
feature-categories.md
rustlings/
README.md
overview.md
samples/
README.md
async-tokio.md
collections.md
concurrency-threads.md
enums-and-pattern-matching.md
error-handling.md
iterators-and-closures.md
ownership-and-borrowing.md
structs-and-methods.md
testing.md
traits-and-generics.md
scripts/
README.md
build.md
dependencies.md
generate.md
install.md
lint.md
publish.md
test.mdtext
skills/rust/
SKILL.md
references/
book/
README.md
01-getting-started.md
02-guessing-game.md
03-common-programming-concepts.md
04-ownership.md
05-structs.md
06-enums-and-pattern-matching.md
07-packages-crates-modules.md
08-common-collections.md
09-error-handling.md
10-generic-types-traits-lifetimes.md
11-testing.md
12-io-project.md
13-iterators-closures.md
14-cargo-crates-io.md
15-smart-pointers.md
16-fearless-concurrency.md
18-oop.md
19-patterns-and-matching.md
20-advanced-features.md
21-final-project.md
by-example/
README.md
01-hello-world.md
02-primitives.md
03-custom-types.md
04-variable-bindings.md
05-types.md
06-conversion.md
07-expressions.md
08-flow-of-control.md
09-functions.md
10-modules.md
11-crates.md
12-cargo.md
13-attributes.md
14-generics.md
15-scoping-rules.md
16-traits.md
17-macros.md
18-error-handling.md
19-std-library-types.md
20-std-misc.md
21-testing.md
22-unsafe-operations.md
23-compatibility.md
24-meta.md
reference/
README.md
abi.md
attributes.md
behavior-considered-undefined.md
conditional-compilation.md
const-evaluation.md
crates-and-source-files.md
influences.md
inline-assembly.md
items.md
lexical-structure.md
linkage.md
macros.md
memory-model.md
names.md
notation.md
patterns.md
runtime.md
special-types-and-traits.md
statements-and-expressions.md
type-system.md
unsafety.md
cargo/
README.md
cargo-guide.md
commands.md
faq.md
getting-started.md
reference-build-scripts.md
reference-cargo-toml.md
reference-config.md
reference-environment-variables.md
reference-external-tools.md
reference-features.md
reference-lints.md
reference-manifest.md
reference-overriding-dependencies.md
reference-profiles.md
reference-publishing.md
reference-registries.md
reference-registry-auth.md
reference-resolver.md
reference-semver.md
reference-source-replacement.md
reference-specifying-dependencies.md
reference-unstable.md
reference-workspaces.md
rustc/
README.md
check-cfg.md
codegen-options.md
command-line-arguments.md
contributing.md
exploit-mitigations.md
instrument-coverage.md
jobserver.md
json.md
linker-plugin-lto.md
lints.md
platform-support.md
profile-guided-optimization.md
remap-path-prefix.md
sanitizers.md
symbol-mangling.md
targets.md
tests.md
rustdoc/
README.md
advanced-features.md
attributes.md
command-line.md
documentation-tests.md
how-to-read.md
how-to-write.md
linking-to-items-by-name.md
lints.md
passes.md
references.md
scraped-examples.md
unstable-features.md
what-is-rustdoc.md
nomicon/
README.md
atomics.md
beneath-std.md
concurrency.md
conversions.md
data-layout.md
ffi.md
implementing-arc-and-mutex.md
implementing-vec.md
meet-safe-and-unsafe.md
other-reprs.md
ownership-based-resource-management.md
ownership.md
uninitialized.md
unwinding.md
edition-guide/
README.md
creating-new-project.md
rust-2015.md
rust-2018.md
rust-2021.md
rust-2024.md
transitioning-existing-project.md
what-is-edition.md
cli/
README.md
config-files.md
error-handling.md
human-communication.md
in-depth-exit-code.md
in-depth-human-communication.md
in-depth-signal-handling.md
machine-communication.md
packaging-distribution.md
parsing-arguments.md
project-setup.md
testing.md
embedded/
README.md
appendix.md
collections.md
concurrency.md
design-patterns.md
installation.md
interoperability.md
intro.md
memory-mapped-registers.md
no-std.md
peripherals.md
portability.md
static-guarantees.md
tips-for-embedded-c-devs.md
unsorted.md
stdlib/
README.md
module-categories.md
overview.md
errors/
README.md
error-categories.md
unstable/
README.md
feature-categories.md
rustlings/
README.md
overview.md
samples/
README.md
async-tokio.md
collections.md
concurrency-threads.md
enums-and-pattern-matching.md
error-handling.md
iterators-and-closures.md
ownership-and-borrowing.md
structs-and-methods.md
testing.md
traits-and-generics.md
scripts/
README.md
build.md
dependencies.md
generate.md
install.md
lint.md
publish.md
test.md探索手順
使用指南
タスクからカテゴリを引き、カテゴリの README.md で目的のページを特定する:
- 下記マッピング表でタスクに対応するカテゴリを探す
- そのカテゴリの を参照して目的のページを特定する
references/{category}/README.md - 該当ページの を Read して詳細を確認する
.md
根据任务需求找到对应分类,通过分类下的README.md定位目标页面:
- 在下方映射表中查找与任务对应的分类
- 查看该分类下的以确定目标页面
references/{category}/README.md - 阅读对应页面的.md文件以了解详细内容
タスク → カテゴリ マッピング
任务→分类映射表
| タスク | カテゴリ | 参照 README |
|---|---|---|
| 言語入門・所有権・借用・ライフタイム・構造体・Enum・トレイト・ジェネリクス・並行性・async を学ぶ | book | references/book/README.md |
| 言語機能をコード例で素早く確認する、構文のクイックリファレンス | by-example | references/by-example/README.md |
| 厳密な言語仕様・構文・型システム・メモリモデル・ABI・UB 定義を調べる | reference | references/reference/README.md |
| Cargo.toml, Workspaces, Features, Profiles, 依存関係指定, crates.io 公開を調べる | cargo | references/cargo/README.md |
| rustc コンパイラオプション, lint, target, sanitizer, PGO, LTO を調べる | rustc | references/rustc/README.md |
| ドキュメント生成, doctest, doc コメント記法, intra-doc links を調べる | rustdoc | references/rustdoc/README.md |
| Unsafe Rust, FFI, unsound パターン, Vec/Arc 実装, アトミックを調べる | nomicon | references/nomicon/README.md |
| Rust 2015/2018/2021/2024 エディション差分・移行方法を調べる | edition-guide | references/edition-guide/README.md |
| CLI アプリ開発, clap, 終了コード, シグナル処理を調べる | cli | references/cli/README.md |
| 組込み開発, no_std, HAL, peripheral, memory-mapped registers を調べる | embedded | references/embedded/README.md |
| 標準ライブラリのモジュール構成, Collections, I/O, Concurrency 概要を調べる | stdlib | references/stdlib/README.md |
| コンパイラエラーコード(E0XXX)の参照方法・代表例を調べる | errors | references/errors/README.md |
| Nightly 限定機能, feature フラグ, -Z フラグを調べる | unstable | references/unstable/README.md |
| Rustlings 演習環境・学習ワークフローを調べる | rustlings | references/rustlings/README.md |
| 典型的な使い方を知りたい(所有権・async・エラー処理・コレクション等) | samples | samples/README.md |
| インストール・ビルド・テスト・lint・依存管理・公開コマンドを知りたい | scripts | scripts/README.md |
| 任务 | 分类 | 参考README |
|---|---|---|
| 学习语言入门、所有权、借用、生命周期、结构体、Enum、Trait、泛型、并发、async | book | references/book/README.md |
| 通过代码示例快速确认语言功能、语法速查 | by-example | references/by-example/README.md |
| 查阅严谨的语言规范、语法、类型系统、内存模型、ABI、UB定义 | reference | references/reference/README.md |
| 查阅Cargo.toml、Workspaces、Features、Profiles、依赖指定、crates.io发布相关内容 | cargo | references/cargo/README.md |
| 查阅rustc编译器选项、lint、target、sanitizer、PGO、LTO相关内容 | rustc | references/rustc/README.md |
| 查阅文档生成、doctest、文档注释写法、intra-doc links相关内容 | rustdoc | references/rustdoc/README.md |
| 查阅Unsafe Rust、FFI、unsound模式、Vec/Arc实现、原子操作相关内容 | nomicon | references/nomicon/README.md |
| 查阅Rust 2015/2018/2021/2024版本差异、迁移方法 | edition-guide | references/edition-guide/README.md |
| 查阅CLI应用开发、clap、退出码、信号处理相关内容 | cli | references/cli/README.md |
| 查阅嵌入式开发、no_std、HAL、peripheral、memory-mapped registers相关内容 | embedded | references/embedded/README.md |
| 查阅标准库模块结构、Collections、I/O、Concurrency概述 | stdlib | references/stdlib/README.md |
| 查阅编译器错误代码(E0XXX)的参考方法、典型示例 | errors | references/errors/README.md |
| 查阅Nightly专属功能、feature flag、-Z flag相关内容 | unstable | references/unstable/README.md |
| 查阅Rustlings练习环境、学习工作流 | rustlings | references/rustlings/README.md |
| 了解典型用法(所有权、async、错误处理、集合等) | samples | samples/README.md |
| 了解安装、构建、测试、lint、依赖管理、发布命令 | scripts | scripts/README.md |