From a5647e89bc5110a07c8f3c695c3c9582aa31d354 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 16 May 2026 16:24:55 +0800 Subject: Simplify example imports to use prelude and add resources example Add a new example demonstrating global resource injection in chain functions, and update all existing examples to import from `mingling::prelude` instead of individual macro paths. Also add `example-resources` to the workspace exclude list. --- examples/example-basic/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/example-basic/src') diff --git a/examples/example-basic/src/main.rs b/examples/example-basic/src/main.rs index 79853ad..660cd68 100644 --- a/examples/example-basic/src/main.rs +++ b/examples/example-basic/src/main.rs @@ -5,7 +5,7 @@ //! cargo run --manifest-path ./examples/example-basic/Cargo.toml -- hello World //! ``` -use mingling::macros::{chain, dispatcher, gen_program, pack, r_println, renderer}; +use mingling::prelude::*; // Define dispatcher `HelloCommand`, directing subcommand "hello" to `HelloEntry` dispatcher!("hello", HelloCommand => HelloEntry); -- cgit