gongcheck-editor

Crates.iogongcheck-editor
lib.rsgongcheck-editor
version0.1.2
sourcesrc
created_at2024-06-15 11:17:01.983612
updated_at2024-06-30 11:00:37.813708
descriptionRich text editor for WASM
homepage
repository
max_upload_size
id1272753
size9,886
Chihoon Song (Marhead)

documentation

README

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
Commit count: 0

cargo fmt