doxygen-bindgen
Crate
The doxygen-bindgen
crate transforms Doxygen-style comments into Rustdoc-style markdown documentation. It helps convert Doxygen annotations used in C/C++ code into the appropriate Rustdoc format, making it easier to migrate or document codebases in Rust.
Usage
[]
= "0.1"
use ParseCallbacks;
;
builder
.parse_callbacks
Example
/**
* Creates a new registry key or opens an existing one, and it associates the key with a transaction.
*
* @param[out] KeyHandle A pointer to a handle that receives the key handle.
* @param[in] DesiredAccess The access mask that specifies the desired access rights.
* @param[in] ObjectAttributes A pointer to an OBJECT_ATTRIBUTES structure that specifies the object attributes.
* @param[in] TitleIndex Reserved.
* @param[in, optional] Class A pointer to a UNICODE_STRING structure that specifies the class of the key.
* @param[in] CreateOptions The options to use when creating the key.
* @param[in] TransactionHandle A handle to the transaction.
* @param[out, optional] Disposition A pointer to a variable that receives the disposition value.
* @return NTSTATUS Successful or errant status.
*/
Doxygen markup for NtCreateKeyTransacted is transformed into:
Creates a new registry key or opens an existing one, and it associates the key with a transaction.
* *******NTSTATUS Successful or errant status.
Available Doxygen commands
Doxygen | Markdown |
---|---|
brief , short |
|
param |
# Arguments\n\n* `name` - |
see , sa |
# See also\n\n> [`ref`] |
ref |
[`ref`] |
a , e , em |
word |
b |
word |
c , p |
word |
note |
> **Note** |
since |
> **Since** |
deprecated |
> **Deprecated** |
remark , remarks |
> |
li |
- |
par |
# |
returns , return , result |
# Returns\n\n |
{ , } |
Not implemented |
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contribution
We welcome contributions! If you'd like to help improve this crate, feel free to submit a pull request or open an issue.