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

minreq_http: re-export minreq dependency #102

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

darosior
Copy link
Contributor

@darosior darosior commented Jun 28, 2023

So that downstream users can match against error variants.

I had to add minreq as a direct dependency to my project. Since we are using minreq::Error in one variant of minreq_http::Error, better let users directly access it as minreq_http::minreq::Error?

@apoelstra
Copy link
Owner

I think it'd be a bit more idiomatic to add a

#[cfg(feature = "minreq")]
pub extern crate minreq;

to src/lib.rs. You can see how this is already done for base64.

@darosior
Copy link
Contributor Author

Done.

@apoelstra
Copy link
Owner

Can you do pub extern crate rather than pub use so it's obvious that this is a crate re-export?

So that downstream users can match against error variants.
@darosior
Copy link
Contributor Author

Sure, done.

Copy link
Owner

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 6a5a578

@apoelstra apoelstra merged commit b0e80dc into apoelstra:master Jun 28, 2023
9 checks passed
apoelstra added a commit that referenced this pull request Jun 29, 2023
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants