- Simplified RunnerConfig to just name, command, and optional env - Removed RunnerType and ProcessManagerType enums - Removed db_path, redis_url, binary_path from config - Made runner name also serve as queue name (no separate queue param) - Added secret-based authentication to all runner management methods - Created comprehensive osiris_openrpc example - Archived old examples to _archive/ - Updated client API to match simplified supervisor interface
		
			
				
	
	
		
			79 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "hero-supervisor-openrpc-client"
 | 
						|
version = "0.1.0"
 | 
						|
edition = "2021"
 | 
						|
description = "OpenRPC client for Hero Supervisor"
 | 
						|
license = "MIT OR Apache-2.0"
 | 
						|
 | 
						|
[lib]
 | 
						|
crate-type = ["cdylib", "rlib"]
 | 
						|
 | 
						|
[features]
 | 
						|
default = []
 | 
						|
 | 
						|
[dependencies]
 | 
						|
# Common dependencies for both native and WASM
 | 
						|
serde = { version = "1.0", features = ["derive"] }
 | 
						|
serde_json = "1.0"
 | 
						|
thiserror = "1.0"
 | 
						|
log = "0.4"
 | 
						|
uuid = { version = "1.0", features = ["v4", "serde"] }
 | 
						|
# Collections (common)
 | 
						|
indexmap = "2.0"
 | 
						|
 | 
						|
# Native JSON-RPC client (not WASM compatible)
 | 
						|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 | 
						|
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" }
 | 
						|
env_logger = "0.11"
 | 
						|
 | 
						|
# WASM-specific dependencies
 | 
						|
[target.'cfg(target_arch = "wasm32")'.dependencies]
 | 
						|
wasm-bindgen = "0.2"
 | 
						|
wasm-bindgen-futures = "0.4"
 | 
						|
js-sys = "0.3"
 | 
						|
web-sys = { version = "0.3", features = [
 | 
						|
  "console",
 | 
						|
  "Request",
 | 
						|
  "RequestInit",
 | 
						|
  "RequestMode",
 | 
						|
  "Response",
 | 
						|
  "Headers",
 | 
						|
  "Window",
 | 
						|
] }
 | 
						|
console_log = "1.0"
 | 
						|
getrandom = { version = "0.2", features = ["js"] }
 | 
						|
 | 
						|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
 | 
						|
wasm-bindgen-test = "0.3"
 | 
						|
 | 
						|
# UUID for job IDs (native)
 | 
						|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.uuid]
 | 
						|
version = "1.0"
 | 
						|
features = ["v4", "serde"]
 | 
						|
 | 
						|
# Time handling (native)
 | 
						|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.chrono]
 | 
						|
version = "0.4"
 | 
						|
features = ["serde"]
 | 
						|
 | 
						|
# WASM-compatible dependencies (already defined above)
 | 
						|
 | 
						|
[target.'cfg(target_arch = "wasm32")'.dependencies.chrono]
 | 
						|
version = "0.4"
 | 
						|
features = ["serde", "wasmbind"]
 | 
						|
 | 
						|
[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
 | 
						|
version = "1.0"
 | 
						|
features = ["v4", "serde", "js"]
 | 
						|
 | 
						|
# Collections (common)
 | 
						|
indexmap = "2.0"
 | 
						|
 | 
						|
 | 
						|
[dev-dependencies]
 | 
						|
# Testing utilities
 | 
						|
tokio-test = "0.4"
 |