From 905bf9b8c20489ff7c921f02447033578f31f2e4 Mon Sep 17 00:00:00 2001 From: Christian Lewe Date: Mon, 7 Oct 2024 18:27:43 +0200 Subject: [PATCH] chore: Remove serde dependency rust-elements has the default feature "json-contract" which depends on serde_json. We don't need this feature in rust-simplicity. --- Cargo-recent.lock | 31 ------------------------------- Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/Cargo-recent.lock b/Cargo-recent.lock index c1f18104..7e0560e7 100644 --- a/Cargo-recent.lock +++ b/Cargo-recent.lock @@ -127,7 +127,6 @@ dependencies = [ "bitcoin", "secp256k1-zkp", "serde", - "serde_json", ] [[package]] @@ -175,12 +174,6 @@ dependencies = [ "rustc_version", ] -[[package]] -name = "itoa" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" - [[package]] name = "js-sys" version = "0.3.70" @@ -208,12 +201,6 @@ version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" -[[package]] -name = "memchr" -version = "2.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" - [[package]] name = "memmap2" version = "0.9.5" @@ -320,12 +307,6 @@ dependencies = [ "semver", ] -[[package]] -name = "ryu" -version = "1.0.18" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" - [[package]] name = "santiago" version = "1.3.1" @@ -405,18 +386,6 @@ dependencies = [ "syn", ] -[[package]] -name = "serde_json" -version = "1.0.128" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" -dependencies = [ - "itoa", - "memchr", - "ryu", - "serde", -] - [[package]] name = "simpcli" version = "0.3.0" diff --git a/Cargo.toml b/Cargo.toml index 0b137c9d..f3a2d0c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ path = "src/lib.rs" bitcoin = { version = "0.32.0", optional = true } bitcoin-miniscript = { package = "miniscript", version = "12.0.0" } byteorder = "1.3" -elements = { version = "0.25.0", optional = true } +elements = { version = "0.25.0", optional = true, default-features = false } hashes = { package = "bitcoin_hashes", version = "0.14" } hex = { package = "hex-conservative", version = "0.1.1" } santiago = "1.3"