use-wasm-text 0.0.1

WebAssembly text-format identifier, module-name, S-expression marker, and validation primitives.
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 14 items with examples
  • Size
  • Source code size: 10.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 660.32 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-text

WAT/WebAssembly text-format primitives for RustUse. This crate provides small identifier and text-shape helpers without implementing a full WAT parser.

Example

use use_wasm_text::{WatIdentifier, looks_like_wat_module};

let identifier = WatIdentifier::new("$run").expect("valid WAT identifier");

assert_eq!(identifier.as_str(), "$run");
assert!(looks_like_wat_module("(module (func))"));

Scope

  • WAT identifiers, text module names, and S-expression markers.
  • Basic text-format shape checks.

Non-goals

  • No full WAT parser.
  • No instruction decoding.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license