The public standard-library surface, grouped by the API conventions. Nursery modules may change or disappear.
Download the whole surface as plain text.
Foundations and ordering
- std.cmp core
- std.cmp — comparison and ordering: the
Orderingenum, theEqandOrdprotocols, and the min/max/clamp family. - std.errors core
- std.errors — the payload half of the error taxonomy: what a row tag carries, how it is read, how it is rendered, and how a precise error becomes a coarse one on purpose.
- std.ops core
- std.ops — the operator traits: the protocols
+ - * / %and unary-dispatch through when their operand is a type parameter or a user type. - std.option core
- std.option — the absence convention over
!Trows, and the six helpers that name its commonest shapes. - std.prelude core
- std.prelude — the ambient facade, listed in one place (D31).
- std.testing core
- std.testing — the assertion vocabulary, and the conventions that hold until
wolf testexists (s39).
Containers and regions
- std.deque core
- std.deque —
Deque[T], the double-ended queue. - std.iter x
- std.iter — the iterator protocol, prototyped.
- std.list core
- std.list — the documented API surface of the language's
List[T]: the growable sequence every other module hands back. - std.map core
- std.map — the documented API surface of the prelude's
Map[K, V]: the keyed store the wordcount exemplar is written against. - std.mem namespace
- Namespace for the modules listed below.
- std.mem.budget core
- std.mem.budget — the region ledger, named, and the budget breach made into a ROW.
- std.pool core
- std.pool — the ergonomic layer over the language's
Pool[T]andhandle T(X5). - std.range core
- std.range — operations over the language's
a..b. - std.set core
- std.set —
Set[T], the unordered membership collection.
Strings
- std.bytes core
- std.bytes — raw byte operations, including shared equality with no early exit at source level for equal public lengths.
- std.str core
- std.str — the documented API surface of the language's
str: an immutable, guaranteed-valid UTF-8 slice, two machine words wide (D24). - std.strbuf core
- std.strbuf — the one string builder (D24).
- std.unicode core
- std.unicode — the posture module: what wolf promises about Unicode in v1, spelled as functions where it can be and as a filing where it cannot.
Numerics
- std.math core
- std.math — integer numerics: the recoverable complements to the language's trapping operators, plus the classical integer functions.
- std.math.float core
- std.math.float — floating-point numerics over
f64: predicates, decomposition, rounding, and the transcendentals. - std.rand core
- std.rand — a deterministic, explicitly seeded pseudo-random generator.
- std.search core
- std.search — finding things in a sorted
List, and the reductions that scan an unsorted one. - std.sort core
- std.sort — ordering a
Listin place.
Formatting and encodings
- std.base64 core
- std.base64 — RFC 4648 base-64, standard and URL-safe.
- std.bech32 core
- std.bech32 — BIP-173 checksummed base32.
- std.fmt core
- std.fmt — the text side of every value: padding, alignment, integers in every base, and the text→number boundary.
- std.fmt.decimal core
- std.fmt.decimal — the
f64↔decimal-string boundary, done exactly. - std.hex core
- std.hex — base-16 encoding and decoding.
- std.json core
- std.json — the JSON data model, its accessors, and the serializer.
The os tier
- std.env core
- std.env — the program's arguments and the host's environment variables.
- std.fs core
- std.fs — the filesystem, over rows: whole texts and whole BYTES, a file-descriptor tier for the streaming cases, directories, metadata, and pure path arithmetic.
- std.io core
- std.io — standard output, standard error, and standard input as functions: the facade over the language's
printfamily and the s38 line-read builtin. - std.net core
- std.net — blocking TCP over rows: bind a listener, accept or dial a connection, read and write text on it, and close it exactly once.
- std.net.unix core
- std.net.unix — the second address family: a stream socket bound to a filesystem PATH instead of a host and a port (
AF_UNIX). - std.os core
- std.os — what this program can learn about the MACHINE it is running on.
- std.os.random core
- std.os.random — OS-sourced bytes, never a userspace generator.
- std.os.users core
- std.os.users — the machine's ACCOUNTS, as its two plain files write them: a user line of
passwd(5)and a group line ofgroup(5). - std.poll core
- std.poll — one wait over files, sockets and signals, answering every ready entry once.
- std.process core
- std.process — build a command as an argument VECTOR, start it — alone, or with a set of listeners handed down to it — wait for its exit code, kill it, and end this process.
- std.signal core
- std.signal — what a signal does to this process, and hearing one as an event.
- std.term core
- std.term — the controlling terminal: whose turn it is, and how it reads.
- std.time core
- std.time — monotonic instants, signed durations, and one wall-clock rendering, local civil time and calendar formatting.
Nursery
- std.x x
- Namespace for the modules listed below.
- std.x.crypto x
- Namespace for the modules listed below.
- std.x.crypto.chacha20 x
- std.x.crypto.chacha20 — ChaCha20, Poly1305 and the AEAD_CHACHA20_POLY1305 construction (RFC 8439).
- std.x.crypto.curve25519 x
- std.x.crypto.curve25519 — X25519 key exchange (RFC 7748) and Ed25519 signatures (RFC 8032) over the shared field 2^255 - 19.
- std.x.crypto.p256 x
- std.x.crypto.p256 — the NIST P-256 curve (secp256r1) and ECDSA signatures: FIPS 186-5 (ECDSA), SEC1 v2 (point encodings and validation), NIST SP 800-186 (the domain parameters), RFC 6979 (deterministic nonces).
- std.x.crypto.p384 x
- std.x.crypto.p384 — ECDSA signature VERIFICATION over the NIST P-384 curve (secp384r1): FIPS 186-5 §6.4.2 (ECDSA verify), SEC 1 v2 (point encodings, §2.3.4, and public-key validation, §3.2.2), SP 800-186 §3.2.1.4 (the domain parameters).
- std.x.crypto.passwd x
- std.x.crypto.passwd — password hashing in crypt(5)'s
$7$form: scrypt (RFC 7914) behind the string a shadow(5) line stores. - std.x.crypto.rsa x
- std.x.crypto.rsa — RSA signature VERIFICATION (RFC 8017, PKCS #1 v2.2): RSASSA-PKCS1-v1_5 (§8.2.2) and RSASSA-PSS with MGF1 (§8.1.2, §9.1.2, B.2.1), over SHA-256, SHA-384 and SHA-512.
- std.x.crypto.scrypt x
- std.x.crypto.scrypt — the scrypt password-based key derivation function (RFC 7914) and PBKDF2-HMAC-SHA-256 (RFC 8018 §5.2).
- std.x.crypto.sha2 x
- std.x.crypto.sha2 — SHA-256, SHA-384 and SHA-512 (FIPS 180-4), HMAC (FIPS 198-1 / RFC 2104) and HKDF (RFC 5869).
- std.x.deque_int x
- std.x.deque_int — the running prototype behind
std.deque's reviewed contract: a double-ended queue at ONE concrete element type, becausestruct Deque[T]does not parse until s16 delivers generic data types. - std.x.jose x
- std.x.jose — the JOSE envelope ACME needs, over sc18's Ed25519: JWS signing/verification with EdDSA (RFC 7515 + RFC 8037), the Ed25519 public JWK and its RFC 7638 thumbprint (RFC 7517 + 7638), and the ACME request envelope (RFC 8555 §6.2).
- std.x.json x
- std.x.json — JSON as a QUERY, over the s40 kernel builtins: is this text valid, what is at this path, what kind is it, how many children does it have, and give it to me as the wolf type I expect.
- std.x.list_eq x
- std.x.list_eq — the six element-comparing
std.listfunctions, parked outside the facade. - std.x.option_expect x
- std.x.option_expect —
std.option's assert-on-absence helper, parked outside the facade for one missing type. - std.x.option_flatten x
- std.x.option_flatten —
std.option's sixth helper, parked outside the facade for one grammar fact. - std.x.testing_text x
- std.x.testing_text — the string assertion, parked outside the facade because of what it costs there.
- std.x.tls x
- Namespace for the modules listed below.
- std.x.tls.cert x
- std.x.tls.cert — X.509 v3 certificate parsing and path validation (RFC 5280 over X.690 DER, RFC 9525 names).
- std.x.tls.client x
- std.x.tls.client — the TLS 1.3 CLIENT (RFC 8446, one profile) over the library's own proven halves.
- std.x.tls.handshake x
- std.x.tls.handshake — the TLS 1.3 handshake (RFC 8446 §4 + §4.4 + §7.1).
- std.x.tls.record x
- std.x.tls.record — the TLS 1.3 record layer and its key-schedule primitives (RFC 8446 §5 + §7.1/§7.3).