mirror of https://github.com/smol-rs/smol
8 lines
196 B
Rust
8 lines
196 B
Rust
|
fn main() -> http_types::Result<()> {
|
||
|
smol::run(async {
|
||
|
let body = surf::get("https://www.rust-lang.org").recv_string().await?;
|
||
|
println!("{:?}", body);
|
||
|
Ok(())
|
||
|
})
|
||
|
}
|