diff --git a/Cargo.toml b/Cargo.toml index 48ecbfd..4ff04e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,8 @@ edition = "2018" [features] # when the default feature set is updated, verify that the `--features` flags in # `.github/workflows/ci.yaml` are updated accordingly -default = ["native-client", "middleware-logger", "encoding"] -h1-client = ["wasm-client", "http-client/h1_client"] +default = ["h1-client", "middleware-logger", "encoding"] +h1-client = ["http-client/h1_client"] native-client = ["curl-client", "wasm-client", "http-client/native_client"] curl-client = ["http-client/curl_client"] wasm-client = ["http-client/wasm_client"] diff --git a/src/lib.rs b/src/lib.rs index 1e46c90..9585ee3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -63,8 +63,8 @@ //! //! # Features //! The following features are available. -//! - __`h1-client`:__ use `async-h1` on the server and `window.fetch` in the browser. -//! - __`native-client` (default):__ use `curl` on the server and `window.fetch` in the browser. +//! - __`h1-client` (default):__ use `async-h1` (non-wasm). +//! - __`native-client`:__ use `curl-client` on the server and `window.fetch` in the browser. //! - __`middleware-logger` (default):__ enables logging requests and responses using a middleware. //! - __`curl-client`:__ use `curl` (through `isahc`) as the HTTP backend. //! - __`wasm-client`:__ use `window.fetch` as the HTTP backend.