We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4312a5 commit 0dbd331Copy full SHA for 0dbd331
src/repo-management/firecracker/rustfmt.md
@@ -0,0 +1,14 @@
1
+# How Firecracker Format Their Rust Code
2
+
3
+Like most Rust projects,
4
+[Firecracker](https://github.com/firecracker-microvm/firecracker/) uses
5
+`cargo fmt` (namely `rustfmt`) to format Rust code.
6
7
+This rule is applied bu executing the `pre-commit` shell script, and enforced in
8
+their CI.
9
10
+## pre-commit Script
11
12
+This script lints every staged file, as of `.rs`s, it apply `cargo fmt` on them.
13
+The command directly formats that file instead of produce differences
14
+before/after format.
0 commit comments