Skip to main content

assert_wasm_safe_deps

Function assert_wasm_safe_deps 

Source
pub fn assert_wasm_safe_deps(module_crate: &str)
Expand description

Asserts the named crate’s normal dependency tree is wasm-safe: no worker, wasm-bindgen, tokio, reqwest (ADR 0001). Runs cargo tree -p <crate> --edges normal in the caller’s workspace — call it with env!("CARGO_PKG_NAME") from a module test.

§Panics

Panics when a forbidden dependency is found or cargo fails.