Skip to content

Standard Library

The Rux standard library is a collection of modules shipped with every Rux installation.

Module: Std


Modules

Module Description
Types Primitive type string conversion utilities (Bool, Char, Float, Int, UInt).
Text Strings, formatting, and display infrastructure (in Std).
IO Console input and output.
Encoding Base64 and hex encoding utilities.
UUID UUID generation, parsing, and validation.
HashMap Hash map from integer keys to opaque values.
HashSet Hash set of unique integer keys.
Sort Adaptive sorting algorithms for integer arrays.
Hash Cryptographic hash functions (MD5, SHA-0/1/256/512, BLAKE2/3).
Utilities Math, random number generation, and time.
Memory Memory allocation and management.
System OS interfaces, process control, and diagnostics.

Import

Each module can be imported individually:

import Std::Io;
import Std::Math;
import Std::UUID;
import Std::Sort;
import Std::Hash::Sha256;

Or import specific items:

import Std::Io::PrintLine;
import Std::Memory::Alloc;
import Std::UUID::UuidV4;