[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" serde-wasm-bindgen = "0.6" web-sys = { version = "0.3", features = [ "console", "Request", "RequestInit", "RequestMode", "Response", "Headers", "Window", ] } console_log = "1.0" getrandom = { version = "0.2", features = ["js"] } # Crypto for signing secp256k1 = { version = "0.29", features = ["rand", "global-context"] } sha2 = "0.10" hex = "0.4" [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"