Before submitting any PR or pushing changes, always run the complete CI workflow locally to ensure the build passes:
-
Format Check
cargo fmt -- --check
-
Add wasm target (if not already added)
rustup target add wasm32-unknown-unknown
-
Clippy (with warnings as errors)
cargo clippy --no-deps --target wasm32-unknown-unknown -- -Dwarnings
-
Build main crate
cargo build --target wasm32-unknown-unknown
-
Build macros crate
cargo build -p yewdux-middleware-macros
Run all CI steps in sequence:
cargo fmt -- --check && \
rustup target add wasm32-unknown-unknown && \
cargo clippy --no-deps --target wasm32-unknown-unknown -- -Dwarnings && \
cargo build --target wasm32-unknown-unknown && \
cargo build -p yewdux-middleware-macros- Always run these checks before committing
- Fix any warnings or errors before pushing
- The CI enforces
-Dwarningsfor clippy, so all warnings must be resolved - Tests should also be run when making functional changes:
cargo test --lib