From 2788dd766da59e3ecc75330cdb0aca4034747819 Mon Sep 17 00:00:00 2001 From: Jesper Larsson Date: Thu, 28 May 2026 10:19:59 +0200 Subject: [PATCH 1/2] reintroduce re-exports in `rhai::plugin` --- src/func/plugin.rs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/func/plugin.rs b/src/func/plugin.rs index 8f9803fee..490435d27 100644 --- a/src/func/plugin.rs +++ b/src/func/plugin.rs @@ -1,15 +1,25 @@ //! Module defining macros for developing _plugins_. use super::FnCallArgs; -use crate::NativeCallContext; #[cfg(feature = "no_std")] use std::prelude::v1::*; + /// Result of a Rhai function. pub type RhaiResult = crate::RhaiResult; pub use rhai_codegen::*; +// Removing these re-exports would be a breaking change, +// despite there are other import paths that can be used. +// https://github.com/rhaiscript/rhai/issues/1098 +pub use super::RhaiFunc; +pub use crate::{ + Dynamic, Engine, EvalAltResult, FnAccess, FnNamespace, FuncRegistration, ImmutableString, + Module, NativeCallContext, Position, +}; +pub use std::{any::TypeId, mem}; + /// Trait implemented by a _plugin function_. /// /// This trait should not be used directly. From 7813e152c60376f87290d03450fbf261fded5c10 Mon Sep 17 00:00:00 2001 From: Jesper Larsson Date: Thu, 28 May 2026 14:42:52 +0200 Subject: [PATCH 2/2] apply cargo fmt --- src/func/plugin.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/func/plugin.rs b/src/func/plugin.rs index 490435d27..781d3582d 100644 --- a/src/func/plugin.rs +++ b/src/func/plugin.rs @@ -4,7 +4,6 @@ use super::FnCallArgs; #[cfg(feature = "no_std")] use std::prelude::v1::*; - /// Result of a Rhai function. pub type RhaiResult = crate::RhaiResult;