Refactor job client into separate crate

- Moved client code from rust/src/client.rs to rust/client/ subdirectory
- Created separate hero-job-client crate for better modularity
- Updated Cargo.toml to include client as workspace member
- Client can now be used independently of the main hero-job crate
This commit is contained in:
Timur Gordon
2025-11-04 17:09:37 +01:00
parent e3d8147eaa
commit 7b9420f3e6
6 changed files with 1262 additions and 685 deletions

18
rust/client/Cargo.toml Normal file
View File

@@ -0,0 +1,18 @@
[package]
name = "hero-job-client"
version = "0.1.0"
edition = "2021"
description = "Redis client for Hero job management"
[dependencies]
hero-job = { path = ".." }
redis = { version = "0.25", features = ["aio", "tokio-comp"] }
tokio = { version = "1.0", features = ["rt", "time"] }
chrono = { version = "0.4", features = ["serde"] }
serde_json = "1.0"
thiserror = "1.0"
log = "0.4"
[lib]
name = "hero_job_client"
path = "src/lib.rs"