Skip to main content

Module stdlib

Module stdlib 

Source
Expand description

Standard library modules for the Shape runtime.

Each submodule implements a std::* namespace accessible from Shape code. Modules follow the ModuleExports pattern established by stdlib_time.rs.

All I/O-capable modules are tagged with required capabilities in capability_tags and enforced at compile time via the permission system.

Modules§

archive
Native archive module for creating and extracting zip/tar archives.
arrow_module
Native arrow module for reading Arrow IPC files.
byte_utils
Shared byte array conversion utilities.
capability_tags
Static mapping of stdlib module functions to required permissions.
compress
Native compress module for data compression and decompression.
crypto
Native crypto module for hashing, encoding, and signing utilities.
csv_module
Native csv module for CSV parsing and serialization.
deterministic
Deterministic runtime for sandbox mode.
env
Native env module for environment variable and system info access.
file
Native file module for high-level filesystem operations.
http
Native http module for making HTTP requests.
json
Native json module for JSON parsing and serialization.
msgpack_module
Native msgpack module for MessagePack encoding and decoding.
regex
Native regex module for regular expression operations.
runtime_policy
Runtime policy and filesystem provider abstraction.
toml_module
Native toml module for TOML parsing and serialization.
unicode
Native unicode module for Unicode text processing.
virtual_fs
In-memory virtual filesystem for sandbox mode.
xml
Native xml module for XML parsing and serialization.
yaml
Native yaml module for YAML parsing and serialization.

Functions§

all_stdlib_modules
Return all shipped native stdlib modules defined in shape-runtime.