This crate provides a capability-based version of std
, providing
sandboxed filesystem, networking, and clock APIs. See the toplevel README.md
for more information about sandboxing using capability-based security.
The filesystem module cap_std::fs
, the networking module cap_std::net
,
and the time module cap_std::time
currently support Linux, macOS, FreeBSD,
and Windows. WASI support is in development, though not yet usable.
Example usage of Dir
for filesystem access:
use io;
use Dir;
/// Open files relative to `dir`.
Example usage of Pool
for network access:
use io;
use Pool;
/// Open network addresses within `pool`.