Output will appear here...
# Install wasm-bindgen-cli if not already installed cargo install wasm-bindgen-cli # Build the WASM module cargo build --target wasm32-unknown-unknown --lib --no-default-features --features wasm --release # Generate JavaScript bindings wasm-bindgen target/wasm32-unknown-unknown/release/jcl.wasm --out-dir pkg --target web
# Using Python 3 python -m http.server 8000 # Or using Python 2 python -m SimpleHTTPServer 8000 # Or using Node.js with npx npx http-server
http://localhost:8000/wasm-example.html in your browser