#editor #wasm #rich #text #wasm-pack #install

gongcheck-editor

Rich text editor for WASM

3 releases

0.1.2 Jun 30, 2024
0.1.1 Jun 29, 2024
0.1.0 Jun 15, 2024

#265 in Text editors

Download history 117/week @ 2024-06-14 5/week @ 2024-06-21 387/week @ 2024-06-28 34/week @ 2024-07-05

143 downloads per month

MIT license

8KB
89 lines

Gongcheck-Editor

Pre

  • Rust
  • wasm-pack: install cargo install wasm-pack

Build

  1. Check Cargo.toml that has assign crate-type as "cdylib".
[lib]
crate-type = ["cdylib"]
  1. 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.

  1. Execute command wasm-pack build --release --target web.

Serve

  1. Use python's simple web-server package for testing
python -m http.server

Dependencies

~11MB
~201K SLoC