-
Notifications
You must be signed in to change notification settings - Fork 120
/
Cargo.toml
89 lines (83 loc) · 2.48 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[package]
name = "surf"
version = "2.3.2"
license = "MIT OR Apache-2.0"
repository = "https://github.com/http-rs/surf"
documentation = "https://docs.rs/surf"
description = "Surf the web - HTTP client framework"
keywords = ["http", "client", "framework", "request", "async"]
categories = ["web-programming", "web-programming::http-client"]
authors = [
"Yoshua Wuyts <[email protected]>",
"dignifiedquire <[email protected]>",
"Renée Kooi <[email protected]>",
"Jeremiah Senkpiel <[email protected]>",
]
readme = "README.md"
edition = "2018"
[features]
# when the default feature set is updated, verify that the `--features` flags in
# `.github/workflows/ci.yaml` are updated accordingly
default = ["curl-client", "middleware-logger", "encoding"]
curl-client = ["http-client/curl_client", "once_cell", "default-client"]
h1-client = [
"http-client/h1_client",
"http-client/native-tls",
"once_cell",
"default-client",
"async-native-tls",
]
h1-client-no-tls = [
"http-client/h1_client",
"once_cell",
"default-client",
]
h1-client-rustls = [
"http-client/h1_client",
"http-client/rustls",
"once_cell",
"default-client",
"rustls_crate",
]
hyper-client = [
"http-client/hyper_client",
"once_cell",
"default-client",
"async-std/tokio02",
]
wasm-client = [
"http-client/wasm_client",
"default-client",
"getrandom/js",
"web-sys",
]
default-client = []
middleware-logger = []
# requires web-sys for TextDecoder on wasm
encoding = ["encoding_rs", "web-sys"]
[dependencies]
futures-util = { version = "0.3.5", features = ["io"] }
log = { version = "0.4.7", features = ["kv_unstable"] }
mime_guess = "2.0.3"
serde = "1.0.97"
serde_json = "1.0.40"
http-client = { version = "6.5.0", default-features = false }
http-types = "2.5.0"
async-std = { version = "1.6.0", default-features = false, features = ["std"] }
async-trait = "0.1.36"
pin-project-lite = "0.2.0"
once_cell = { version = "1.4.1", optional = true }
cfg-if = "1.0.0"
getrandom = "0.2.0"
encoding_rs = { version = "0.8.20", optional = true }
rustls_crate = { version = "0.18", optional = true, package = "rustls" }
async-native-tls = { version = "0.3.3", optional = true }
web-sys = { optional = true, version = "0.3.25", features = ["TextDecoder"] }
[dev-dependencies]
async-std = { version = "1.6.0", features = ["attributes"] }
femme = "1.1.0"
serde = { version = "1.0.97", features = ["derive"] }
mockito = "0.23.3"
tide = "0.16.0"
[workspace]
members = ["wasm-test"]