Host I/O: io

io provides secure random, clocks, host filesystem, and scripting functions. Select stdlib as well. Database capability grants control access to filesystem, secure random, processes, streams, network, and terminal services separately; selecting io does not grant them. The plugin has no settings.

Dependencies

Configuration

Select this plugin explicitly when opening the database:

dust48 B
{plugins <stdlib io> capabilities <filesystem>}

Usage

io also adds host-backed forms of standard library functions: crypto/sign/ed25519/generate-keypair draws entropy when called without a seed, and cli/parse reads process arguments when called without an argument list. With filesystem granted, (fs/read "input.txt" {encoding <utf8>}) reads a UTF-8 file. Other host services require their corresponding capability grants.

Contributions

Namespaces