Skip to main content

Module types

Module types 

Source

Structs§

ActError
Error type mapping to ACT tool-error.
ComponentInfo
Component metadata stored in the act:component WASM custom section (CBOR-encoded).
FilesystemAllow
One path × mode entry in a [std.capabilities."wasi:filesystem"].allow array. Both fields are required.
FilesystemMount
One entry in params.mounts of the wasi:filesystem capability.
HttpAllow
One entry in a [std.capabilities."wasi:http"].allow array.
Metadata
Key → value metadata, stored as JSON values internally.
SocketsAllow
One entry in a [std.capabilities."wasi:sockets"].allow array.
StdComponentInfo
Well-known component metadata under the std namespace.
StdCredential
One credential a component declares it expects (design §4.3). Descriptive, not restrictive: the boundary is the profile, and a component asking for an undeclared key is refused by nothing.
StdCredentialField
One field of a declared credential. field_type binds the encoding and how act login acquires it (design §3.2).

Enums§

FsMode
Filesystem access mode a component declares for a path.
LocalizedString
A localizable text value, matching the WIT localized-string variant.
MountType
Mount kind for a wasi:filesystem params.mounts entry (topology only).
SocketProtocol
Raw socket protocol — TCP or UDP.

Functions§

validate_mounts
Validate a list of mounts. Rules are independent of the constraint set (cross-checks like the drift lint live in act-build). Returns the first violation as a human-readable string.

Type Aliases§

ActResult
Result type for ACT operations.