Skip to content

Releases

v0.1.21

Choose a tag to compare

@seanmonstar seanmonstar released this 24 Sep 18:01

Additions

  • Add crate-level documentation. (#327)
  • Add client::legacy::Builder::http2_header_table_size() method. (#274)
  • Add client::legacy::Builder::http2_max_concurrent_streams() method. (#274)
  • Add client::legacy::Builder::http2_max_local_error_reset_streams() method. (#277)
  • Add client::legacy::connect::HttpConnector::set_mark() method. (#303)
  • Add rt::tracing::WithSpanExecutor<E>, hyper_util::rt::tracing::CurrentSpanExecutor<E>, and hyper_util::rt::tracing::MkSpanExecutor<E, F> executors. (#323)

Fixes

  • Fix client::legacy::Client so that it properly validates CONNECT responses. (#315)
  • Fix client::legacy::Client to cancel the idle interval once its pool empties. (#292)
  • Fix client::legacy::Client to properly handle IPv6 addresses when using a SOCKS proxy. (#302)
  • Fix client::pool::cache to preserve readiness with clones. (#297)
  • Fix client::pool::cache to wake its waiters in FIFO order. (#298)
  • Fix client::pool::singleton::Singleton to properly handle cancellation. (#299)
  • Fix client::pool::singleton::Singleton to share errors with all waiters. (#296)
  • Fix client::proxy::matcher handling for IP wildcards. (#309)
  • The tokio/net feature is narrowed to the client-legacy feature flag, from the client feature flag. (#276)
  • Various fixes to the client::legacy::Client's SOCKS proxying. (#302) (#307) (#308) (#310)

Changes

This release contains a minor behavioral change for users of the tracing
feature flag to be aware of.

This feature flag was introduced in v0.1.11. When enabled,
rt::TokioExecutor<E> began propagating the currently active tracing::Span
to spawned tasks when hyper::rt::Executor::execute() is called. This caused
issues for some users, due to background tasks keeping a span open for the
duration of a long-lived connection.

This behavior has now been removed from rt::TokioExecutor<E>
(#322) by default. A
collection of executor wrappers have been added to a new rt::tracing
submodule, to provide facilities for instrumenting a client or server's spawned
tasks. See the module-level documentation of rt::tracing for more
information.

To temporarily preserve the previous rt::TokioExecutor<E> span propagation
behavior, enable the rt-tracing-exec-force feature. Note that this feature
flag will be removed in a future release.

This release bumps the minimal supported Rust version (MSRV) from 1.64 to 1.85.

This release bumps the rust edition from 2021 to 2024.

All the people

  • fix: avoid redundant Uri construction for pooled connections by @Vaiz in #265
  • Fix cargo test ... for a variety of features by @erickt in #266
  • ensure that tests work when only server-auto feature is enabled by @alexanderkjall in #271
  • feat: add http2_header_table_size and http2_max_concurrent_streams methods by @barjin in #274
  • Move tokio/net feature to client-legacy by @r58Playz in #276
  • Add http2_max_local_error_reset_streams method to legacy client by @op in #277
  • chore(lib): bump MSRV to 1.85 and set to edition 2024 by @seanmonstar in #281
  • chore(dependencies): bump socket2 to 0.6 by @seanmonstar in #282
  • chore: switch futures_util::pin_mut to standard library api by @tottoto in #284
  • fix(client-pool): wake cache waiters in FIFO order by @aajtodd in #298
  • fix(pool): shared Singleton errors with all waiters by @seanmonstar in #296
  • fix(pool): Singleton shared calls pass baton if one cancels by @seanmonstar in #299
  • fix(pool): preserve Cache readiness with clones by @seanmonstar in #297
  • chore(deps): bump base64 to 0.23 by @paolobarbolini in #304
  • Update to tracing 0.1.36 by @kayabaNerve in #305
  • Handle IPv6 addresses as SOCKS destination by @FrankTaylorLieder in #302
  • refactor: put ipv6 bracket parsing in a single function by @seanmonstar in #306
  • fix(proxy): SOCKS split message parsing fix by @JPDye in #308
  • fix(client): write a single NULL after USERID in SOCKS4 requests by @monosans in #307
  • fix(proxy): stop SOCKS5 optimistic sending deadlock by @JPDye in #310
  • fix(proxy): handle WinINET IP wildcards by @subotac in #309
  • fix(client): cancel idle interval when pool empties by @lrowe in #292
  • chore: remove redundant import by @tottoto in #314
  • chore(ci): update to actions/checkout@v7 by @tottoto in #316
  • chore(ci): simplify msrv check by @tottoto in #317
  • fix(client): parse proxy CONNECT response with httparse by @aashish-thapa in #315
  • feat(rt): change TokioExecutor to not trace, add rt-tracing-exec-force feature by @seanmonstar in #322
  • feat(client): add HttpConnector::set_mark for SO_MARK by @FlorianUekermann in #303
  • feat(rt/tracing): introduce tracing executors by @cratelyn in #323
  • docs: add crate-level documentation by @cratelyn in #327
  • chore(error): remove disabled hyper_util::error submodule by @cratelyn in #325
  • doc(client/pool): add broken_intra_doc_links allowance by @cratelyn in #326
  • v0.1.21 by @cratelyn in #328

New Contributors

Full Changelog: v0.1.20...v0.1.21

v0.1.20

Choose a tag to compare

@seanmonstar seanmonstar released this 02 Feb 14:19

What's Changed

  • fix(matcher): improve domain matching case insensitivity by @chen-hongzhi in #251
  • fix(matcher): improve subdomain matching case insensitivity by @0x676e67 in #252
  • fix(docs): correct malformed reference link in set_interface by @magurotuna in #254
  • chore(ci): update to actions/checkout@v6 by @tottoto in #261
  • chore: remove unused mac imports by @bts in #260
  • bump MSRV to 1.64 by @seanmonstar in #258
  • chore: bump system-configuration to 0.7 by @BugenZhao in #256
  • chore: use standard library api by @tottoto in #263

New Contributors

  • @chen-hongzhi made their first contribution in #251
  • @bts made their first contribution in #260
  • @BugenZhao made their first contribution in #256

Full Changelog: v0.1.19...v0.1.20

v0.1.19

Choose a tag to compare

@seanmonstar seanmonstar released this 03 Dec 13:38

See the related blog post.

Highlights

  • Add client::pool module for composable pools. Enable with the client-pool feature.
  • Add pool::singleton for sharing a single cloneable connection.
  • Add pool::cache for caching a list of connections.
  • Add pool::negotiate for combining two pools with upgrade and fallback negotiation.
  • Add pool::map for customizable mapping of keys and connections.

What's Changed

Full Changelog: v0.1.18...v0.1.19

v0.1.18

Choose a tag to compare

@seanmonstar seanmonstar released this 13 Nov 15:48

Highlights

  • Fix rt::TokioTimer to support Tokio's paused time.
  • Fix client::proxy::match::Matcher to parse auth without passwords.

What's Changed

New Contributors

Thanks

Full Changelog: v0.1.17...v0.1.18

v0.1.17

Choose a tag to compare

@seanmonstar seanmonstar released this 15 Sep 13:18

Highlights

  • Fix legacy::Client to allow absolute-form URIs when Connected::proxy(true) is passed and the scheme is https.

What's Changed

  • chore(test): remove some miri exception config by @tottoto in #222
  • refactor(connect): safely convert socket2::Socket to Tokio TcpSocket by @0x676e67 in #223
  • refactor: set correct cfg on common::{Exec, Lazy, SyncWrapper} by @seanmonstar in #224
  • fix(client): allow absolute-form if is_proxied is set even on HTTPS by @seanmonstar in #225

Full Changelog: v0.1.16...v0.1.17

v0.1.16

Choose a tag to compare

@seanmonstar seanmonstar released this 15 Sep 13:18

Highlights

  • Add impl Clone for proxy::Tunnel service.
  • Fix proxy::Matcher to detect SOCKS4 schemes.
  • Fix legacy::Client pool idle checker to trigger less aggresively, saving CPU.

What's Changed

New Contributors

Full Changelog: v0.1.15...v0.1.16

v0.1.15

Choose a tag to compare

@seanmonstar seanmonstar released this 07 Jul 16:45

tl;dr

  • Add header casing options to auto::Builder.
  • Fix proxy::Socksv5 to check for enough bytes before parsing ipv6 responses.
  • Fix including client-proxy in the full feature set.

What's Changed

New Contributors

Full Changelog: v0.1.14...v0.1.15

v0.1.14

Choose a tag to compare

@seanmonstar seanmonstar released this 07 Jul 16:44

tl;dr

  • Fix HttpConnector to defer address family order to resolver sort order.
  • Fix proxy::Matcher to find HTTPS system proxies on Windows.

What's Changed

New Contributors

Full Changelog: v0.1.13...v0.1.14

v0.1.13

Choose a tag to compare

@seanmonstar seanmonstar released this 27 May 16:26

tl;dr

  • Fix HttpConnector to always prefer IPv6 addresses first, if happy eyeballs is enabled.
  • Fix legacy::Client to return better errors if available on the connection.

What's Changed

New Contributors

Full Changelog: v0.1.12...v0.1.13

v0.1.12

Choose a tag to compare

@seanmonstar seanmonstar released this 19 May 19:22

tl;dr

  • Add client::legacy::proxy::Tunnel connector that wraps another connector with HTTP tunneling.
  • Add client::legacy::proxy::{SocksV4, SocksV5} connectors that wraps another connector with SOCKS.
  • Add client::proxy::matcher::Matcher type that can use environment variables to match proxy rules.
  • Add server::graceful::Watcher type that can be sent to watch a connection in another task.
  • Add GracefulShutdown::count() method to get number of currently watched connections.
  • Fix missing must_use attributes on Connection futures.
  • Fix tracing span in GAI resolver that can cause panics.

What's Changed

  • fix(server): Enforce serve_connection result usage by @Sol-Ell in #178
  • fix(tracing): revert #134 - tracing span removal in legacy DNS GaiResolver by @arpadav in #179
  • docs(service): document service utilities by @cratelyn in #180
  • refactor: replace manual implementations of ReadBufCursor methods by @paolobarbolini in #181
  • feat(server): add graceful::Watcher type by @seanmonstar in #182
  • feat(server): implement default for server auto connection builder by @tottoto in #183
  • feat(client): add proxy::Tunnel legacy util by @seanmonstar in #140
  • docs(client): Include .pool_timer() in the Client builder example by @sulami in #186
  • feat(server): add method to get number of watching connection by @tottoto in #185
  • Add a proxy Matcher by @seanmonstar in #171
  • feat(client): add macOS system proxy support for Matcher by @seanmonstar in #189
  • feat(client): add windows system proxies for Matcher by @seanmonstar in #190
  • feat(client): add proxy::SocksV4 and proxy::SocksV5 connectors by @JPDye in #187

New Contributors

Full Changelog: v0.1.11...v0.1.12

⌂ Proxy