Expand description
§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
Structs§
- Component
Export - Component export metadata.
- Component
Import - Component import metadata.
- Component
Name - Interface
Name - Package
Reference - World
Name
Enums§
- Component
Item Kind - Component Model import/export item kind.
- Component
Name Error - Error returned when Component Model names are invalid.