Standard Library (v0.2.1)

Standard modules and public APIs for this version.

Latest

The standard library contains the core modules that most Thrust programs use for everyday work: input and output, memory management, math helpers, dynamic arrays, and C bindings. It is intentionally small and explicit, so each module keeps close to the behavior it exposes.

These pages describe what each module provides, how its functions are meant to be used, and which parts map directly to C library behavior. Use this section as the starting point when you need reusable building blocks before writing lower-level bindings yourself.

std::io

Input and output APIs, stream handles, formatted printing, scanning, and file operations.

Open module

std::math

Mathematical constants and wrappers around scalar math functions for f64 and f32.

Open module

std::mem

Allocation, reallocation, memory copy/move/set helpers, and memory mapping constants.

Open module

std::collections::vector

Generic contiguous dynamic array with capacity growth and index-based operations.

Open module

std::tstring

Owned null-terminated strings with byte operations, UTF-8 validation, and Unicode code point helpers.

Open module

std::ffi::c

Type aliases, constants, and C ABI signatures used by standard wrappers.

Open module

Back to documentation hub