Crates.io | flowscripter_template_wasm_rust_library |
lib.rs | flowscripter_template_wasm_rust_library |
version | 1.1.9 |
source | src |
created_at | 2022-04-26 14:06:18.581315 |
updated_at | 2022-10-03 16:54:06.651034 |
description | Project template for a Rust library compiled to WASM. |
homepage | https://github.com/flowscripter |
repository | https://github.com/flowscripter/template-wasm-rust-library |
max_upload_size | |
id | 575405 |
size | 5,830 |
Project template for a Rust library compiled to WASM.
README.md
.import * as wasmLib from "https://flowscripter.github.io/template-wasm-rust-library/flowscripter_template_wasm_rust_library.js";
// init WASM module
await wasmLib.default();
// use WASM module
wasmLib.add(2, 2);
Install wasm-pack: cargo install wasm-pack
Install Firefox
Build: wasm-pack build --target web
Test: cargo test && wasm-pack test --headless --firefox
Lint: cargo fmt
classDiagram
Foo <|-- Bar
Link to auto-generated API docs for the library:
MIT © Flowscripter