Use hero-job crate instead of runner_rust for job types

This commit is contained in:
Timur Gordon
2025-11-04 13:44:01 +01:00
parent 49d36485d0
commit 3356a03895
26 changed files with 3410 additions and 4003 deletions

View File

@@ -26,7 +26,8 @@ indexmap = "2.0"
jsonrpsee = { version = "0.24", features = ["http-client", "macros"] }
tokio = { version = "1.0", features = ["full"] }
hero-supervisor = { path = "../.." }
runner_rust = { git = "https://git.ourworld.tf/herocode/runner_rust.git", branch = "main" }
hero-job = { path = "../../../job/rust" }
# hero-job = { git = "https://git.ourworld.tf/herocode/job.git", subdirectory = "rust" }
env_logger = "0.11"
# WASM-specific dependencies

View File

@@ -158,9 +158,9 @@ pub struct JobStartResponse {
pub status: String,
}
// Re-export Job types from runner_rust crate (native only)
// Re-export Job types from hero-job crate (native only)
#[cfg(not(target_arch = "wasm32"))]
pub use runner_rust::{Job, JobStatus, JobError, JobBuilder, Client, ClientBuilder};
pub use hero_job::{Job, JobStatus, JobError, JobBuilder, JobSignature, Client, ClientBuilder};
// WASM-compatible Job types (simplified versions)
#[cfg(target_arch = "wasm32")]