Skip to content

Releases: neonmoe/minreq

2.13.2

29 Jan 00:41
Compare
Choose a tag to compare

"Cleaned up" some code in 2.13.1, thinking that minreq doesn't have a build.rs, but it does, and the code could actually be enabled via an environment variable. Reverted that bit here.

Fixed

  • Reverted a part of 2.13.1, accidentally removed some code that wasn't actually dead code.

2.13.1

29 Jan 00:27
Compare
Choose a tag to compare

Only affects builds using the https-bundled-probe feature.

This is a tiny update to the copied-over native-tls cert loading code when using openssl-probe without native-tls, to avoid an apparently unsafe function in openssl-probe.

Fixed

  • Usage of an openssl-probe function that's deprecated due to safety issues. See rustsec/advisory-db#2209 for further info.

2.13.0

04 Dec 21:08
Compare
Choose a tag to compare

Small fixups all around, mostly code size improvements. In case your application depends specifically on webpki-roots certs being used, but still uses the https-rustls-probe feature, I'm afraid you'll have to stay on 2.12. I hope this isn't the case for anyone.

Also: periodic MSRV CI did its job! It took me 5 days to notice the notification, but still a big improvement in issue-appearance-to-fix-latency.

Changed

  • The https-rustls-probe feature no longer brings in the webpki-roots and rustls-webpki crates. Thanks for the report, @polarathene! (#111)

Fixed

  • Cleaned up an unnecessary format!() in Connection::connect. Thanks for the PR, @melotic! (#112)
  • Fixed some msrv and lint issues introduced by libc and clippy updates respectively.

2.12.0

16 Jul 16:01
Compare
Choose a tag to compare

A new convenience function, Request::with_headers! And in maintenance news, I added a schedule for the msrv job, so hopefully I'll notice it failing when it starts failing rather than on every new pull request.

Added

  • Request::with_headers, to allow passing in many headers at a time. Thanks for the idea and PR, @rawhuul! (#110)

2.11.2

26 Apr 19:27
Compare
Choose a tag to compare

Just a bump for a dev dependency. Unless your build process benefits from this, probably not too relevant.

Fixed

  • The dev dependency tiny_http's version up to 0.12. Thanks for the PR, @davide125! (#107)

2.11.1

02 Apr 21:15
Compare
Choose a tag to compare

Bugfixes and performance upgrades this time.

Fixed

  • Unnecessary buffering causing performance problems. Thanks for the PRs, @mrkline! (#102, #103)
  • Connections failing if the first resolved address fails to connect (even if there's more to try). Thanks for the PR, @darosior! (#106)

2.11.0

17 Oct 17:24
Compare
Choose a tag to compare

Nothing new in this version for those who don't care about the MSRV. For those who do, sorry, the crate no longer compiles out-of-the box with the newest versions of dependencies that Cargo resolves, so you need to pin some version in your Cargo.lock a bit lower. Instructions in the readme!

Changed

  • Removed upper bounds on the serde_json, log and chrono dependencies (dev-dependency in the case of chrono). If you were depending on minreq compiling with the MSRV compiler without any issues, check out the MSRV section in the readme, it's been updated with additional instructions. Thanks for the report, @RCasatta! (#99)

2.10.0

05 Sep 20:27
Compare
Choose a tag to compare

Three years into this major release, and I'm still finding new and exciting features of HTTP! Turns out, requests should not contain fragments, and the semantics about replacing fragments from the original url with the redirects' fragment are only relevant if the user agent wants to see the "final version" of the URL. Thus, minreq no longer sends the fragment in the request, and now responses have an url field.

Fixed

  • Fragment handling, once again. Turns out you're not supposed to include fragments in the request. This may break usage with servers that are written with the wrong assumptions. Thanks for the report, @rawhuul! (#100)

Added

  • Response::url and ResponseLazy::url fields, to contain the final URL after redirects and fragment replacement semantics.

2.9.1

28 Aug 14:22
Compare
Choose a tag to compare

Changed

  • Loosened the rustls version requirement from 0.21.6 to 0.21.1.

2.9.0

24 Aug 16:31
Compare
Choose a tag to compare

Dependency cleanup release, including a few changes to examples and tests to get rid of serde_derive.

Changed

  • From webpki to rustls-webpki. Thanks for the heads-up about webpki not being maintained, @RCasatta! (#98)
  • Updated rustls and webpki-roots to their most recent versions.
  • Maximum versions for the following dependencies to keep minreq compiling on Rust 1.48:
    • serde_json (>=1.0.0, <1.0.101)
    • log (>=0.4.0, <0.4.19)
    • chrono (dev-dependency, >=0.4.0, <0.4.24)

Fixed

  • Errors when using an IP address as the host with HTTPS (tested with https://8.8.8.8). (#34)