mod library { pub async fn read() -> Result { untokio::v1::spawn(async{ tokio1::fs::read_to_string("Cargo.toml").await }).await.unwrap() } } fn main() { println!("{}", futures::executor::block_on(library::read()).unwrap()); }