capsec_std/lib.rs
1#![deny(missing_docs)]
2#![deny(rustdoc::broken_intra_doc_links)]
3
4//! # capsec-std
5//!
6//! Capability-gated wrappers around the Rust standard library.
7//!
8//! Every function in this crate mirrors a `std` function but requires a capability
9//! token proving the caller has the appropriate permission. For example,
10//! [`fs::read`] requires `&impl CapProvider<FsRead>`.
11//!
12//! This is the enforcement layer of `capsec` — by using these wrappers instead of
13//! raw `std` calls, you get compile-time verification that your code only exercises
14//! the capabilities it declares.
15
16pub mod env;
17pub mod file;
18pub mod fs;
19pub mod net;
20pub mod process;