Struct rustdoc::plugins::PluginManager
[−]
[src]
pub struct PluginManager { pub prefix: PathBuf, // some fields omitted }
🔬 This is a nightly-only experimental API. (
rustdoc
)Manages loading and running of plugins
Fields
prefix: PathBuf
🔬 This is a nightly-only experimental API. (
rustdoc
)The directory plugins will be loaded from
Methods
impl PluginManager
[src]
fn new(prefix: PathBuf) -> PluginManager
🔬 This is a nightly-only experimental API. (
rustdoc
)Create a new plugin manager
fn load_plugin(&mut self, name: String)
🔬 This is a nightly-only experimental API. (
rustdoc
)Load a plugin with the given name.
Turns name
into the proper dynamic library filename for the given
platform. On windows, it turns into name.dll, on OS X, name.dylib, and
elsewhere, libname.so.
fn add_plugin(&mut self, plugin: PluginCallback)
🔬 This is a nightly-only experimental API. (
rustdoc
)Load a normal Rust function as a plugin.
This is to run passes over the cleaned crate. Plugins run this way correspond to the A-aux tag on Github.
fn run_plugins(&self, krate: Crate) -> Crate
🔬 This is a nightly-only experimental API. (
rustdoc
)Run all the loaded plugins over the crate, returning their results