91 releases (31 stable)

4.0.2 Feb 15, 2026
4.0.0 Dec 11, 2025
3.4.5 Oct 24, 2025
3.4.4 Apr 21, 2025
0.6.0 Nov 10, 2020

#270 in Filesystem

Download history 169097/week @ 2026-01-19 169715/week @ 2026-01-26 185976/week @ 2026-02-02 184531/week @ 2026-02-09 180325/week @ 2026-02-16 227600/week @ 2026-02-23 258426/week @ 2026-03-02 244969/week @ 2026-03-09 241207/week @ 2026-03-16 247334/week @ 2026-03-23 267682/week @ 2026-03-30 255063/week @ 2026-04-06 259557/week @ 2026-04-13 287115/week @ 2026-04-20 305229/week @ 2026-04-27 283638/week @ 2026-05-04

1,157,263 downloads per month
Used in 757 crates (9 directly)

Apache-2.0…

390KB
8K SLoC

cap-primitives

Capability-based primitives

Github Actions CI Status crates.io page docs.rs docs

The cap-primitives crate provides primitive sandboxing operations that cap-std is built on.

The filesystem module cap_primitives::fs, the networking module cap_primitives::net, and time module cap_primitives::time currently support Linux, macOS, FreeBSD, and Windows. WASI support is in development, though not yet usable.

Dependencies

~2–16MB
~156K SLoC