File tree 1 file changed +5
-7
lines changed 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -323,14 +323,12 @@ generated Rust code are implemented using the [`syn`](https://docs.rs/syn) crate
323
323
324
324
### Implementing new options using ` syn `
325
325
326
- Here is a list of recommendations to be followed if a new option can be
327
- implemented using the ` syn ` crate :
326
+ If a new option can be implemented using the ` syn ` crate it should be added to
327
+ the ` codegen::postprocessing ` module by following these steps :
328
328
329
- - The ` BindgenOptions::require_syn ` method must be updated to reflect that this
330
- new option requires parsing the generated Rust code with ` syn ` .
331
-
332
- - The implementation of the new option should be added at the end of
333
- ` Bindings::generate ` , inside the ` if options.require_syn() { ... } ` block.
329
+ - Introduce a new ` struct ` with no fields.
330
+ - Implement the ` PostProcessing ` trait for the ` struct ` .
331
+ - Add the ` struct ` to the ` decl_postprocessing ` macro invocation.
334
332
335
333
## Pull Requests and Code Reviews
336
334
You can’t perform that action at this time.
0 commit comments