The standard library: I/O, files and directories, the environment, processes, threads, time and floats from text over the C library (the libc package, which it does not re-export), plus the core and alloc modules, each at one std:: path: std::cmp is core::cmp, std::num is core::num, std::buffer is alloc::buffer. Two are merged: std::fmt is alloc::fmt, which re-exports core::fmt's traits (Writer, Format, Printable) and writer types, and adds the Buffer! instances and writers; and std::process, std's own, re-exports core::process::trap.
Modules
env | The environment the process was started with. |
float | Floating-point numbers from text. |
fs | The file system by path: whole files read and written, what a path names, directories listed, made and removed, and files renamed. |
io | Input and output through the standard streams and files. |
process | The process: its arguments, the processors it can run on, its hash seed, other programs run and waited for, and the ways to end it early. |
thread | Threads: spawn runs a closure on a new OS thread, and Thread!::join waits for it and returns what it returned. |
time | Time: Instant, a reading of a monotonic clock; Duration, a span of time; and sleep. |
array | Fixed-length arrays over caller-provided storage. |
ascii | ASCII character classes and case conversion. |
atomic | Memory orderings for the atomic operations on raw pointers (unsafe p.atomic_load(Ordering::Acquire), unsafe fence(...), ...), with the meanings C11 gives them. |
borrow | Borrowed views of values through the Borrow trait. |
cap | Branded access capabilities: one exclusive writer or a tree of shared readers. |
cmp | Ordering and comparison traits. |
cstr | NUL-terminated strings for C interfaces. |
cursor | Text cursors for incremental parsing. |
hash | Hashing and equality traits, and the keyed hash behind them. |
iter | The iterator protocol and iterator adapters. |
mem | Memory ownership and access vocabulary built from brands and linear values. |
num | Number limits, float classification and rounding, and float bits. |
option | Optional values and fallible results. |
parse | Parsing integers from byte views. |
ptr | Raw pointer operations. |
raw | Raw reads over flat buffers. |
slice | Checked contiguous views over borrowed storage. |
str | Text: read-only views of bytes. |
utf8 | UTF-8 validation and decoding. |
arena | Bump allocation for Copy values that share one lifetime and access brand. |
buffer | Growable byte buffers with explicit ownership and initialized length. |
collections | Owning and arena-backed collections. |
fmt | Formatting adapters for owning byte buffers. |
heap | Raw heap allocation and checked size arithmetic. |
owned | Heap ownership and the records used to open and close memory regions. |