The standard library lives in the std/ directory of the repository and is written entirely in Marrow (.mw files). It does not use libc: every module sits on a small platform layer that talks to the operating system directly (Linux, macOS and Windows; x86_64, aarch64 and riscv64), so programs can be linked fully static with --nostdlib.
Every file in std/ starts with @no_main, which marks it as a library rather than a standalone program (see Modules & decorators).
std.mw is an umbrella that imports the core modules (io, mem, string, text, vec, map, fmt, raw, sys, fs, env, path, dir). The larger or more specialised modules are imported on demand:
@import("std/std.mw")
@import("std/http.mw") // HTTP and HTTPS
@import("std/json.mw")
@import("std/task.mw") // async tasks
Modules import each other where they depend on one another, and importing the same file twice is always safe (see the deduplication rule on the modules page).
Errors are values. There are no exceptions and no Result type. Functions report failure with a null pointer, false, or a negative return value (system-call wrappers return -errno). Genuinely unrecoverable situations call panic(), which prints to stderr and exits with code 1.
Manual memory. Every _new function that allocates has a matching _free. Nothing allocates behind your back; the arena in mem.mw is an opt-in tool.
C strings. Text is *u8 ending in a zero byte unless a function takes an explicit length. Byte buffers take a pointer and a length.
Concrete containers.VecPtr, VecI64… exist as separate types; the language has generics but the std has not been rewritten with them yet.
Platform differences stay inside the platform layer. Portable modules compile unchanged for every target; calls a platform cannot support return -38 (ENOSYS).
Security notes. The cryptographic code is meant for verification and key agreement in TLS and similar uses. Comparisons of secrets use ct_equal; the rest of the code is variable-time.