From 13fa6f644de32efc043c0dd3b5097244cc0c1ed9 Mon Sep 17 00:00:00 2001 From: QuantumExplorer Date: Mon, 30 Mar 2026 01:49:33 +0700 Subject: [PATCH] fix(rpc-json): disable key-wallet default features rpc-json only needs key-wallet for types and serde. With default-features, it pulls in the manager module (tokio) which inflates WASM builds that depend on dashcore-rpc transitively. Add default-features = false with explicit getrandom + serde features. Co-Authored-By: Claude Opus 4.6 (1M context) --- rpc-json/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc-json/Cargo.toml b/rpc-json/Cargo.toml index 2794ff3cf..ca35aa161 100644 --- a/rpc-json/Cargo.toml +++ b/rpc-json/Cargo.toml @@ -25,7 +25,7 @@ serde_with = "2.1.0" serde_repr = "0.1" hex = { version="0.4", features=["serde"]} -key-wallet = { path = "../key-wallet", features=["serde"] } +key-wallet = { path = "../key-wallet", default-features = false, features=["serde", "getrandom"] } dashcore = { path = "../dash", features=["secp-recovery", "rand-std", "signer", "serde"] } bincode = { version = "2.0.1", features = ["serde"] }