From e8e82c6b71028aed6e4647d8b5ea7730c1410ddb Mon Sep 17 00:00:00 2001 From: Florian Gilcher Date: Fri, 16 Aug 2019 18:21:41 +0200 Subject: [PATCH] Remove surf example Doesn't build on mac --- Cargo.toml | 1 - examples/surf-web.rs | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 examples/surf-web.rs diff --git a/Cargo.toml b/Cargo.toml index d80ab39..13e83b4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,5 +38,4 @@ slab = "0.4.2" [dev-dependencies] femme = "1.1.0" -surf = "1.0.1" tempdir = "0.3.7" diff --git a/examples/surf-web.rs b/examples/surf-web.rs deleted file mode 100644 index 0215e31..0000000 --- a/examples/surf-web.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! Creates a HTTP request to the official Rust website. - -#![feature(async_await)] - -use async_std::task; - -fn main() -> Result<(), surf::Exception> { - task::block_on(async { - let url = "https://www.rust-lang.org"; - let mut response = surf::get(url).await?; - let body = response.body_string().await?; - - dbg!(url); - dbg!(response.status()); - dbg!(response.version()); - dbg!(response.headers()); - dbg!(body.len()); - - Ok(()) - }) -}