rust-stdlib
Installation
SKILL.md
Rust Standard Library — API Selection and Composition
Authority: Rust Standard Library — the canonical reference. Read
references/std-module-index.mdfor the full module map.
This skill owns choosing and composing std APIs: which collection, which smart pointer, which string type, which I/O trait, which iterator pattern. It does not own language semantics (rust-stable), async runtime (rust-concurrency), or application-layer concerns (the domain skills).
Capability Boundaries
✅ Strengths
- Picking the right collection (HashMap vs BTreeMap vs Vec vs VecDeque vs LinkedList vs BinaryHeap)
- Choosing the right smart pointer (Box vs Rc vs Arc vs RefCell vs Mutex vs OnceLock)
- Selecting the right string type (String vs &str vs OsString vs PathBuf vs Cow)
- Choosing interior mutability primitive (Cell vs RefCell vs OnceCell vs OnceLock vs LazyLock)
- Designing Option/Result combinator chains (map, and_then, unwrap_or_else, ok_or, transpose)
- Selecting I/O trait (Read vs Write vs BufRead vs Seek vs AsyncRead)
- Choosing iterator pattern (iter vs into_iter vs owning iterator, lazy vs collect)
- Using std concurrency primitives (thread, mpsc, barrier, Once, scoped threads)
- Selecting time API (Duration vs Instant vs SystemTime vs TryFromFloat)
- Cross-platform path handling (Path vs PathBuf, fs, env, process::Command)