API Reference Index
Complete API reference for the Vais standard library
Core Types
| Module | Description |
|---|---|
| Option | Optional value type (Some(T) / None) |
| Result | Error handling type (Ok(i64) / Err(i64)) |
| String | Heap-allocated dynamic string |
| OwnedString | Owned string with lifecycle management |
| ByteBuffer | Growable byte buffer for binary I/O |
| Box | Heap-allocated single-ownership pointer |
| Rc | Reference-counted smart pointer |
Collections
| Module | Description |
|---|---|
| Vec | Dynamic growable array |
| HashMap | Hash table with generic keys and values |
| StringMap | Hash table with string keys |
| BTreeMap | Self-balancing ordered map (B-tree) |
| Set | Hash-based set collection |
| Deque | Double-ended queue (circular buffer) |
| PriorityQueue | Min-heap priority queue |
| Collections | Unified re-export of all collections |
I/O and Filesystem
| Module | Description |
|---|---|
| IO | Standard input/output operations |
| File | File I/O with memory mapping and locks |
| Filesystem | POSIX filesystem operations |
| Fmt | String formatting and number conversion |
Networking and Web
| Module | Description |
|---|---|
| Net | TCP/UDP socket networking (IPv4/IPv6) |
| HTTP | HTTP protocol constants and types |
| HTTP Client | HTTP client with request/response |
| HTTP Server | HTTP server framework with routing |
| WebSocket | WebSocket protocol (RFC 6455) |
| TLS | TLS/SSL via OpenSSL/LibreSSL |
| URL | URL parsing and manipulation |
Concurrency
| Module | Description |
|---|---|
| Thread | OS-level threading and thread pools |
| Sync | Mutex, RwLock, Channel, atomics |
| Future | Future trait and combinators |
| Async | Async utilities (timeout, retry, race) |
| Runtime | Async task executor |
| AsyncReactor | Platform event loop (kqueue/epoll) |
Data Processing
| Module | Description |
|---|---|
| JSON | JSON parser and generator |
| Regex | Regular expression matching |
| Base64 | Base64 encoding/decoding |
| Template | Template engine with variable interpolation |
Databases
| Module | Description |
|---|---|
| SQLite | SQLite3 database bindings |
| Postgres | PostgreSQL client (libpq) |
| ORM | Lightweight object-relational mapping |
Math and Algorithms
| Module | Description |
|---|---|
| Math | Mathematical functions and constants |
| Hash | Hash functions for collections |
| Random | Pseudo-random number generation |
| UUID | UUID v4 generation and parsing |
| CRC32 | CRC32 checksum computation |
Security and Crypto
| Module | Description |
|---|---|
| Crypto | SHA-256, HMAC, AES-256 |
| Compress | Gzip/deflate compression (zlib) |
| Log | Structured logging with JSON output |
Memory Management
| Module | Description |
|---|---|
| Memory | Low-level memory operations |
| Allocator | Custom allocator traits |
| Arena | Arena (region) allocator |
| GC | Optional garbage collector |