2.0.0-alpha.6
·
80 commits
to main
since this release
This is an alpha release in preparation of 2.0.0, so you can start using Surf with stable futures. The aim is for this to be the last 2.0 alpha release.
As of this release, surf::get(), surf::post(), etc, now use a globally shared client internally, allowing for easier access to optimizations such as connection pooling.
Removals
- Removed
native-clientfeature flag in favor of directcurl-clientdefault.
Changes
wasm-clientfeature is no longer automatic and must be set via cargo features.- All client feature flags are now mutually exclusive.
curl-clientis the default. surf::method_name"one-off" methods now use a shared client internally if the client iscurl-client. (Default)Client::with_http_client()is now generic for anyHttpClientrather than taking anArc<dyn HttpClient>.- (The http client is still stored internally as a dynamic pointer.)
HttpClienthas been upgraded to 6.0, removingClonefrom the built in client backends.
Fixes
- Surf can once again build with
--no-default-features(and no client). - Doc updates
Internal
wasm-clientnow has proper headless browser CI testing.