use-wasm-module 0.0.1

Module-level WebAssembly name, metadata, import, export, and validation status primitives.
Documentation
  • Coverage
  • 100%
    44 out of 44 items documented1 out of 30 items with examples
  • Size
  • Source code size: 12.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 912.2 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-module

Module-level WebAssembly primitives for RustUse. This crate models names, kinds, imports, exports, metadata, and validation status without parsing or executing modules.

Example

use use_wasm_module::{ModuleItemKind, ModuleKind, ModuleMetadata, ModuleName};

let metadata = ModuleMetadata::new(ModuleKind::CoreBinary)
    .with_name(ModuleName::new("example").expect("valid module"));

assert_eq!(metadata.kind(), ModuleKind::CoreBinary);

Scope

  • Module names, kinds, imports, exports, and validation status.
  • Small metadata builders and accessors.

Non-goals

  • No module execution.
  • No full binary parser.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license