File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ yourself.
12
12
* [ Running All Tests] ( #tests-all )
13
13
* [ Running a Single, Specific Test] ( #tests-one )
14
14
* [ Authoring New Tests] ( #tests-new )
15
+ * [ Automatic Code Formatting] ( #formatting )
15
16
* [ Debug Logging] ( #logs )
16
17
17
18
## Code of Conduct <span id =" coc " />
@@ -95,6 +96,27 @@ specify the required features at the top of the test header in a similar manner:
95
96
// bingden-features: llvm_stable
96
97
```
97
98
99
+ ## Automatic code formatting <span id =" formatting " />
100
+
101
+ There's a ` rustfmt.toml ` file in the repo. Ideally changes should be consistent
102
+ with the style, though that's not enforced right now.
103
+
104
+ [ ` rustfmt ` ] ( https://github.com/rust-lang-nursery/rustfmt ) can catch and fix
105
+ automatically all the coding style issues it finds. In order to use it it
106
+ suffices to do:
107
+
108
+ ```
109
+ $ cargo fmt
110
+ ```
111
+
112
+ For it to work, you need to have ` rustfmt ` installed. To do so:
113
+
114
+ ```
115
+ $ cargo install rustfmt
116
+ ```
117
+
118
+ And ensure ` ~/.cargo/bin ` is on your path.
119
+
98
120
## Debug Logging <span id =" logs " />
99
121
100
122
To help debug what ` bindgen ` is doing, you can define the environment variable
You can’t perform that action at this time.
0 commit comments