3 releases
0.1.2 | Jun 30, 2024 |
---|---|
0.1.1 | Jun 29, 2024 |
0.1.0 | Jun 15, 2024 |
#264 in Text editors
143 downloads per month
8KB
89 lines
Gongcheck-Editor
Pre
- Rust
wasm-pack
: installcargo install wasm-pack
Build
- Check
Cargo.toml
that has assigncrate-type
as"cdylib"
.
[lib]
crate-type = ["cdylib"]
- Set build target as
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
.
- Execute command
wasm-pack build --release --target web
.
Serve
- Use python's simple web-server package for testing
python -m http.server
Dependencies
~13MB
~223K SLoC