Skip to content

Commit

Permalink
Add instructions for usage with bindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
Techie-Pi authored Nov 24, 2022
1 parent f70e10c commit a7fee31
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ Add this to your ``Cargo.toml``
doxygen-rs = { git = "https://github.com/Techie-Pi/doxygen-rs.git" }
```

## Usage with Bindgen
> Available on >=0.63 bindgen
```rs
#[derive(Debug)]
struct Cb;

impl ParseCallbacks for Cb {
fn process_comment(&self, comment: &str) -> Option<String> {
Some(doxygen_rs::transform(comment))
}
}
```

## Example
```rust
use doxygen_rs::transform;
Expand Down

0 comments on commit a7fee31

Please sign in to comment.