Expand description
Lifecycle ownership for declared widget sidecar processes.
Structs§
- Managed
Process 🔒 - A running widget process and its input pipe.
- Widget
Process Event - One line of output from a widget process.
- Widget
Process Manager - Starts, feeds, and stops the processes widgets declare, and buffers their output.
Enums§
- Process
Stream - The output stream a line came from.
Constants§
- MAX_
LINE_ 🔒BYTES - Longest line read from or sent to a widget process, in bytes. Longer output lines are cut.
Functions§
- canonical_
child 🔒 - Resolves
relativeinsideroot, rejecting paths that escape it or aren’t files. - spawn_
reader 🔒 - Reads a stream line by line on a background thread and sends each line as an event until the stream closes or the manager is dropped.
- validate_
arguments 🔒 - Allows at most 32 arguments of up to 1 KB, each from the declaration’s allow list.