use-wasi 0.0.1

Pure WASI version, profile, interface, capability label, and permission marker primitives.
Documentation
  • Coverage
  • 84.44%
    38 out of 45 items documented1 out of 24 items with examples
  • Size
  • Source code size: 11.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.14 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-wasm
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-wasi

WASI primitive utilities for RustUse. This crate models versions, profiles, interface names, capability labels, and permission markers without calling host system APIs.

Example

use use_wasi::{FilesystemPermission, WasiCapabilityLabel, WasiVersion};

let version: WasiVersion = "wasip2".parse().expect("known version");
let capability = WasiCapabilityLabel::new("filesystem.read").expect("valid capability");

assert_eq!(version.to_string(), "preview2");
assert_eq!(capability.as_str(), FilesystemPermission::Read.as_str());

Scope

  • WASI version and profile labels.
  • Capability and permission marker primitives.

Non-goals

  • No host system API calls.
  • No WASI runtime behavior.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license