use-wasm-import 0.0.1

WebAssembly import module/name wrappers, import kind, and imported item metadata primitives.
Documentation
  • Coverage
  • 94.12%
    32 out of 34 items documented1 out of 27 items with examples
  • Size
  • Source code size: 11.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 894.81 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-import

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

Example

use use_wasm_import::{ImportModuleName, ImportName, ImportedFunction};

let function = ImportedFunction::new(
    ImportModuleName::new("env").expect("valid module"),
    ImportName::new("call").expect("valid name"),
);

assert_eq!(function.module().as_str(), "env");

Scope

  • Import module and field names.
  • Import kinds and imported item metadata.

Non-goals

  • No type-section resolution.
  • No module linking.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license