From 8ec7e70edf24846cb36d37a28e1ce71ed6b65d0e Mon Sep 17 00:00:00 2001 From: Timur Gordon <31495328+timurgordon@users.noreply.github.com> Date: Tue, 5 Aug 2025 12:59:02 +0200 Subject: [PATCH] archive unused / old code --- Cargo.toml | 8 ++----- .../benches}/simple_rhai_bench/README.md | 0 .../benches}/simple_rhai_bench/batch_task.lua | 0 .../benches}/simple_rhai_bench/main.rs | 0 {core => _archive/core}/examples/Cargo.toml | 0 .../core}/examples/supervisor_worker_demo.rs | 0 .../core}/supervisor/cmd/README.md | 0 .../cmd/hive_supervisor_tui_safe.rs | 0 .../core}/supervisor/cmd/supervisor.rs | 0 {core => _archive/core}/worker/cmd/README.md | 0 {core => _archive/core}/worker/cmd/osis.rs | 0 {core => _archive/core}/worker/cmd/system.rs | 0 {core => _archive/core}/worker/cmd/worker.rs | 0 .../core}/worker/examples/README.md | 0 .../core}/worker/examples/osis/config.toml | 0 .../core}/worker/examples/osis/example.sh | 0 .../core}/worker/examples/osis_config.toml | 0 .../core}/worker/examples/osis_worker_demo.rs | 0 .../core}/worker/examples/system/config.toml | 0 .../core}/worker/examples/system/example.sh | 0 .../core}/worker/examples/system_config.toml | 0 .../worker/examples/system_worker_demo.rs | 0 .../examples/trait_based_worker_demo.rs | 0 core/supervisor/Cargo.toml | 16 ------------- core/worker/Cargo.toml | 24 ------------------- 25 files changed, 2 insertions(+), 46 deletions(-) rename {benches => _archive/benches}/simple_rhai_bench/README.md (100%) rename {benches => _archive/benches}/simple_rhai_bench/batch_task.lua (100%) rename {benches => _archive/benches}/simple_rhai_bench/main.rs (100%) rename {core => _archive/core}/examples/Cargo.toml (100%) rename {core => _archive/core}/examples/supervisor_worker_demo.rs (100%) rename {core => _archive/core}/supervisor/cmd/README.md (100%) rename {core => _archive/core}/supervisor/cmd/hive_supervisor_tui_safe.rs (100%) rename {core => _archive/core}/supervisor/cmd/supervisor.rs (100%) rename {core => _archive/core}/worker/cmd/README.md (100%) rename {core => _archive/core}/worker/cmd/osis.rs (100%) rename {core => _archive/core}/worker/cmd/system.rs (100%) rename {core => _archive/core}/worker/cmd/worker.rs (100%) rename {core => _archive/core}/worker/examples/README.md (100%) rename {core => _archive/core}/worker/examples/osis/config.toml (100%) rename {core => _archive/core}/worker/examples/osis/example.sh (100%) rename {core => _archive/core}/worker/examples/osis_config.toml (100%) rename {core => _archive/core}/worker/examples/osis_worker_demo.rs (100%) rename {core => _archive/core}/worker/examples/system/config.toml (100%) rename {core => _archive/core}/worker/examples/system/example.sh (100%) rename {core => _archive/core}/worker/examples/system_config.toml (100%) rename {core => _archive/core}/worker/examples/system_worker_demo.rs (100%) rename {core => _archive/core}/worker/examples/trait_based_worker_demo.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 1009de7..d30ee97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,12 +21,8 @@ criterion = { version = "0.5", features = ["html_reports"] } uuid = { version = "1.6", features = ["v4", "serde"] } # For examples like dedicated_reply_queue_demo tempfile = "3.10" -[[bench]] -name = "simple_rhai_bench" -harness = false - [[bin]] -name = "hive" +name = "baobab" path = "cmd/main.rs" [workspace.dependencies] @@ -63,7 +59,7 @@ members = [ "interfaces/websocket/server", "core/supervisor", "core/worker", - "core/job", "core/examples", "interfaces/websocket/examples", + "core/job", "interfaces/websocket/examples", "proxies/http", ] resolver = "2" # Recommended for new workspaces diff --git a/benches/simple_rhai_bench/README.md b/_archive/benches/simple_rhai_bench/README.md similarity index 100% rename from benches/simple_rhai_bench/README.md rename to _archive/benches/simple_rhai_bench/README.md diff --git a/benches/simple_rhai_bench/batch_task.lua b/_archive/benches/simple_rhai_bench/batch_task.lua similarity index 100% rename from benches/simple_rhai_bench/batch_task.lua rename to _archive/benches/simple_rhai_bench/batch_task.lua diff --git a/benches/simple_rhai_bench/main.rs b/_archive/benches/simple_rhai_bench/main.rs similarity index 100% rename from benches/simple_rhai_bench/main.rs rename to _archive/benches/simple_rhai_bench/main.rs diff --git a/core/examples/Cargo.toml b/_archive/core/examples/Cargo.toml similarity index 100% rename from core/examples/Cargo.toml rename to _archive/core/examples/Cargo.toml diff --git a/core/examples/supervisor_worker_demo.rs b/_archive/core/examples/supervisor_worker_demo.rs similarity index 100% rename from core/examples/supervisor_worker_demo.rs rename to _archive/core/examples/supervisor_worker_demo.rs diff --git a/core/supervisor/cmd/README.md b/_archive/core/supervisor/cmd/README.md similarity index 100% rename from core/supervisor/cmd/README.md rename to _archive/core/supervisor/cmd/README.md diff --git a/core/supervisor/cmd/hive_supervisor_tui_safe.rs b/_archive/core/supervisor/cmd/hive_supervisor_tui_safe.rs similarity index 100% rename from core/supervisor/cmd/hive_supervisor_tui_safe.rs rename to _archive/core/supervisor/cmd/hive_supervisor_tui_safe.rs diff --git a/core/supervisor/cmd/supervisor.rs b/_archive/core/supervisor/cmd/supervisor.rs similarity index 100% rename from core/supervisor/cmd/supervisor.rs rename to _archive/core/supervisor/cmd/supervisor.rs diff --git a/core/worker/cmd/README.md b/_archive/core/worker/cmd/README.md similarity index 100% rename from core/worker/cmd/README.md rename to _archive/core/worker/cmd/README.md diff --git a/core/worker/cmd/osis.rs b/_archive/core/worker/cmd/osis.rs similarity index 100% rename from core/worker/cmd/osis.rs rename to _archive/core/worker/cmd/osis.rs diff --git a/core/worker/cmd/system.rs b/_archive/core/worker/cmd/system.rs similarity index 100% rename from core/worker/cmd/system.rs rename to _archive/core/worker/cmd/system.rs diff --git a/core/worker/cmd/worker.rs b/_archive/core/worker/cmd/worker.rs similarity index 100% rename from core/worker/cmd/worker.rs rename to _archive/core/worker/cmd/worker.rs diff --git a/core/worker/examples/README.md b/_archive/core/worker/examples/README.md similarity index 100% rename from core/worker/examples/README.md rename to _archive/core/worker/examples/README.md diff --git a/core/worker/examples/osis/config.toml b/_archive/core/worker/examples/osis/config.toml similarity index 100% rename from core/worker/examples/osis/config.toml rename to _archive/core/worker/examples/osis/config.toml diff --git a/core/worker/examples/osis/example.sh b/_archive/core/worker/examples/osis/example.sh similarity index 100% rename from core/worker/examples/osis/example.sh rename to _archive/core/worker/examples/osis/example.sh diff --git a/core/worker/examples/osis_config.toml b/_archive/core/worker/examples/osis_config.toml similarity index 100% rename from core/worker/examples/osis_config.toml rename to _archive/core/worker/examples/osis_config.toml diff --git a/core/worker/examples/osis_worker_demo.rs b/_archive/core/worker/examples/osis_worker_demo.rs similarity index 100% rename from core/worker/examples/osis_worker_demo.rs rename to _archive/core/worker/examples/osis_worker_demo.rs diff --git a/core/worker/examples/system/config.toml b/_archive/core/worker/examples/system/config.toml similarity index 100% rename from core/worker/examples/system/config.toml rename to _archive/core/worker/examples/system/config.toml diff --git a/core/worker/examples/system/example.sh b/_archive/core/worker/examples/system/example.sh similarity index 100% rename from core/worker/examples/system/example.sh rename to _archive/core/worker/examples/system/example.sh diff --git a/core/worker/examples/system_config.toml b/_archive/core/worker/examples/system_config.toml similarity index 100% rename from core/worker/examples/system_config.toml rename to _archive/core/worker/examples/system_config.toml diff --git a/core/worker/examples/system_worker_demo.rs b/_archive/core/worker/examples/system_worker_demo.rs similarity index 100% rename from core/worker/examples/system_worker_demo.rs rename to _archive/core/worker/examples/system_worker_demo.rs diff --git a/core/worker/examples/trait_based_worker_demo.rs b/_archive/core/worker/examples/trait_based_worker_demo.rs similarity index 100% rename from core/worker/examples/trait_based_worker_demo.rs rename to _archive/core/worker/examples/trait_based_worker_demo.rs diff --git a/core/supervisor/Cargo.toml b/core/supervisor/Cargo.toml index 5c6b864..8b23fb2 100644 --- a/core/supervisor/Cargo.toml +++ b/core/supervisor/Cargo.toml @@ -3,22 +3,6 @@ name = "hero_supervisor" version = "0.1.0" edition = "2021" -[[bin]] -name = "supervisor" -path = "cmd/supervisor.rs" - -[[bin]] -name = "hive-supervisor" -path = "cmd/hive_supervisor.rs" - -[[bin]] -name = "hive-supervisor-tui" -path = "cmd/hive_supervisor_tui.rs" - -[[bin]] -name = "hive-supervisor-tui-safe" -path = "cmd/hive_supervisor_tui_safe.rs" - [dependencies] clap = { version = "4.4", features = ["derive"] } env_logger = "0.10" diff --git a/core/worker/Cargo.toml b/core/worker/Cargo.toml index e304d04..c9dc2e5 100644 --- a/core/worker/Cargo.toml +++ b/core/worker/Cargo.toml @@ -7,30 +7,6 @@ edition = "2021" name = "rhailib_worker" # Can be different from package name, or same path = "src/lib.rs" -[[bin]] -name = "worker" -path = "cmd/worker.rs" - -[[bin]] -name = "osis" -path = "cmd/osis.rs" - -[[bin]] -name = "system" -path = "cmd/system.rs" - -[[example]] -name = "trait_based_worker_demo" -path = "examples/trait_based_worker_demo.rs" - -[[example]] -name = "osis_worker_demo" -path = "examples/osis_worker_demo.rs" - -[[example]] -name = "system_worker_demo" -path = "examples/system_worker_demo.rs" - # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]