6 releases

0.4.2 May 30, 2023
0.4.1 May 21, 2023
0.4.0 Apr 4, 2023
0.3.1 Feb 28, 2023
0.2.2 Jan 5, 2023

#58 in FFI

Download history 21644/week @ 2024-06-20 21861/week @ 2024-06-27 13719/week @ 2024-07-04 14369/week @ 2024-07-11 12486/week @ 2024-07-18 10526/week @ 2024-07-25 12267/week @ 2024-08-01 10215/week @ 2024-08-08 12240/week @ 2024-08-15 10498/week @ 2024-08-22 11350/week @ 2024-08-29 12036/week @ 2024-09-05 8414/week @ 2024-09-12 10849/week @ 2024-09-19 12579/week @ 2024-09-26 10698/week @ 2024-10-03

44,495 downloads per month
Used in 39 crates (8 directly)

BSD-3-Clause

51KB
1.5K SLoC

doxygen-rs

Transform Doxygen to Rustdoc.

Docs available here

Installation

Add this to your Cargo.toml

[dependencies]
doxygen-rs = "0.4"

Usage with Bindgen

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))
    }
}

Example

use doxygen_rs::transform;

let rustdoc = transform("@brief Example Doxygen brief");
assert_eq!(rustdoc, "Example Doxygen brief\n\n");

lib.rs:

Simple Doxygen to Rustdoc translation.

Provides a simple and straightforward API to translate raw Doxygen comments to Rustdoc comments. Purely experimental right now, maybe practical in a future?

Examples

use doxygen_rs::transform;

let rustdoc = transform("@brief Example Doxygen brief");
assert_eq!(rustdoc, "Example Doxygen brief");

Usage with bindgen >= 0.63

#[derive(Debug)]
struct Cb;

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

Dependencies

~0.6–1.2MB
~26K SLoC