use-wasm-feature 0.0.1

WebAssembly feature flag, stability status, parsing, and rendering primitives.
Documentation
  • Coverage
  • 100%
    23 out of 23 items documented1 out of 8 items with examples
  • Size
  • Source code size: 9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 539.8 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-feature

WebAssembly feature primitives for RustUse. This crate models common feature flags and coarse status labels.

Example

use use_wasm_feature::{WasmFeature, WasmFeatureStatus};

let feature: WasmFeature = "bulk memory".parse().expect("known feature");

assert_eq!(feature.status(), WasmFeatureStatus::Stable);
assert_eq!(feature.to_string(), "bulk-memory");

Scope

  • Common Wasm feature flags.
  • Stable and experimental status labels.

Non-goals

  • No feature detection against runtimes.
  • No compiler flag management.

License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license