summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRustin-Liu <rustin.liu@gmail.com>2019-10-11 23:44:46 +0800
committerTim Oram <dev@mitmaro.ca>2019-10-11 15:42:27 -0230
commitabbc2011e87654fcb952d81aa89be7bafba91f2a (patch)
tree66b83369458e8bd842eb2f04d2a76ed6424edfd0
parentc04822d26b765929e582542d3c3a1cb8861718f6 (diff)
add format step in readme
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 625ea1b..1eea458 100644
--- a/README.md
+++ b/README.md
@@ -200,6 +200,15 @@ Use cargo to build and run the project. From the project root run:
cargo run <path-to-git-rebase-todo-file>
+### Format
+
+Use rust-fmt format project. **You need to run format with nightly.** The current nightly rust version is
+nightly-2019-09-13. You can find the current nightly rust version in the `scripts/format.bash`.
+
+ # format code before you commit
+ cargo +nightly-2019-09-13 fmt
+
+
### Release
##### Install Cargo Deb