$ cargo doc --open
참고 자료
본문을 쓰고 확인할 때 바탕으로 삼은 공식 문서와 자료입니다. 이 과정의 예제는 모두 rustc 1.99.1 (2026년 10월)로 직접 컴파일하고 실행했습니다.
1단계
시작하기
- The Rust Programming Language (공식 책), 1장 Getting Started
- The Rust Programming Language (공식 책), 3장 3.1 Variables and Mutability · 3.2 Data Types · 3.4 Comments
- The Cargo Book, Profiles (dev·release 기본 설정과 overflow-checks)
- The Rust Reference, Operator expressions (정수 넘침, 나눗셈과 나머지)
- std 문서 std::fmt (서식 문자열)
- Rust Compiler Error Index (rustc --explain 과 같은 내용)
- Rust 블로그, Announcing Rust 1.0 (2015-05-15)
- The Edition Guide
2단계
기본 문법
- The Rust Programming Language (공식 책), 3장 Common Programming Concepts (3.2 Data Types, 3.3 Functions, 3.5 Control Flow)
- The Rust Reference: Type cast expressions, Block expressions, Loops and other breakable expressions
- Rust 표준 라이브러리 문서: std::io::Stdin::read_line, str::parse, str::trim, primitive 타입(i32, f64, char, array, tuple)
- rustc 오류 색인(Rust Compiler Error Index): E0308, E0317, E0571, E0604, E0284
- Rust by Example: Primitives, Flow of Control
3단계
소유권
- The Rust Programming Language (공식 책), 4장 Understanding Ownership (4.1 What Is Ownership?, 4.2 References and Borrowing, 4.3 The Slice Type)
- Rust 표준 라이브러리 문서: std::string::String, primitive type str, primitive type slice, std::marker::Copy, std::clone::Clone, std::mem::size_of
- rustc 오류 색인(Rust Compiler Error Index): E0106, E0308, E0382, E0425, E0499, E0502, E0596
- The Rust Reference: References (& and &mut), Slice types
4단계
구조체와 열거형
- The Rust Programming Language (공식 책), 5장 Using Structs to Structure Related Data
- The Rust Programming Language (공식 책), 6장 Enums and Pattern Matching, 19장 Patterns and Matching
- The Rust Reference — Structs, Enumerations, Match expressions, Patterns, let statements(let-else)
- Rust 표준 라이브러리 문서 — std::option (Representation 절), std::fmt (Debug, {:#?}), std::matches, std::mem::size_of
- rustc 오류 코드 설명 — E0004, E0282, E0594, E0596
- Rust 블로그 — Announcing Rust 1.65.0 (let-else 안정화)
5단계
오류 처리
- The Rust Programming Language (공식 책), 9장 Error Handling
- Rust 표준 라이브러리 문서: std::result::Result, std::error::Error, std::io::ErrorKind, std::convert::From
- Rust by Example, 18장 Error handling
- The Rust Reference, Operator expressions: The question mark operator
- The Cargo Book, Profiles (panic 설정)
6단계
컬렉션과 문자열
- The Rust Programming Language (공식 책), 8장 Common Collections
- Rust 표준 라이브러리 문서: std::vec::Vec (Capacity and reallocation, Guarantees)
- Rust 표준 라이브러리 문서: std::string::String, str, char
- Rust 표준 라이브러리 문서: std::collections (When Should You Use Which Collection?), HashMap, BTreeMap, HashSet
- rustc 오류 색인(Rust Compiler Error Index): E0277, E0308, E0382, E0502, E0507, E0594
7단계
트레이트와 제네릭
- The Rust Programming Language (공식 책), 10장 Generic Types, Traits, and Lifetimes (10.1, 10.2)
- The Rust Programming Language (공식 책), 18장 Object-Oriented Programming Features 의 트레이트 객체 절
- The Rust Programming Language (공식 책), 부록 C Derivable Traits
- The Rust Reference — Traits(Dyn compatibility), Trait objects, Implementations(Orphan rules), Impl trait
- Rust 표준 라이브러리 문서 — std::fmt::Display, std::ops::Add, std::cmp::PartialOrd/Ord, std::marker::Copy, std::any::type_name, std::mem::size_of
- rustc 오류 색인(Rust Compiler Error Index) — E0038, E0046, E0117, E0204, E0277, E0369
8단계
수명과 스마트 포인터
- The Rust Programming Language (공식 책), 10.3절 Validating References with Lifetimes
- The Rust Programming Language (공식 책), 15장 Smart Pointers
- The Rust Reference, Lifetime elision · Destructors
- Rust 표준 라이브러리 문서: std::boxed::Box, std::ops::Deref, std::ops::Drop, std::rc::Rc, std::rc::Weak, std::cell::RefCell
- rustc 오류 색인 (Rust Compiler Error Index): E0106, E0597, E0515, E0072, E0040, E0596
9단계
클로저·반복자·모듈
- The Rust Programming Language (공식 책), 13장 Functional Language Features: Iterators and Closures
- The Rust Programming Language (공식 책), 7장 Managing Growing Projects with Packages, Crates, and Modules
- The Rust Programming Language (공식 책), 11장 Writing Automated Tests, 14장 More about Cargo and Crates.io
- Rust 표준 라이브러리 문서: std::iter, Iterator, Fn, FnMut, FnOnce
- The Rust Reference: Closure expressions, Visibility and Privacy
- The rustdoc book: Documentation tests
- The Cargo Book: Workspaces, cargo test, cargo doc
10단계
동시성과 실전 프로젝트
- The Rust Programming Language (공식 책), 16장 Fearless Concurrency (16.1~16.4)
- The Rust Programming Language (공식 책), 11장 Writing Automated Tests, 12장 An I/O Project, 17장 Fundamentals of Asynchronous Programming
- Rust 표준 라이브러리 문서: std::thread (spawn, scope, JoinHandle), std::sync::mpsc, std::sync::Mutex, std::sync::Arc
- Rust 표준 라이브러리 문서: std::marker::Send, std::marker::Sync, std::process::ExitCode, std::env::args
- The Rustonomicon, Data Races and Race Conditions / Send and Sync
- The Cargo Book, Environment Variables (CARGO_BIN_EXE_<name>), cargo test
- Rust 블로그, Announcing Rust 1.63.0 (scoped threads) · Async-await on stable Rust! (2019)
- Rust by Example · rustlings