cleanup and refactor

This commit is contained in:
Timur Gordon
2025-11-13 14:41:30 +01:00
parent 4b516d9d7e
commit 2625534152
29 changed files with 2662 additions and 3276 deletions

View File

@@ -13,8 +13,8 @@ path = "src/bin/supervisor.rs"
[dependencies]
# Job types
hero-job = { git = "https://git.ourworld.tf/herocode/job.git" }
hero-job-client = { git = "https://git.ourworld.tf/herocode/job.git" }
hero-job = { path = "../../job/rust" }
hero-job-client = { path = "../../job/rust/client" }
# Async runtime
tokio = { version = "1.0", features = ["full"] }
@@ -23,37 +23,37 @@ tokio = { version = "1.0", features = ["full"] }
async-trait = "0.1"
# Redis client
redis = { version = "0.25", features = ["aio", "tokio-comp"] }
redis = { version = "0.25", features = ["tokio-comp", "connection-manager"] }
# Job module dependencies (now integrated)
uuid = { version = "1.0", features = ["v4"] }
uuid = { version = "1.6", features = ["v4", "serde"] }
# Logging
log = "0.4"
thiserror = "1.0"
chrono = "0.4"
chrono = { version = "0.4", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
env_logger = "0.10"
# CLI argument parsing
clap = { version = "4.0", features = ["derive"] }
clap = { version = "4.4", features = ["derive"] }
toml = "0.8"
# OpenRPC dependencies (now always included)
jsonrpsee = { version = "0.24", features = ["server", "macros"] }
jsonrpsee = { version = "0.26", features = ["server", "macros"] }
anyhow = "1.0"
futures = "0.3"
# CORS support for OpenRPC server
tower-http = { version = "0.5", features = ["cors"] }
tower = "0.4"
tower = "0.5"
hyper = { version = "1.0", features = ["full"] }
hyper-util = { version = "0.1", features = ["tokio"] }
http-body-util = "0.1"
# Mycelium integration (optional)
base64 = { version = "0.22", optional = true }
rand = { version = "0.8", optional = true }
reqwest = { version = "0.12", features = ["json"], optional = true }
# Osiris client for persistent storage
osiris-client = { path = "../../osiris/client" }
[dev-dependencies]
tokio-test = "0.4"
@@ -63,7 +63,6 @@ escargot = "0.5"
[features]
default = ["cli"]
cli = []
mycelium = ["base64", "rand", "reqwest"]
# Examples
[[example]]