Skip to content

Commit a7fee31

Browse files
authored
Add instructions for usage with bindgen
ref: rust-lang/rust-bindgen#955
1 parent f70e10c commit a7fee31

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ Add this to your ``Cargo.toml``
1010
doxygen-rs = { git = "https://github.com/Techie-Pi/doxygen-rs.git" }
1111
```
1212

13+
## Usage with Bindgen
14+
> Available on >=0.63 bindgen
15+
16+
```rs
17+
#[derive(Debug)]
18+
struct Cb;
19+
20+
impl ParseCallbacks for Cb {
21+
fn process_comment(&self, comment: &str) -> Option<String> {
22+
Some(doxygen_rs::transform(comment))
23+
}
24+
}
25+
```
26+
1327
## Example
1428
```rust
1529
use doxygen_rs::transform;

0 commit comments

Comments
 (0)