use-wasm-section 0.0.1

WebAssembly section kind, section ID conversion, parsing, and rendering primitives.
Documentation
  • Coverage
  • 100%
    22 out of 22 items documented1 out of 6 items with examples
  • Size
  • Source code size: 9.16 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 462.98 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-section

WebAssembly section primitives for RustUse. This crate models known section IDs and labels with parsing and display helpers.

Example

use use_wasm_section::WasmSectionKind;

let section = WasmSectionKind::try_from(5).expect("known section");

assert_eq!(section.to_string(), "memory");
assert_eq!(section.id(), 5);

Scope

  • Known core section IDs and labels.
  • Parsing from IDs and display labels.

Non-goals

  • No section payload parsing.
  • No binary reader.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license