summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-02-05 22:35:05 +0800
committer魏曹先生 <1992414357@qq.com>2026-02-05 22:35:05 +0800
commit27f6414ad1ff451feb0044af62f37dc2a6255ffa (patch)
treecb5693bc014cc8579dcf02a730fd4d2a5dfcf1a5 /examples
parentade2fcb9302a4ab759795820dbde3b2b269490ee (diff)
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
Diffstat (limited to 'examples')
-rw-r--r--examples/Cargo.toml25
-rw-r--r--examples/src/bin/example_action_system.rs18
-rw-r--r--examples/src/lib.rs1
3 files changed, 0 insertions, 44 deletions
diff --git a/examples/Cargo.toml b/examples/Cargo.toml
deleted file mode 100644
index 12c52c1..0000000
--- a/examples/Cargo.toml
+++ /dev/null
@@ -1,25 +0,0 @@
-[package]
-name = "examples"
-edition = "2024"
-version.workspace = true
-
-[[bin]]
-name = "example_action_system"
-path = "src/bin/example_action_system.rs"
-
-[dependencies]
-
-# Utils
-tcp_connection = { path = "../utils/tcp_connection" }
-cfg_file = { path = "../utils/cfg_file", features = ["default"] }
-string_proc = { path = "../utils/string_proc" }
-
-# Core
-action_system = { path = "../systems/action" }
-
-# Async & Networking
-tokio = { version = "1.48.0", features = ["full"] }
-
-# Serialization
-serde = { version = "1.0.228", features = ["derive"] }
-serde_json = "1.0.145"
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(())
-}
diff --git a/examples/src/lib.rs b/examples/src/lib.rs
deleted file mode 100644
index 8b13789..0000000
--- a/examples/src/lib.rs
+++ /dev/null
@@ -1 +0,0 @@
-