smol-potat 0.2.0

Proc macro for smol runtime.
Documentation

smol-potat

Proc macro for smol runtime.

This is the proc macro to help you initializing smol runtime on your binary, test cases and benchmark. Usage is similar to what you do in tokio and async-std.

Usage

Single thread

#[smol_potat::main]
async fn main() {
    println!("Hello, world!");
}

Multi threads

futures is required because of using pending()

#[smol_potat::main]
async fn main() {
    println!("Hello, world!");
}