|
1 | 1 | [package]
|
2 |
| -authors = [ |
3 |
| - "Yoshua Wuyts <[email protected]>", |
4 |
| - "dignifiedquire <[email protected]>", |
5 |
| - "Jeremiah Senkpiel <[email protected]>", |
6 |
| -] |
7 |
| -categories = ["asynchronous", "web-programming", "web-programming::http-client", "web-programming::websocket"] |
8 |
| -description = "Types and traits for http clients." |
| 2 | +name = "http-client" |
| 3 | +version = "6.2.0" |
| 4 | +license = "MIT OR Apache-2.0" |
| 5 | +repository = "https://github.com/http-rs/http-client" |
9 | 6 | documentation = "https://docs.rs/http-client"
|
10 |
| -edition = "2018" |
| 7 | +description = "Types and traits for http clients." |
11 | 8 | keywords = ["http", "service", "client", "futures", "async"]
|
12 |
| -license = "MIT OR Apache-2.0" |
13 |
| -name = "http-client" |
| 9 | +categories = ["asynchronous", "web-programming", "web-programming::http-client", "web-programming::websocket"] |
| 10 | +authors = [ |
| 11 | + "Yoshua Wuyts <[email protected]>", |
| 12 | + "dignifiedquire <[email protected]>", |
| 13 | + "Jeremiah Senkpiel <[email protected]>" |
| 14 | +] |
14 | 15 | readme = "README.md"
|
15 |
| -repository = "https://github.com/http-rs/http-client" |
16 |
| -version = "6.2.0" |
| 16 | +edition = "2018" |
17 | 17 |
|
18 | 18 | [package.metadata.docs.rs]
|
19 | 19 | features = ["docs"]
|
20 | 20 | rustdoc-args = ["--cfg", "feature=\"docs\""]
|
21 | 21 |
|
22 | 22 | [features]
|
23 |
| -curl_client = ["isahc", "async-std"] |
24 | 23 | default = ["h1_client"]
|
25 | 24 | docs = ["h1_client"]
|
26 | 25 | h1_client = ["async-h1", "async-std", "async-native-tls"]
|
27 |
| -hyper_client = ["hyper", "hyper-tls", "http-types/hyperium_http", "futures-util"] |
28 | 26 | native_client = ["curl_client", "wasm_client"]
|
| 27 | +curl_client = ["isahc", "async-std"] |
29 | 28 | wasm_client = ["js-sys", "web-sys", "wasm-bindgen", "wasm-bindgen-futures", "futures"]
|
| 29 | +hyper_client = ["hyper", "hyper-tls", "http-types/hyperium_http", "futures-util"] |
30 | 30 |
|
31 | 31 | [dependencies]
|
32 | 32 | async-trait = "0.1.37"
|
33 | 33 | http-types = "2.3.0"
|
34 | 34 | log = "0.4.7"
|
35 | 35 |
|
36 | 36 | # h1_client
|
37 |
| -async-h1 = {version = "2.0.0", optional = true} |
38 |
| -async-native-tls = {version = "0.3.1", optional = true} |
39 |
| -async-std = {version = "1.6.0", default-features = false, optional = true} |
| 37 | +async-h1 = { version = "2.0.0", optional = true } |
| 38 | +async-std = { version = "1.6.0", default-features = false, optional = true } |
| 39 | +async-native-tls = { version = "0.3.1", optional = true } |
40 | 40 |
|
41 | 41 | # hyper_client
|
42 |
| -futures-util = {version = "0.3.5", optional = true} |
43 |
| -hyper = {version = "0.13.6", features = ["tcp"], optional = true} |
44 |
| -hyper-tls = {version = "0.4.3", optional = true} |
| 42 | +hyper = { version = "0.13.6", features = ["tcp"], optional = true } |
| 43 | +hyper-tls = { version = "0.4.3", optional = true } |
| 44 | +futures-util = { version = "0.3.5", optional = true } |
45 | 45 |
|
46 | 46 | # curl_client
|
47 | 47 | [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
48 |
| -isahc = {version = "0.9", optional = true, default-features = false, features = ["http2"]} |
| 48 | +isahc = { version = "0.9", optional = true, default-features = false, features = ["http2"] } |
49 | 49 |
|
50 | 50 | # wasm_client
|
51 | 51 | [target.'cfg(target_arch = "wasm32")'.dependencies]
|
52 |
| -futures = {version = "0.3.1", optional = true} |
53 |
| -js-sys = {version = "0.3.25", optional = true} |
54 |
| -wasm-bindgen = {version = "0.2.48", optional = true} |
55 |
| -wasm-bindgen-futures = {version = "0.4.5", optional = true} |
| 52 | +js-sys = { version = "0.3.25", optional = true } |
| 53 | +wasm-bindgen = { version = "0.2.48", optional = true } |
| 54 | +wasm-bindgen-futures = { version = "0.4.5", optional = true } |
| 55 | +futures = { version = "0.3.1", optional = true } |
56 | 56 |
|
57 | 57 | [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
| 58 | +version = "0.3.25" |
| 59 | +optional = true |
58 | 60 | features = [
|
59 |
| - "AbortSignal", |
60 |
| - "Headers", |
61 |
| - "ObserverCallback", |
62 |
| - "ReferrerPolicy", |
63 |
| - "Request", |
64 |
| - "RequestCache", |
65 |
| - "RequestCredentials", |
66 |
| - "RequestInit", |
67 |
| - "RequestMode", |
68 |
| - "RequestRedirect", |
69 |
| - "Response", |
70 |
| - "Window", |
71 |
| - "WorkerGlobalScope", |
| 61 | + "AbortSignal", |
| 62 | + "Headers", |
| 63 | + "ObserverCallback", |
| 64 | + "ReferrerPolicy", |
| 65 | + "Request", |
| 66 | + "RequestCache", |
| 67 | + "RequestCredentials", |
| 68 | + "RequestInit", |
| 69 | + "RequestMode", |
| 70 | + "RequestRedirect", |
| 71 | + "Response", |
| 72 | + "Window", |
72 | 73 | ]
|
73 |
| -optional = true |
74 |
| -version = "0.3.25" |
75 | 74 |
|
76 | 75 | [dev-dependencies]
|
77 |
| -async-std = {version = "1.6.0", features = ["unstable", "attributes"]} |
| 76 | +async-std = { version = "1.6.0", features = ["unstable", "attributes"] } |
78 | 77 | portpicker = "0.1.0"
|
79 |
| -tide = {version = "0.13.0"} |
80 |
| -tokio = {version = "0.2.21", features = ["macros"]} |
| 78 | +tide = { version = "0.13.0" } |
| 79 | +tokio = { version = "0.2.21", features = ["macros"] } |
0 commit comments