From 9411f2570cbd494aebefa2b97b6b5a1a5e68bb27 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Apr 2026 00:49:09 +0800 Subject: Remove async runtime requirement from examples --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 628693e..2ef52f4 100644 --- a/README.md +++ b/README.md @@ -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: " hello" -- cgit