diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-24 17:18:18 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-24 17:18:48 +0800 |
| commit | 0d3639016ac89ca3c6d7a8d2c8aa3b7656069e4e (patch) | |
| tree | b3b323eb3031fcafc65197dd65d41b693e70b859 /mingling | |
| parent | 60e70f5320b2abdb38a2349c18e5bffcfea37ca7 (diff) | |
Gate extra_macros items behind the feature flag
Diffstat (limited to 'mingling')
| -rw-r--r-- | mingling/src/example_docs.rs | 2 | ||||
| -rw-r--r-- | mingling/src/lib.rs | 2 |
2 files changed, 3 insertions, 1 deletions
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; |
