feat: add warning on ewwii_plugin_api until it is fixed

This commit is contained in:
Byson94
2025-11-21 18:06:52 +05:30
parent 4de148be58
commit 9aec974e9e
3 changed files with 9 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -527,7 +527,7 @@ dependencies = [
[[package]]
name = "ewwii_plugin_api"
version = "0.6.7"
version = "0.6.1"
dependencies = [
"gtk4",
"rhai",

View File

@@ -1,6 +1,6 @@
[package]
name = "ewwii_plugin_api"
version = "0.6.1"
version = "0.6.7"
authors = ["byson94 <byson94wastaken@gmail.com>"]
edition = "2021"
license = "GPL-3.0-or-later"

View File

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