Crates.io | gongcheck-editor |
lib.rs | gongcheck-editor |
version | 0.1.2 |
source | src |
created_at | 2024-06-15 11:17:01.983612 |
updated_at | 2024-06-30 11:00:37.813708 |
description | Rich text editor for WASM |
homepage | |
repository | |
max_upload_size | |
id | 1272753 |
size | 9,886 |
wasm-pack
: install cargo install wasm-pack
Cargo.toml
that has assign crate-type
as "cdylib"
.[lib]
crate-type = ["cdylib"]
wasm32-unknown-unknown
and build$ rustup target add wasm32-unknown-unknown
$ cargo build --target wasm32-unknown-unknown --release
this step will generate .wasm
file at /target/wasm32-unknwon-unknown
.
wasm-pack build --release --target web
.python -m http.server