From: 志宇 Date: Wed, 21 Jan 2026 09:18:30 +0000 (+0800) Subject: chore(example_cli,esplora): Fix no-std compilation X-Git-Url: http://internal-gitweb-vhost/%22https:/parse/scripts/database/-script/struct.SegwitCodeLengthError.html?a=commitdiff_plain;h=546b07e23b6219693976d7a4eeaacdc7c304f04a;p=bdk chore(example_cli,esplora): Fix no-std compilation `serde_json` requires either `std` or `alloc` feature enabled. --- diff --git a/crates/esplora/Cargo.toml b/crates/esplora/Cargo.toml index a052916a..b47a351e 100644 --- a/crates/esplora/Cargo.toml +++ b/crates/esplora/Cargo.toml @@ -20,6 +20,7 @@ bdk_core = { path = "../core", version = "0.6.1", default-features = false } esplora-client = { version = "0.12.1", default-features = false } async-trait = { version = "0.1.66", optional = true } futures = { version = "0.3.26", optional = true } +serde_json = { version = "1.0", features = ["alloc"] } [dev-dependencies] esplora-client = { version = "0.12.0" } diff --git a/examples/example_cli/Cargo.toml b/examples/example_cli/Cargo.toml index 0a467db8..7c962928 100644 --- a/examples/example_cli/Cargo.toml +++ b/examples/example_cli/Cargo.toml @@ -15,4 +15,4 @@ anyhow = "1" clap = { version = "4.5.17", features = ["derive", "env"] } rand = "0.8" serde = { version = "1", features = ["derive"] } -serde_json = "1.0" +serde_json = { version = "1.0", features = ["alloc"] }