File tree 2 files changed +8
-1
lines changed 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 164
164
## Added
165
165
* Added the ` Bindgen::default_visibility ` nethod and the
166
166
` --default-visibility ` flag to set the default visibility of fields.
167
- * Added the ` --formatter ` flag with the values ` none ` , ` rustfmt ` and
167
+ * Added the ` --formatter ` CLI flag with the values ` none ` , ` rustfmt ` and
168
168
` prettyplease ` to select which tool will be used to format the bindings. The
169
169
default value is ` rustfmt ` .
170
+ * Added the ` Builder::formatter ` method and the ` Formatter ` type to select
171
+ which tool will be used to format the bindings. The
172
+ ` Formatter::Prettyplease ` variant is only available if the
173
+ ` "prettyplease" ` feature is enabled.
170
174
## Changed
171
175
* Static functions with no arguments use ` void ` as their single argument
172
176
instead of having no arguments when the ` --wrap-static-fns ` flag is used.
Original file line number Diff line number Diff line change @@ -1667,6 +1667,9 @@ impl Builder {
1667
1667
}
1668
1668
1669
1669
/// Set which tool should be used to format the generated bindings.
1670
+ ///
1671
+ /// To be able to choose `prettyplease` as a formatter, the `"prettyplease"` feature must be
1672
+ /// enabled.
1670
1673
pub fn formatter ( mut self , formatter : Formatter ) -> Self {
1671
1674
self . options . formatter = formatter;
1672
1675
self
You can’t perform that action at this time.
0 commit comments