From dddbd59ae526f5d2c86446c20095bd4fba6f6b94 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 1 Apr 2026 20:33:17 +0800 Subject: Add documentation for public items in lib and parser modules --- mingling/src/lib.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'mingling/src/lib.rs') diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 741effb..2b40989 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -43,29 +43,40 @@ //! // Output: //! -//! ``` +//! ```text //! > mycmd hello //! Hello, World! //! > mycmd hallo //! Dispatcher not found for command `hallo` //! ``` -// Re-Export Core lib +// Re-export Core lib pub use mingling::*; pub use mingling_core as mingling; +/// `Mingling` argument parser #[cfg(feature = "parser")] pub mod parser; +/// Re-export from `mingling_macros` #[allow(unused_imports)] pub mod macros { + /// Used to generate a struct implementing the `Chain` trait via a method pub use mingling_macros::chain; + /// Used to create a dispatcher that routes to a `Chain` pub use mingling_macros::dispatcher; + /// Used to create a dispatcher that routes to a `Renderer` pub use mingling_macros::dispatcher_render; + /// Used to collect data and create a command-line context pub use mingling_macros::gen_program; + /// Used to create a `Node` struct via a literal pub use mingling_macros::node; + /// Used to create a wrapper type for use with `Chain` and `Renderer` pub use mingling_macros::pack; + /// Used to print content within a `Renderer` context pub use mingling_macros::r_print; + /// Used to print content with a newline within a `Renderer` context pub use mingling_macros::r_println; + /// Used to generate a struct implementing the `Renderer` trait via a method pub use mingling_macros::renderer; } -- cgit