diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-19 22:48:23 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-19 22:48:23 +0800 |
| commit | 39d66182f0290bacc10886c2659874bd9edc2d4b (patch) | |
| tree | 7b0e9463575a8350cd5a61bd0d02c9bada892b7f /mingling/src/lib.rs | |
| parent | bd4b09b06181093c95e865b04d4a9cdda7dd0728 (diff) | |
Add `empty_result!` macro and `REPL` resource, improve examples
Diffstat (limited to 'mingling/src/lib.rs')
| -rw-r--r-- | mingling/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 4803c23..a8579d4 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -83,6 +83,8 @@ pub mod macros { /// Used to create a dispatcher with clap argument parsing #[cfg(feature = "clap")] pub use mingling_macros::dispatcher_clap; + /// Used to create an empty result value for early return from a chain function + pub use mingling_macros::empty_result; /// Used to collect data and create a command-line context pub use mingling_macros::gen_program; /// Used to generate a struct implementing the `HelpRequest` trait via a method @@ -211,6 +213,8 @@ pub mod prelude { pub use crate::macros::chain; /// 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. + 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; /// Re-export of the `pack` macro for creating wrapper types. |
