Before submitting code in a PR, make sure that you have formatted the codebase
using rustfmt. rustfmt
is a tool for formatting Rust code, which
helps keep style consistent across the project. If you have not used rustfmt
before, it is not too difficult.
If you have not already configured rustfmt
for the
nightly toolchain, it can be done using the following steps:
1. Use Nightly Toolchain
Use the rustup override
command to make sure that you are using the nightly
toolchain. Run this command in the wasm-pack
directory you cloned.
rustup override set nightly
2. Add the rustfmt component
Install the most recent version of rustfmt
using this command:
rustup component add rustfmt-preview --toolchain nightly