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

#35 in FFI

Download history 10862/week @ 2024-09-07 9050/week @ 2024-09-14 12233/week @ 2024-09-21 11300/week @ 2024-09-28 13443/week @ 2024-10-05 14580/week @ 2024-10-12 16977/week @ 2024-10-19 16250/week @ 2024-10-26 14681/week @ 2024-11-02 11568/week @ 2024-11-09 13531/week @ 2024-11-16 16143/week @ 2024-11-23 20410/week @ 2024-11-30 20857/week @ 2024-12-07 18181/week @ 2024-12-14 5287/week @ 2024-12-21

67,371 downloads per month
Used in 46 crates (10 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.1MB
~24K SLoC