高性能 • 轻量级 • 命令行 • Tokio异步IO
rust-cli
为了学习 rust 基于 Tokio 异步IO系统之上构建的高级cli
需要 Rust1.39+, actix_web2.0
绝对性能优先 基于Tokio异步IO的无栈协成
cargo run test
``
C:\Users\Administrator\Desktop\github\rust-cli>cargo run test
Finished dev [unoptimized + debuginfo] target(s) in 0.27s
Running
target\debug\rust-cli.exe test`
spawned thread print 0
spawned thread print 3
spawned thread print 1
spawned thread print 2
spawned thread print 5
spawned thread print 8
spawned thread print 6
spawned thread print 7
spawned thread print 4
spawned thread print 9
Result : 20
Result1 : 2000
success
```
Apache License Version 2.0, http://www.apache.org/licenses/