Crates.io | doxygen-rs |
lib.rs | doxygen-rs |
version | 0.4.2 |
source | src |
created_at | 2023-01-05 21:54:00.241665 |
updated_at | 2023-05-30 16:22:37.701945 |
description | Transform Doxygen to Rustdoc |
homepage | https://github.com/Techie-Pi/doxygen-rs/ |
repository | https://github.com/Techie-Pi/doxygen-rs/ |
max_upload_size | |
id | 751842 |
size | 55,935 |
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");