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.
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 and encoding utilities.
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.
log
Native log module for structured logging.
parallel
Native parallel module for data-parallel operations.
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.