From 9aec974e9e2e06adeaee4c531854e919d5ac610f Mon Sep 17 00:00:00 2001 From: Byson94 Date: Fri, 21 Nov 2025 18:06:52 +0530 Subject: [PATCH] feat: add warning on ewwii_plugin_api until it is fixed --- Cargo.lock | 2 +- crates/ewwii_plugin_api/Cargo.toml | 2 +- crates/ewwii_plugin_api/src/lib.rs | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d4bbf7d..139788a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -527,7 +527,7 @@ dependencies = [ [[package]] name = "ewwii_plugin_api" -version = "0.6.7" +version = "0.6.1" dependencies = [ "gtk4", "rhai", diff --git a/crates/ewwii_plugin_api/Cargo.toml b/crates/ewwii_plugin_api/Cargo.toml index fe6d2a7..e6c1e33 100644 --- a/crates/ewwii_plugin_api/Cargo.toml +++ b/crates/ewwii_plugin_api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ewwii_plugin_api" -version = "0.6.1" +version = "0.6.7" authors = ["byson94 "] edition = "2021" license = "GPL-3.0-or-later" diff --git a/crates/ewwii_plugin_api/src/lib.rs b/crates/ewwii_plugin_api/src/lib.rs index 7b86227..a04b2bd 100644 --- a/crates/ewwii_plugin_api/src/lib.rs +++ b/crates/ewwii_plugin_api/src/lib.rs @@ -76,6 +76,13 @@ pub trait EwwiiAPI: Send + Sync { /// _(include-rhai)_ Expose a function that rhai configuration can call. /// + /// **NOTE:*** + /// + /// Due to TypeID mismatches, methods like `register_type`, `register_fn`, + /// etc. won't work on the engine and may cause a crash. It is recommended + /// to use the `register_function` API to register a funtion which `api::slib` + /// can call to in rhai. + /// /// # Example /// /// ```rust