Transform Doxygen to Rustdoc.
Add this to your Cargo.toml
[dependencies]
doxygen-rs = "0.4"
Available on >=0.63 bindgen
#[derive(Debug)]
struct Cb;
impl ParseCallbacks for Cb {
fn process_comment(&self, comment: &str) -> Option<String> {
Some(doxygen_rs::transform(comment))
}
}
use doxygen_rs::transform;
let rustdoc = transform("@brief Example Doxygen brief");
assert_eq!(rustdoc, "Example Doxygen brief\n\n");