Skip to content

Commit

Permalink
Use minreq_http feature of jsonrpc
Browse files Browse the repository at this point in the history
Recently in `jsonrpc` we added an HTTP client that uses `minreq`. Since
we now use a version of `jsonrpc` with this feature we can now use
`minreq` here.
  • Loading branch information
tcharding committed May 13, 2024
1 parent 51a7613 commit d066a48
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ source = "registry+https:/rust-lang/crates.io-index"
checksum = "3662a38d341d77efecb73caf01420cfa5aa63c0253fd7bc05289ef9f6616e1bf"
dependencies = [
"base64",
"minreq",
"serde",
"serde_json",
]
Expand Down Expand Up @@ -251,6 +252,17 @@ version = "0.4.18"
source = "registry+https:/rust-lang/crates.io-index"
checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de"

[[package]]
name = "minreq"
version = "2.11.2"
source = "registry+https:/rust-lang/crates.io-index"
checksum = "6fdef521c74c2884a4f3570bcdb6d2a77b3c533feb6b27ac2ae72673cc221c64"
dependencies = [
"log",
"serde",
"serde_json",
]

[[package]]
name = "ppv-lite86"
version = "0.2.17"
Expand Down
12 changes: 12 additions & 0 deletions Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ source = "registry+https:/rust-lang/crates.io-index"
checksum = "3662a38d341d77efecb73caf01420cfa5aa63c0253fd7bc05289ef9f6616e1bf"
dependencies = [
"base64",
"minreq",
"serde",
"serde_json",
]
Expand Down Expand Up @@ -251,6 +252,17 @@ version = "0.4.18"
source = "registry+https:/rust-lang/crates.io-index"
checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de"

[[package]]
name = "minreq"
version = "2.11.2"
source = "registry+https:/rust-lang/crates.io-index"
checksum = "6fdef521c74c2884a4f3570bcdb6d2a77b3c533feb6b27ac2ae72673cc221c64"
dependencies = [
"log",
"serde",
"serde_json",
]

[[package]]
name = "ppv-lite86"
version = "0.2.17"
Expand Down
2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ path = "src/lib.rs"
bitcoincore-rpc-json = { version = "0.18.0", path = "../json" }

log = "0.4.5"
jsonrpc = { version = "0.18.0", features = [] }
jsonrpc = { version = "0.18.0", features = ["minreq_http"] }

# Used for deserialization of JSON.
serde = "1"
Expand Down

0 comments on commit d066a48

Please sign in to comment.