Does pop have a style guide for rust? If so where can one find it?
You must log in or register to comment.
The style guide is to run
cargo fmt
. The default rustfmt configuration is good enough. Code should also passcargo clippy
without warnings. Some projects define ajust check
/just check-json
recipe that runscargo clippy --all-features -- -W clippy::pedantic
to catch a plethora of additional suggestions from clippy that are disabled by default. Basic warnings about integer conversions can be annotated to allow them.thank you
Do you mean framework?
No I mean something like this.
What Rust’s maintainers recommend is what I’d recommend: https://rust-lang.github.io/api-guidelines/
Many of these are automatically detected and suggested by clippy’s pedantic flag.
Thanks