fix: solve more cargo test issus
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "ewwii_plugin_api"
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
authors = ["byson94 <byson94wastaken@gmail.com>"]
|
||||
edition = "2021"
|
||||
license = "GPL-3.0-or-later"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
/// The following example shows how you can use this macro to
|
||||
/// easily make plugins in a single step.
|
||||
///
|
||||
/// ```rust
|
||||
/// ```rust,no_run
|
||||
/// use ewwii_plugin_api::auto_plugin;
|
||||
///
|
||||
/// auto_plugin!(MyPluginName, {
|
||||
@@ -34,7 +34,7 @@ macro_rules! auto_plugin {
|
||||
}
|
||||
}
|
||||
|
||||
export_plugin!($struct_name);
|
||||
crate::export_plugin!($struct_name);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -102,12 +102,14 @@ pub trait EwwiiAPI: Send + Sync {
|
||||
/// ## Example
|
||||
///
|
||||
/// ```rust
|
||||
/// use ewwii_plugin_api::{Plugin, export_plugin};
|
||||
/// use ewwii_plugin_api::{Plugin, EwwiiAPI, export_plugin};
|
||||
///
|
||||
/// struct MyStruct;
|
||||
///
|
||||
/// impl Plugin for MyStruct {
|
||||
/// /* Implementation Skipped */
|
||||
/// fn init(&self, host: &dyn EwwiiAPI) {
|
||||
/// /* Implementation Skipped */
|
||||
// }
|
||||
/// }
|
||||
///
|
||||
/// // Automatically does all the FFI related exports
|
||||
|
||||
Reference in New Issue
Block a user