|
|
|
@ -2,22 +2,22 @@
@@ -2,22 +2,22 @@
|
|
|
|
|
//!
|
|
|
|
|
//! # Usage
|
|
|
|
|
//!
|
|
|
|
|
//! ``cargo run --bin docstring-to-rustdoc -- [location of the bindings.rs]``
|
|
|
|
|
//! Example: ``cargo run --bin docstring-to-rustdoc -- src/bindings.rs``
|
|
|
|
|
//! `cargo run --bin docstring-to-rustdoc -- [location of the bindings.rs]`
|
|
|
|
|
//! Example: `cargo run --bin docstring-to-rustdoc -- src/bindings.rs`
|
|
|
|
|
//!
|
|
|
|
|
//! # Transformations
|
|
|
|
|
//!
|
|
|
|
|
//! The following are _completely_ removed, but _its contents are kept_:
|
|
|
|
|
//! * ``@brief``
|
|
|
|
|
//! * ``@ref``
|
|
|
|
|
//! * ``@note``
|
|
|
|
|
//! * ``@return``
|
|
|
|
|
//! * ``@sa``
|
|
|
|
|
//! * ``<``
|
|
|
|
|
//! * ``[out]`` and ``[in]``
|
|
|
|
|
//! * `@brief`
|
|
|
|
|
//! * `@ref`
|
|
|
|
|
//! * `@note`
|
|
|
|
|
//! * `@return`
|
|
|
|
|
//! * `@sa`
|
|
|
|
|
//! * `<`
|
|
|
|
|
//! * `[out]` and `[in]`
|
|
|
|
|
//!
|
|
|
|
|
//! The followings are _partially_ transformed to Rustdoc format:
|
|
|
|
|
//! * ``@param``
|
|
|
|
|
//! * `@param`
|
|
|
|
|
|
|
|
|
|
use std::{env, fs, io}; |
|
|
|
|
use std::path::Path; |
|
|
|
|