File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -1042,12 +1042,42 @@ fn add_one(x: i32) -> i32 {
1042
1042
1043
1043
## ` format_cargo_toml `
1044
1044
1045
- Format ` Cargo.toml ` files.
1045
+ Format ` Cargo.toml ` files according to the [ Cargo.toml conventions ] ( https://github.com/rust-dev-tools/fmt-rfcs/blob/master/guide/cargo.md ) .
1046
1046
1047
1047
- ** Default value** : ` false `
1048
1048
- ** Possible values** : ` true ` , ` false `
1049
1049
- ** Stable** : No (tracking issue: [ #4091 ] ( https://github.com/rust-lang/rustfmt/issues/4091 ) )
1050
1050
1051
+ #### ` false ` (default):
1052
+
1053
+ ``` toml
1054
+ [package ]
1055
+ edition =" 2018"
1056
+
1057
+ version =" 0.1.0"
1058
+ name =" e"
1059
+ [dependencies ]
1060
+ a =" 0.1"
1061
+
1062
+
1063
+ c =" 0.3"
1064
+ b =" 0.2"
1065
+ ```
1066
+
1067
+ #### ` true ` :
1068
+
1069
+ ``` toml
1070
+ [package ]
1071
+ name = " e"
1072
+ version = " 0.1.0"
1073
+ edition = " 2018"
1074
+
1075
+ [dependencies ]
1076
+ a = " 0.1"
1077
+ b = " 0.2"
1078
+ c = " 0.3"
1079
+ ```
1080
+
1051
1081
## ` doc_comment_code_block_width `
1052
1082
1053
1083
Max width for code snippets included in doc comments. Only used if [ ` format_code_in_doc_comments ` ] ( #format_code_in_doc_comments ) is true.
You can’t perform that action at this time.
0 commit comments