From 27f6414ad1ff451feb0044af62f37dc2a6255ffa Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Thu, 5 Feb 2026 22:35:05 +0800 Subject: Remove examples and legacy code, update .gitignore - Delete examples directory and its example action system - Rename actions/ to legacy_actions/ and data/ to legacy_data/ - Update Cargo.toml license file reference - Move setup scripts to scripts/dev/ directory - Add todo.txt patterns to .gitignore --- examples/src/bin/example_action_system.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 examples/src/bin/example_action_system.rs (limited to 'examples/src/bin') diff --git a/examples/src/bin/example_action_system.rs b/examples/src/bin/example_action_system.rs deleted file mode 100644 index 776c982..0000000 --- a/examples/src/bin/example_action_system.rs +++ /dev/null @@ -1,18 +0,0 @@ -use action_system::{action::ActionContext, action_pool::ActionPool, macros::action_gen}; -use tcp_connection::error::TcpTargetError; - -#[tokio::main] -async fn main() { - let mut pool = ActionPool::new(); - register_print_name_action(&mut pool); - - proc_print_name_action(&pool, ActionContext::local(), "World".to_string()) - .await - .unwrap(); -} - -#[action_gen] -async fn print_name_action(_ctx: ActionContext, name: String) -> Result<(), TcpTargetError> { - println!("Hello, {}!", name); - Ok(()) -} -- cgit