#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

#235 in Text editors

25 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

~12MB
~222K SLoC