The open-coroutine
is a simple, efficient and generic stackful-coroutine library.
add dependency to your Cargo.toml
toml
[dependencies]
open-coroutine = "0.0.1"
enable hooks
rust
fn main() {
//step2 enable hooks
open_coroutine::init();
//......
}
enjoy the performance improvement brought by open-coroutine
shell
cargo run --example hello