From 0a2ef958c0dca21d19e4ffc38ba5a7c4078e182a Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sat, 23 May 2026 23:41:04 +0800 Subject: Rework examples and add entry macro for testing --- mingling/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 4c11b7c..583c89a 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -85,6 +85,8 @@ pub mod macros { 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; + /// Creates a packed entry value from a list of string literals + pub use mingling_macros::entry; /// 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 @@ -216,6 +218,8 @@ pub mod prelude { 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 `entry` macro for creating packed entry values from string literals. + pub use crate::macros::entry; /// 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. -- cgit