use-wasm-export 0.0.1

WebAssembly export name wrappers, export kind, and exported item metadata primitives.
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 19 items with examples
  • Size
  • Source code size: 9.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 788.51 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-export

WebAssembly export primitives for RustUse. This crate models conservative export names, export kinds, and simple exported item metadata.

Example

use use_wasm_export::{ExportName, ExportedFunction};

let function = ExportedFunction::new(ExportName::new("run").expect("valid name"), 0);

assert_eq!(function.name().as_str(), "run");
assert_eq!(function.index(), 0);

Scope

  • Export names and kinds.
  • Exported function, memory, table, and global metadata.

Non-goals

  • No export resolution.
  • No runtime invocation.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license