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

#36 in FFI

Download history 2169/week @ 2024-01-16 5948/week @ 2024-01-23 5052/week @ 2024-01-30 4929/week @ 2024-02-06 6121/week @ 2024-02-13 6349/week @ 2024-02-20 5379/week @ 2024-02-27 6202/week @ 2024-03-05 7814/week @ 2024-03-12 7849/week @ 2024-03-19 7201/week @ 2024-03-26 7459/week @ 2024-04-02 8200/week @ 2024-04-09 9240/week @ 2024-04-16 19511/week @ 2024-04-23 16272/week @ 2024-04-30

54,519 downloads per month
Used in 21 crates (4 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.7–1.2MB
~25K SLoC