Use hero-job crate instead of runner_rust for job types
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user