Native Plugins
The plugin api is highly experimental, and will most likely change soon and often. It also isn't ABI-stable, and will potentially break between midio/rust versions.How to write a plugin
cargo new --lib MyMidioPlugincargo add `midio-plugin-api`The `midio-plugin-api` crate might not be publicly available yet.struct MyPlugin;
impl MidioPlugin for MyPlugin {
extern "C" fn get_plugins() -> CompilerPlugins {
...
}
extern "C" fn get_dependencies(package_id: PackageId, package: &ExecutablePackage) -> Result<EngineDependencies> {
...
}
}Was this helpful?