| Crates.io | smol-potat |
| lib.rs | smol-potat |
| version | 1.1.2 |
| created_at | 2020-04-23 10:25:12.928252+00 |
| updated_at | 2020-12-22 16:13:05.121884+00 |
| description | Proc macro for smol runtime. |
| homepage | https://github.com/wusyong/smol-potat |
| repository | https://github.com/wusyong/smol-potat |
| max_upload_size | |
| id | 233246 |
| size | 14,591 |
Proc macro for smol runtime.

This is the 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.
#[smol_potat::main]
async fn main() {
println!("Hello, world!");
}
#[smol_potat::main(threads=3)]
async fn main() {
println!("Hello, world!");
}
Enable auto feature and the rest is same as single thread:
smol_potat = { version = "1", features = ["auto"] }
#[smol_potat::main]
async fn main() {
println!("Hello, world!");
}