fix: solve more cargo test issus

This commit is contained in:
Byson94
2025-10-12 13:24:39 +05:30
parent 0e2307ea03
commit 30a4b63f00
3 changed files with 7 additions and 5 deletions

View File

@@ -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"

View File

@@ -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);
};
}

View File

@@ -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