mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 18:59:55 +00:00
17 lines
329 B
Rust
17 lines
329 B
Rust
//! Prints the runtime's execution log on the standard output.
|
|
|
|
#![feature(async_await)]
|
|
|
|
use async_std::task;
|
|
|
|
fn main() {
|
|
femme::start(log::LevelFilter::Trace).unwrap();
|
|
|
|
task::block_on(async {
|
|
let handle = task::spawn(async {
|
|
log::info!("Hello world!");
|
|
});
|
|
|
|
handle.await;
|
|
})
|
|
}
|