Expand description
§use-wasm-target
Rust/WebAssembly target primitives for RustUse. This crate models common Rust Wasm target labels with family, pointer width, and profile helpers.
§Example
use use_wasm_target::WasmTarget;
let target: WasmTarget = "wasm32-wasip1".parse().expect("known target");
assert_eq!(target.family(), "wasm32");
assert_eq!(target.pointer_width(), 32);§Scope
- Common Rust Wasm targets.
- Target family, pointer width, and profile labels.
§Non-goals
- No cargo invocation.
- No target installation checks.
§License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license
Enums§
- Wasm
Target - Common Rust WebAssembly compilation targets.
- Wasm
Target Error - Error returned when a Rust WebAssembly target triple cannot be parsed.
- Wasm
Target Profile - ABI or profile family for a Rust WebAssembly target.