diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-19 00:49:09 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-19 00:49:09 +0800 |
| commit | 9411f2570cbd494aebefa2b97b6b5a1a5e68bb27 (patch) | |
| tree | 7c419bd16cc1bc38eb0df04b21fbbfeb0b8c6548 /README.md | |
| parent | f26cd7da74e9b65facb4dc2f16c21683334e0aee (diff) | |
Remove async runtime requirement from examples
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -53,13 +53,12 @@ The example below shows how to use `Mingling` to create a simple command-line pr ```rust use mingling::macros::{dispatcher, gen_program, r_println, renderer}; -#[tokio::main] -async fn main() { +fn main() { let mut program = ThisProgram::new(); program.with_dispatcher(HelloCommand); // Execute - program.exec().await; + program.exec(); } // Define command: "<bin> hello" |
