Skip to main content

Crate capsec_std

Crate capsec_std 

Source
Expand description

§capsec-std

Capability-gated wrappers around the Rust standard library.

Every function in this crate mirrors a std function but requires a capability token proving the caller has the appropriate permission. For example, fs::read requires &impl Has<FsRead>.

This is the enforcement layer of capsec — by using these wrappers instead of raw std calls, you get compile-time verification that your code only exercises the capabilities it declares.

Modules§

env
Capability-gated environment variable access.
file
Restricted file handles that enforce capability boundaries.
fs
Capability-gated filesystem operations.
net
Capability-gated network operations.
process
Capability-gated subprocess execution.