You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
355 B
Rust
16 lines
355 B
Rust
5 years ago
|
//! Fetches the HTML contents of the Rust website.
|
||
|
|
||
|
#![feature(async_await)]
|
||
|
|
||
|
use std::error::Error;
|
||
|
|
||
|
use async_std::task;
|
||
|
|
||
|
fn main() -> Result<(), Box<dyn Error + Send + Sync>> {
|
||
|
task::block_on(async {
|
||
|
// let contents = surf::get("https://www.rust-lang.org").recv_string().await?;
|
||
|
// println!("{}", contents);
|
||
|
Ok(())
|
||
|
})
|
||
|
}
|