Function gclient::wasm_target

source ·
pub fn wasm_target(
    root_path: impl AsRef<str>,
    demo_name: impl AsRef<str>,
) -> String
Expand description

Return the full path to the optimized Wasm binary file with the demo_name name located in the root_path directory.

§Examples

let wasm_path = gclient::wasm_target(".", "demo_ping");
assert_eq!(
    wasm_path,
    "./target/wasm32-unknown-unknown/release/demo_ping.opt.wasm"
);