From 0d3639016ac89ca3c6d7a8d2c8aa3b7656069e4e Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 24 May 2026 17:18:18 +0800 Subject: Gate extra_macros items behind the feature flag --- mingling/src/example_docs.rs | 2 +- mingling/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'mingling/src') diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index df16cb1..81ba3fc 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -1352,7 +1352,7 @@ pub mod example_panic_unwind {} /// /// [dependencies.mingling] /// path = "../../mingling" -/// features = ["repl", "parser"] +/// features = ["repl", "parser", "extra_macros"] /// /// [dependencies] /// just_fmt = "0.1.2" diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index a7d6896..01aa49e 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -84,6 +84,7 @@ pub mod macros { #[cfg(feature = "clap")] pub use mingling_macros::dispatcher_clap; /// Used to create an empty result value for early return from a chain function + #[cfg(feature = "extra_macros")] pub use mingling_macros::empty_result; /// Creates a packed entry value from a list of string literals #[cfg(feature = "extra_macros")] @@ -220,6 +221,7 @@ pub mod prelude { /// Re-export of the `dispatcher` macro for routing commands. pub use crate::macros::dispatcher; /// Re-export of the `empty_result` macro for creating an empty result value for early return. + #[cfg(feature = "extra_macros")] pub use crate::macros::empty_result; /// Re-export of the `gen_program` macro for generating the program entry point. pub use crate::macros::gen_program; -- cgit