API Reference Index

Complete API reference for the Vais standard library

Core Types

ModuleDescription
OptionOptional value type (Some(T) / None)
ResultError handling type (Ok(i64) / Err(i64))
StringHeap-allocated dynamic string
OwnedStringOwned string with lifecycle management
ByteBufferGrowable byte buffer for binary I/O
BoxHeap-allocated single-ownership pointer
RcReference-counted smart pointer

Collections

ModuleDescription
VecDynamic growable array
HashMapHash table with generic keys and values
StringMapHash table with string keys
BTreeMapSelf-balancing ordered map (B-tree)
SetHash-based set collection
DequeDouble-ended queue (circular buffer)
PriorityQueueMin-heap priority queue
CollectionsUnified re-export of all collections

I/O and Filesystem

ModuleDescription
IOStandard input/output operations
FileFile I/O with memory mapping and locks
FilesystemPOSIX filesystem operations
FmtString formatting and number conversion

Networking and Web

ModuleDescription
NetTCP/UDP socket networking (IPv4/IPv6)
HTTPHTTP protocol constants and types
HTTP ClientHTTP client with request/response
HTTP ServerHTTP server framework with routing
WebSocketWebSocket protocol (RFC 6455)
TLSTLS/SSL via OpenSSL/LibreSSL
URLURL parsing and manipulation

Concurrency

ModuleDescription
ThreadOS-level threading and thread pools
SyncMutex, RwLock, Channel, atomics
FutureFuture trait and combinators
AsyncAsync utilities (timeout, retry, race)
RuntimeAsync task executor
AsyncReactorPlatform event loop (kqueue/epoll)

Data Processing

ModuleDescription
JSONJSON parser and generator
RegexRegular expression matching
Base64Base64 encoding/decoding
TemplateTemplate engine with variable interpolation

Databases

ModuleDescription
SQLiteSQLite3 database bindings
PostgresPostgreSQL client (libpq)
ORMLightweight object-relational mapping

Math and Algorithms

ModuleDescription
MathMathematical functions and constants
HashHash functions for collections
RandomPseudo-random number generation
UUIDUUID v4 generation and parsing
CRC32CRC32 checksum computation

Security and Crypto

ModuleDescription
CryptoSHA-256, HMAC, AES-256
CompressGzip/deflate compression (zlib)
LogStructured logging with JSON output

Memory Management

ModuleDescription
MemoryLow-level memory operations
AllocatorCustom allocator traits
ArenaArena (region) allocator
GCOptional garbage collector

System and Runtime

ModuleDescription
TimeTime measurement, sleep, Duration
ProfilerRuntime performance profiling
TestBuilt-in test framework
PropTestProperty-based testing
ContractDesign-by-contract support
GPUGPU compute (CUDA/Metal)
HotReloadHot reloading support
DynLoadDynamic module loading