File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ wasm-client = [
5252 " getrandom/js" ,
5353 " web-sys" ,
5454]
55+ native-client = [" http-client/native_client" , " default-client" ]
5556default-client = []
5657middleware-logger = []
5758# requires web-sys for TextDecoder on wasm
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ cfg_if! {
1717 use http_client:: h1:: H1Client as DefaultClient ;
1818 } else if #[ cfg( feature = "hyper-client" ) ] {
1919 use http_client:: hyper:: HyperClient as DefaultClient ;
20+ } else if #[ cfg( all( feature = "native-client" , target_arch = "wasm32" ) ) ] {
21+ use http_client:: wasm:: WasmClient as DefaultClient ;
22+ } else if #[ cfg( all( feature = "native-client" , not( target_arch = "wasm32" ) ) ) ] {
23+ use http_client:: isahc:: IsahcClient as DefaultClient ;
2024 }
2125}
2226cfg_if ! {
You can’t perform that action at this time.
0 commit comments