pollster-macro 0.4.0

Proc-macro crate for pollster
Documentation
extern crate pollster as reexported_pollster;

use std::future::ready;

#[pollster::test]
async fn basic() {
    ready(42).await;
}

#[pollster::test]
async fn result() -> Result<(), std::io::Error> {
    if ready(42).await == 42 {
        Ok(())
    } else {
        unreachable!()
    }
}

#[pollster::test(crate = reexported_pollster)]
async fn crate_path() {
    ready(42).await;
}

#[pollster::test(crate = "reexported_pollster")]
async fn crate_str() {
    ready(42).await;
}