Repository navigation
Releases
v0.1.21
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>, andhyper_util::rt::tracing::MkSpanExecutor<E, F>executors. (#323)
Fixes
- Fix
client::legacy::Clientso that it properly validates CONNECT responses. (#315) - Fix
client::legacy::Clientto cancel the idle interval once its pool empties. (#292) - Fix
client::legacy::Clientto properly handle IPv6 addresses when using a SOCKS proxy. (#302) - Fix
client::pool::cacheto preserve readiness with clones. (#297) - Fix
client::pool::cacheto wake its waiters in FIFO order. (#298) - Fix
client::pool::singleton::Singletonto properly handle cancellation. (#299) - Fix
client::pool::singleton::Singletonto share errors with all waiters. (#296) - Fix
client::proxy::matcherhandling for IP wildcards. (#309) - The
tokio/netfeature is narrowed to theclient-legacyfeature flag, from theclientfeature 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
Uriconstruction 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_sizeandhttp2_max_concurrent_streamsmethods by @barjin in #274 - Move
tokio/netfeature toclient-legacyby @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.36by @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
TokioExecutorto 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::errorsubmodule by @cratelyn in #325 - doc(client/pool): add
broken_intra_doc_linksallowance by @cratelyn in #326 - v0.1.21 by @cratelyn in #328
New Contributors
- @erickt made their first contribution in #266
- @alexanderkjall made their first contribution in #271
- @barjin made their first contribution in #274
- @r58Playz made their first contribution in #276
- @op made their first contribution in #277
- @aajtodd made their first contribution in #298
- @kayabaNerve made their first contribution in #305
- @FrankTaylorLieder made their first contribution in #302
- @monosans made their first contribution in #307
- @subotac made their first contribution in #309
- @lrowe made their first contribution in #292
- @aashish-thapa made their first contribution in #315
- @FlorianUekermann made their first contribution in #303
Full Changelog: v0.1.20...v0.1.21
v0.1.20
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-configurationto 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
See the related blog post.
Highlights
- Add
client::poolmodule for composable pools. Enable with theclient-poolfeature. - Add
pool::singletonfor sharing a single cloneable connection. - Add
pool::cachefor caching a list of connections. - Add
pool::negotiatefor combining two pools with upgrade and fallback negotiation. - Add
pool::mapfor customizable mapping of keys and connections.
What's Changed
- chore(ci): check docs links with full features by @seanmonstar in #245
- minor SOCKS proxying docs fixes by @JPDye in #246
- feat(pool): add a Singleton pool type by @seanmonstar in #226
- feat(pool): add a Cache pooling service by @seanmonstar in #227
- feat(pool): add a Negotiate pooling service by @seanmonstar in #228
- feat(pool): add a Map pool service type by @seanmonstar in #247
- docs(pool): add module level docs for pools by @seanmonstar in #248
- v0.1.19 by @seanmonstar in #249
Full Changelog: v0.1.18...v0.1.19
v0.1.18
Highlights
- Fix
rt::TokioTimerto support Tokio's paused time. - Fix
client::proxy::match::Matcherto parse auth without passwords.
What's Changed
- chore(ci): add a github actions workflow to preview rustdocs of a PR by @seanmonstar in #229
- chore(ci): fix rustdoc preview job by @seanmonstar in #231
- chore(ci): fix rustdoc preview workflow typo by @seanmonstar in #232
- docs: replace auto_doc_cfg by @seanmonstar in #237
- perf(client): avoid redundant memory copies of Host header by @0x676e67 in #235
- chore: bump windows-registry to 0.6 by @Vaiz in #236
- fix: fix msrv on windows and macos target by @tottoto in #239
- chore(ci): update to actions/checkout@v5 by @tottoto in #240
- fix: allow proxy env URIs without password by @karanabe in #241
- fix: support fake time by @arielb1 in #238
New Contributors
- @Vaiz made their first contribution in #236
- @karanabe made their first contribution in #241
- @arielb1 made their first contribution in #238
Thanks
Full Changelog: v0.1.17...v0.1.18
v0.1.17
Highlights
- Fix
legacy::Clientto allow absolute-form URIs whenConnected::proxy(true)is passed and the scheme ishttps.
What's Changed
- chore(test): remove some miri exception config by @tottoto in #222
- refactor(connect): safely convert
socket2::Socketto TokioTcpSocketby @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
Highlights
- Add
impl Cloneforproxy::Tunnelservice. - Fix
proxy::Matcherto detect SOCKS4 schemes. - Fix
legacy::Clientpool idle checker to trigger less aggresively, saving CPU.
What's Changed
- feat(client): implement Clone for Tunnel by @tottoto in #212
- fix(client): don't spawn pool idle interval if timeout is 0 by @seanmonstar in #215
- refactor(client): simplify pool idle task with async/await by @seanmonstar in #216
- feat: allow socket2 0.6 by @tottoto in #213
- fix(client): cap pool idle interval to a minimum by @seanmonstar in #217
- tests(client): fix flaky pool test by @seanmonstar in #220
- fix(proxy): Fix SOCKS4 proxy protocol parsing and matching by @0x676e67 in #219
- Move tokio/net feature to client to make TokioIo can used in wasm by @tiannian in #218
- Prepare v0.1.16 by @seanmonstar in #221
New Contributors
Full Changelog: v0.1.15...v0.1.16
v0.1.15
tl;dr
- Add header casing options to
auto::Builder. - Fix
proxy::Socksv5to check for enough bytes before parsing ipv6 responses. - Fix including
client-proxyin thefullfeature set.
What's Changed
- ci: pin tracing-core in msrv job by @seanmonstar in #203
- Cleanup deadcode in
clientby @howardjohn in #202 - refactor(socks): deduplicate and reuse shared logic by @0x676e67 in #205
- refactor: include client-proxy in full feature by @seanmonstar in #206
- refactor(client): remove old body delay_eof code by @seanmonstar in #208
- feat(builder): support header case methods by @AndreyErmilov in #207
- fix(socks): check for right length before parsing ProxyRes by @seanmonstar in #210
- Prepare v0.1.15 by @seanmonstar in #211
New Contributors
- @AndreyErmilov made their first contribution in #207
Full Changelog: v0.1.14...v0.1.15
v0.1.14
tl;dr
- Fix
HttpConnectorto defer address family order to resolver sort order. - Fix
proxy::Matcherto find HTTPS system proxies on Windows.
What's Changed
- Update to
windows-registry0.5 by @kennykerr in #198 - style(client): Fix some clippy lints by @0x676e67 in #199
- fix(client): prefer resolver order always by @seanmonstar in #200
- fix(proxy): set https system proxy on windows by @seanmonstar in #201
New Contributors
- @kennykerr made their first contribution in #198
Full Changelog: v0.1.13...v0.1.14
v0.1.13
tl;dr
- Fix
HttpConnectorto always prefer IPv6 addresses first, if happy eyeballs is enabled. - Fix
legacy::Clientto return better errors if available on the connection.
What's Changed
- fix(client): prefer IPv6 addresses before IPv4 even if resolver ordered differently by @seanmonstar in #194
- chore(test): make proxy test robust wrt IPv4/v6 by @Fabian-Gruenbichler in #195
- refactor: limit dependency futures-util to tests and client-legacy by @hanna-kruppe in #192
- Fix some clippy lints by @jplatte in #196
- ConnectErrors improvements by @seanmonstar in #197
- fix(client): race in connection errors propagation by @dare3path in #184
New Contributors
- @Fabian-Gruenbichler made their first contribution in #195
- @hanna-kruppe made their first contribution in #192
- @jplatte made their first contribution in #196
- @dare3path made their first contribution in #184
Full Changelog: v0.1.12...v0.1.13
v0.1.12
tl;dr
- Add
client::legacy::proxy::Tunnelconnector that wraps another connector with HTTP tunneling. - Add
client::legacy::proxy::{SocksV4, SocksV5}connectors that wraps another connector with SOCKS. - Add
client::proxy::matcher::Matchertype that can use environment variables to match proxy rules. - Add
server::graceful::Watchertype 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_useattributes onConnectionfutures. - Fix tracing span in GAI resolver that can cause panics.
What's Changed
- fix(server): Enforce
serve_connectionresult usage by @Sol-Ell in #178 - fix(tracing): revert #134 - tracing span removal in legacy DNS
GaiResolverby @arpadav in #179 - docs(service): document service utilities by @cratelyn in #180
- refactor: replace manual implementations of
ReadBufCursormethods 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::Tunnellegacy 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
- @Sol-Ell made their first contribution in #178
- @arpadav made their first contribution in #179
- @paolobarbolini made their first contribution in #181
- @sulami made their first contribution in #186
- @JPDye made their first contribution in #187
Full Changelog: v0.1.11...v0.1.12