59 releases (2 stable)
new 3.4.1 | Nov 5, 2024 |
---|---|
0.26.1 | Sep 29, 2022 |
0.25.2 | Jun 29, 2022 |
0.24.2 | Mar 16, 2022 |
0.0.0 | Jun 25, 2020 |
#1165 in Filesystem
270 downloads per month
Used in 3 crates
(2 directly)
555KB
12K
SLoC
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 aDir
. 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–16MB
~222K SLoC