猫·仁波切

会研发的PM才是好OP.

A Rustdoc Plugin

Run with

rustdoc -L. --plugin-path . --plugins dummy rust-sdl2/src/sdl2/lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![crate_id = "dummy#0.1"]
#![crate_type = "dylib"]


extern crate rustdoc;

use rustdoc::clean;

use rustdoc::plugins::{PluginCallback, PluginResult, PluginJson};

#[no_mangle]
pub fn rustdoc_plugin_entrypoint(c: clean::Crate) -> PluginResult {
    println!("loading extension ok!");
    println!("crate => {}", c.name);
    (c, None)
}

Comments