1# Coding guidelines 2 3For the most part, Wasmtime and Cranelift follow common Rust conventions and 4[pull request] (PR) workflows, though we do have a few additional things to 5be aware of. 6 7[pull request]: https://help.github.com/articles/about-pull-requests/ 8 9### `rustfmt` 10 11All PRs must be formatted according to rustfmt, and this is checked in the 12continuous integration tests. You can format code locally with: 13 14```sh 15$ cargo fmt 16``` 17 18at the root of the repository. You can find [more information about rustfmt 19online](https://github.com/rust-lang/rustfmt) too, such as how to configure 20your editor. 21 22### Minimum Supported `rustc` Version 23 24Wasmtime supports the current stable version of Rust. 25 26Cranelift supports stable Rust, and follows the [Rust Update Policy for 27Firefox]. 28 29Some of the developer scripts depend on nightly Rust, for example to run 30clippy and other tools, however we avoid depending on these for the main 31build. 32 33[Rust Update Policy for Firefox]: https://wiki.mozilla.org/Rust_Update_Policy_for_Firefox#Schedule 34