60 releases (3 stable)

3.4.2 Dec 4, 2024
3.4.1 Nov 5, 2024
3.4.0 Oct 30, 2024
0.26.1 Sep 29, 2022
0.0.0 Jun 25, 2020

#1218 in Filesystem

Download history 34/week @ 2024-08-26 118/week @ 2024-09-02 43/week @ 2024-09-09 19/week @ 2024-09-16 148/week @ 2024-09-23 95/week @ 2024-09-30 45/week @ 2024-10-07 51/week @ 2024-10-14 14/week @ 2024-10-21 131/week @ 2024-10-28 177/week @ 2024-11-04 53/week @ 2024-11-11 64/week @ 2024-11-18 45/week @ 2024-11-25 190/week @ 2024-12-02 93/week @ 2024-12-09

397 downloads per month
Used in 4 crates (3 directly)

Apache-2.0…

560KB
12K SLoC

cap-async-std

Capability-based version of `async-std`

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

This crate provides a capability-based version of async-std. See the toplevel README.md for more information about capability-based security.


lib.rs:

A capability-based API modeled after async_std.

This corresponds to async_std.

Capability-based APIs represent access to external resources as values which can be passed around between different parts of a program.

Two notable features are the Dir and Pool types:

  • Dir represents an open directory in a filesystem. Instead of opening files by absolute paths or paths relative to the current working directory, files are opened via paths relative to a Dir. The concepts of a process-wide "current working directory" and a single global filesystem namespace are de-emphasized.
  • Pool represents a set of network addresses. Instead of allowing applications to request access to any address and then applying process-wide filtering rules, filtering rules are built into pools which may be passed through the program.

On WASI, use of this library closely reflects the underlying system API, so it avoids compatibility layers.

Dependencies

~6–15MB
~218K SLoC