aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
Diffstat (limited to 'mingling')
-rw-r--r--mingling/src/example_docs.rs2
-rw-r--r--mingling/src/lib.rs2
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;