]> git.lizzy.rs Git - rust.git/blob - CHANGELOG.md
0.3.4
[rust.git] / CHANGELOG.md
1 # Changelog
2
3 ## [Unreleased]
4
5 ## [0.3.4] 2017-12-23
6
7 ### Added
8
9 - Add `--version` flag to `cargo-fmt`, allow `carfo fmt --version`.
10
11 ### Fixed
12
13 - Rustup to `rustc 1.24.0-nightly (5165ee9e2 2017-12-22)`.
14
15 ## [0.3.3] 2017-12-22
16
17 ### Added
18
19 - Format trait aliases.
20
21 ### Changed
22
23 - `cargo fmt` will format every workspace member.
24
25 ### Fixed
26
27 - Rustup to `rustc 1.24.0-nightly (250b49205 2017-12-21)`
28 - Fix formatting bugs.
29
30 ## [0.3.2] 2017-12-15
31
32 ### Changed
33
34 - Warn when unkown configuration option is used.
35
36 ### Fixed
37
38 - Rustup to `rustc 1.24.0-nightly (0077d128d 2017-12-14)`.
39
40 ## [0.3.1] 2017-12-11
41
42 ### Added
43
44 - Add `error_on_unformatted` configuration option.
45 - Add `--error-on-unformatted` command line option.
46
47 ### Changed
48
49 - Do not report formatting errors on comments or strings by default.
50 - Rename `error_on_line_overflow_comments` to `error_on_unformatted`.
51
52 ### Fixed
53
54 - Fix formatting bugs.
55 - Fix adding a trailing whitespace inside code block when `wrap_comments = true`.
56
57 ## [0.3.0] 2017-12-11
58
59 ### Added
60
61 - Support nested imports.
62
63 ### Changed
64
65 - Do not report errors on skipped items.
66 - Do not format code block inside comments when `wrap_comments = true`.
67 - Keep vertical spaces between items within range.
68 - Format `format!` and its variants using compressed style.
69 - Format `write!` and its variants using compressed style.
70 - Format **simple** array using compressed style.
71
72 ### Fixed
73
74 - Fix `rustfmt --package package_name` not working properly.
75 - Fix formatting bugs.
76
77 ## [0.2.17] 2017-12-03
78
79 ### Added
80
81 - Add `blank_lines_lower_bound` and `blank_lines_upper_bound` configuration options.
82
83 ### Changed
84
85 - Combine configuration options related to width heuristic into `width_heuristic`.
86 - If the match arm's body is `if` expression, force to use block.
87
88 ### Fixed
89
90 - Fix `cargo fmt --all` being trapped in an infinite loop.
91 - Fix many formatting bugs.
92
93 ### Removed
94
95 - Remove legacy configuration options.
96
97 ## [0.2.16] 2017-11-21
98
99 ### Added
100
101 - Remove empty lines at the beginning of the file.
102 - Soft wrapping on doc comments.
103
104 ### Changed
105
106 - Break before `|` when using multiple lines for match arm patterns.
107 - Combine `control_style`, `where_style` and `*_indent` config options into `indent_style`.
108 - Combine `item_brace_style` and `fn_brace_style` config options into `brace_style`.
109 - Combine config options related spacing around colons into `space_before_colon` and `space_after_colon`.
110
111 ### Fixed
112
113 - Fix many bugs.
114
115 ## [0.2.15] 2017-11-08
116
117 ### Added
118
119 - Add git-fmt tool
120 - `where_single_line` configuration option.
121
122 ### Changed
123
124 - Rename `chain_one_line_max` to `chain_width`.
125 - Change the suffix of indent-related configuration options to `_indent`.
126
127 ## [0.2.14] 2017-11-06
128
129 ### Fixed
130
131 - Rustup to the latest nightly.
132
133 ## [0.2.13] 2017-10-30
134
135 ### Fixed
136
137 - Rustup to the latest nightly.
138
139 ## [0.2.12] 2017-10-29
140
141 ### Fixed
142
143 - Fix a bug that `cargo fmt` hangs forever.
144
145 ## [0.2.11] 2017-10-29
146
147 ### Fixed
148
149 - Fix a bug that `cargo fmt` crashes.
150
151 ## [0.2.10] 2017-10-28
152
153 ## [0.2.9] 2017-10-16
154
155 ## [0.2.8] 2017-09-28
156
157 ## [0.2.7] 2017-09-21
158
159 ### Added
160
161 - `binop_separator` configuration option (#1964).
162
163 ### Changed
164
165 - Use horizontal layout for function call with a single argument.
166
167 ### Fixed
168
169 - Fix panicking when calling `cargo fmt --all` (#1963).
170 - Refactorings & faster rustfmt.
171
172 ## [0.2.6] 2017-09-14
173
174 ### Fixed
175
176 - Fix a performance issue with nested block (#1940).
177 - Refactorings & faster rustfmt.
178
179 ## [0.2.5] 2017-08-31
180
181 ### Added
182
183 - Format and preserve attributes on statements (#1933).
184
185 ### Fixed
186
187 - Use getters to access `Span` fields (#1899).
188
189 ## [0.2.4] 2017-08-30
190
191 ### Added
192
193 - Add support for `Yield` (#1928).
194
195 ## [0.2.3] 2017-08-30
196
197 ### Added
198
199 - `multiline_closure_forces_block` configuration option (#1898).
200 - `multiline_match_arm_forces_block` configuration option (#1898).
201 - `merge_derives` configuration option (#1910).
202 - `struct_remove_empty_braces` configuration option (#1930).
203 - Various refactorings.
204
205 ### Changed
206
207 - Put single-lined block comments on the same line with list-like structure's item (#1923).
208 - Preserve blank line between doc comment and attribute (#1925).
209 - Put the opening and the closing braces of enum and struct on the same line, even when `item_brace_style = "AlwaysNextLine"` (#1930).
210
211 ### Fixed
212
213 - Format attributes on `ast::ForeignItem` and take max width into account (#1916).
214 - Ignore empty lines when calculating the shortest indent width inside macro with braces (#1918).
215 - Handle tabs properly inside macro with braces (#1918).
216 - Fix a typo in `compute_budgets_for_args()` (#1924).
217 - Recover comment between keyword (`impl` and `trait`) and `{` which used to get removed (#1925).