ewwii_plugin_api
ewwii_plugin_api provides the core traits, types, and abstractions
that bridge the ewwii host and its plugins.
This crate provides a safe and easy plugin development API through a simple and flexible interface for cross-boundary communication.
Usage
There are two ways to define a plugin: the Recommended Macro for standard plugins, and the Manual Implementation for full control.
1. Recommended: Using auto_plugin!
For most use cases, the macro handles the boilerplate of exporting symbols and implementing traits.
use ;
auto_plugin!;
2. Advanced: Manual Implementation
Use this approach if your plugin needs to maintain internal state, implement additional traits, or manage complex lifetimes.
use ;
// This macro exports the C-compatible symbols required by the host loader
export_plugin!;