Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 11196c8

Browse files
authored
chore: update dependencies
1 parent cc4bb94 commit 11196c8

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

‎Cargo.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tokio03 = ["async-global-executor/tokio03"]
6363
[dependencies]
6464
async-attributes = { version = "1.1.1", optional = true }
6565
async-mutex = { version = "1.1.3", optional = true }
66-
crossbeam-utils = { version = "0.7.2", optional = true }
66+
crossbeam-utils = { version = "0.8.0", optional = true }
6767
futures-core = { version = "0.3.4", optional = true, default-features = false }
6868
futures-io = { version = "0.3.4", optional = true }
6969
kv-log-macro = { version = "1.0.6", optional = true }
@@ -76,7 +76,7 @@ pin-utils = { version = "0.1.0-alpha.4", optional = true }
7676
slab = { version = "0.4.2", optional = true }
7777

7878
# Devdepencency, but they are not allowed to be optional :/
79-
surf = { version = "1.0.3", optional = true }
79+
surf = { version = "2.0.0", optional = true }
8080

8181
[target.'cfg(not(target_os = "unknown"))'.dependencies]
8282
async-global-executor = { version = "1.4.0", optional = true, features = ["async-io"] }
@@ -92,12 +92,6 @@ futures-channel = { version = "0.3.4", optional = true }
9292
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
9393
wasm-bindgen-test = "0.3.10"
9494

95-
[dependencies.tokio]
96-
version = "0.2"
97-
default-features = false
98-
features = ["rt-threaded"]
99-
optional = true
100-
10195
[dev-dependencies]
10296
femme = "2.1.1"
10397
rand = "0.7.3"

‎examples/surf-web.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
use async_std::task;
22

3-
fn main() -> Result<(), surf::Exception> {
3+
fn main() -> Result<(), surf::Error> {
44
task::block_on(async {
55
let url = "https://www.rust-lang.org";
6-
let mut response = surf::get(url).await?;
6+
let mut response = surf::get(url).send().await?;
77
let body = response.body_string().await?;
88

99
dbg!(url);
1010
dbg!(response.status());
1111
dbg!(response.version());
12-
dbg!(response.headers());
12+
dbg!(response.header_names());
13+
dbg!(response.header_values());
1314
dbg!(body.len());
1415

1516
Ok(())

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /