use-wasm-component 0.0.1

WebAssembly Component Model component, world, interface, package reference, import, and export primitives.
Documentation
  • Coverage
  • 89.47%
    34 out of 38 items documented1 out of 28 items with examples
  • Size
  • Source code size: 11.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 966.97 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s 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-wasm-component

WebAssembly Component Model primitives for RustUse. This crate models component, world, interface, package reference, import, and export metadata without encoding or decoding components.

Example

use use_wasm_component::{ComponentImport, ComponentItemKind, InterfaceName};

let import = ComponentImport::new(
    InterfaceName::new("filesystem").expect("valid interface"),
    ComponentItemKind::Interface,
);

assert_eq!(import.kind(), ComponentItemKind::Interface);

Scope

  • Component, world, interface, and package-reference names.
  • Component import and export metadata.

Non-goals

  • No component encoding.
  • No component decoding.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license