Registry / testing / wasm-bindgen-test

wasm-bindgen-test

JSON →
library0.3.75rscratesunverified

Internal testing crate for wasm-bindgen, providing utilities for testing WebAssembly modules.

# Cargo.toml [dependencies] wasm-bindgen-test = "0.3.75"
INSTALL
IMPORT
SIG · WASM-BINDGEN-TEST
W
wasm-bindgen-test
testingrustv0.3.75
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wasm_bindgen_test
use wasm_bindgen_test::wasm_bindgen_test;

Defines a test function that runs in a WebAssembly environment.

use wasm_bindgen_test::wasm_bindgen_test; #[wasm_bindgen_test] fn test() { assert_eq!(1 + 1, 2); }
Debug
Known issues
gotchaThis crate is intended for internal use by wasm-bindgen; using it directly may lead to compatibility issues.
fix
Use `wasm-bindgen-test` only if you are developing wasm-bindgen itself; for general WASM testing, consider `wasm-bindgen-test` as a dev-dependency.
affects: >=0.3.0
Upgrade
Version history
0.3.75latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
wasm-bindgen-test — cargo add wasm-bindgen-test · libregistry