-
Notifications
You must be signed in to change notification settings - Fork 2
Code Refactor
Ruslan Tahiiev edited this page Apr 28, 2022
·
3 revisions
Realis projects use tools to automatically refactor and optimize code, and optimize dependencies.
FMT - A tool for formatting Rust code according to style guidelines.
All setting in .rustfmt.toml
Each project contains a Makefile with fmt
command so you can do make fmt
.
If you need to format only one package use: SKIP_WASM_BUILD=1 cargo +nightly fmt -p name_of_package
Clippy - lint, or a linter, is a static code analysis tool used to flag programming errors, bugs, stylistic errors and suspicious constructs.
Each project contains a Makefile with lint
command so you can do make lint
.
Udeps - Find unused dependencies in Cargo.toml.
Each project contains a Makefile with udeps
command so you can do make udeps
.