use-wasm-function 0.0.1

WebAssembly function index, type index, local index, parameter list, result list, and signature metadata primitives.
Documentation
  • Coverage
  • 87.5%
    21 out of 24 items documented1 out of 24 items with examples
  • Size
  • Source code size: 8.03 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 842.4 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-function

WebAssembly function metadata primitives for RustUse. This crate models indexes, value type labels, parameter lists, result lists, and signatures without instruction execution.

Example

use use_wasm_function::{FunctionSignature, FunctionValueType, ParameterList, ResultList};

let signature = FunctionSignature::new(
    ParameterList::new(vec![FunctionValueType::I32]),
    ResultList::new(vec![FunctionValueType::I64]),
);

assert_eq!(signature.params().len(), 1);

Scope

  • Function, type, and local indexes.
  • Parameter/result lists and signature metadata.

Non-goals

  • No instruction execution.
  • No function body parsing.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license