/lew

The Lightweight Editor for Web

Primary LanguageRustMIT LicenseMIT

lew

The Lightweight Editor for Web.

Run example

Setup dependencies:

cargo install wasm-bindgen-cli

Build wasm client example:

./examples/build.sh <example> release

Run example server:

cargo run --example server

Development notes

Check the project:

cargo check --all-features --all-targets

Run all tests:

cargo test --all-features --all-targets

Check and perform formatting:

cargo +nightly fmt -- --check
cargo +nightly fmt

To enable autoformatting for IntelliJ IDEA with the Rust plugin:

File -> Settings -> Languages & Frameworks -> Rust -> Rustfmt, check "Run rustfmt on Save"

To run clippy, use the following command:

cargo clippy --all-targets --all-features -- -D warnings

To setup git hook, use the following command:

cp .git-pre-push.sh .git/hooks/pre-push