What problem does it solve?
Rust Golem agents compile to wasm32-wasip1, and developers need clear guidance on performing filesystem operations inside this sandboxed WebAssembly environment, including which paths are writable and how provisioned files behave.
Core Features & Use Cases
- File Reading: Read text and binary files from the agent's WASI filesystem using the standard std::fs module.
- File Writing and Appending: Write new files or append to logs with OpenOptions, respecting read-only permissions on provisioned files.
- Directory and Existence Checks: List directory entries and check file existence with std::path::Path.
- Use Case: Build a Golem agent that reads a provisioned configuration file at /data/config.json on each invocation and appends processing results to a persistent per-agent log at /tmp/agent.log.
Quick Start
Ask the AI to write a Rust Golem agent that reads a text file from /data and appends results to a log file using std::fs.