File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,24 @@ Shaders are usually licensed under the former two licenses OR the Unlicense.
21
21
Most Linebender projects files are written in Rust.
22
22
For those files, the formatting produced by ` rustfmt ` is required.
23
23
24
+ The following rustfmt config is recommended:
25
+
26
+ ``` toml
27
+ # LINEBENDER RUSTFMT CONFIG - v1
28
+ # Ensure lines end with \n even if the git configuration core.autocrlf is not set to true
29
+ newline_style = " Unix"
30
+
31
+ # `Foobar { foo, bar }` is more readable than `Foo { foo: foo, bar: bar }`
32
+ use_field_init_shorthand = true
33
+
34
+ # Commented out because it is still unstable, but works fine in practice.
35
+ # imports_granularity = "Module"
36
+
37
+ # END LINEBENDER RUSTFMT CONFIG
38
+ ```
39
+
24
40
## Markdown
25
41
26
42
In Markdown files, every paragraph should have one line per sentence.
27
43
This makes git diff easier to read.
28
44
[[ 1]] ( https://nick.groenen.me/notes/one-sentence-per-line/ ) [[ 2]] ( https://sive.rs/1s )
29
-
You can’t perform that action at this time.
0 commit comments