Tour of the Rust Standard Library

What's Available

The Rust Standard Library offers built-in types and modules for data structures, I/O, concurrency, and more, accessible via std::.

The Rust Standard Library provides core types like Vec, String, HashMap, and Result, along with modules for I/O, threading, and collections, all accessible via std:: or prelude. You can explore the full list of available modules and types in the official documentation at https://doc.rust-lang.org/std/.

use std::collections::HashMap;
use std::thread;

fn main() {
    let mut map = HashMap::new();
    map.insert("key", "value");
    thread::spawn(|| println!("Hello from thread!"));
}