Libraries

Libraries#

Rust’s standard library is small but high-quality; the broader ecosystem on crates.io fills in the rest.

Standard Library#

  • std::io / std::fs , streams and files

  • std::collections , HashMap, BTreeMap, VecDeque

  • std::sync , Mutex, RwLock, atomics, channels

  • std::thread , OS threads

  • std::time , Duration and Instant

  • std::process , spawn and inspect processes

  • std::env , arguments and environment

Cargo#

$ cargo new myproj
$ cargo add serde --features derive
$ cargo build --release
$ cargo test
$ cargo doc --open

Useful Crates#