Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge #104: Release 0.16.0
Browse files Browse the repository at this point in the history
5b34d4a Bump version to 16.0 (Antoine Poinsot)
223d556 simple_http: gate FromStr usage behind 'proxy' feature (Antoine Poinsot)
d57ee9d minreq_http: make Error enum #[non_exhaustive] (Antoine Poinsot)

Pull request description:

  To make #103 and #102 available downstream. Note i've successfully tested #103 in my software (detect and retry requests to bitcoind upon hitting a transient workqueue exceeded error).

  Updating the Error enum for minreq_http is an API break, so bump the major version.

ACKs for top commit:
  tcharding:
    ACK 5b34d4a
  apoelstra:
    ACK 5b34d4a

Tree-SHA512: f19641b39da346d61cf4f4f3c1f47bf39dd81394c26f88043ae92d30124583e74f2d61b465ef42c157e6a93fc757fc6d396aeb716c7d8347a0b48bed5a9924d3
  • Loading branch information
apoelstra committed Jun 29, 2023
2 parents 090dc0f + 5b34d4a commit b8c3f0d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 0.16.0 - 2023-06-29

* Re-export the `minreq` crate when the feature is set
[#102](https://github.com/apoelstra/rust-jsonrpc/pull/102)
* Don't treat HTTP errors with no JSON as JSON parsing errors
[#103](https://github.com/apoelstra/rust-jsonrpc/pull/103)

# 0.15.0 - 2023-05-28

* Add new transport that uses `minreq`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jsonrpc"
version = "0.15.0"
version = "0.16.0"
authors = ["Andrew Poelstra <[email protected]>"]
license = "CC0-1.0"
homepage = "https://github.com/apoelstra/rust-jsonrpc/"
Expand Down
1 change: 1 addition & 0 deletions src/http/minreq_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ impl error::Error for HttpError {}
/// Error that can happen when sending requests. In case of error, a JSON error is returned if the
/// body of the response could be parsed as such. Otherwise, an HTTP error is returned containing
/// the status code and the raw body.
#[non_exhaustive]
#[derive(Debug)]
pub enum Error {
/// JSON parsing error.
Expand Down
1 change: 1 addition & 0 deletions src/http/simple_http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ mod impls {
#[cfg(test)]
mod tests {
use std::net;
#[cfg(feature = "proxy")]
use std::str::FromStr;

use super::*;
Expand Down

0 comments on commit b8c3f0d

Please sign in to comment.