Crates.io | rust-cli-commands |
lib.rs | rust-cli-commands |
version | 0.1.0 |
source | src |
created_at | 2020-11-09 07:48:07.454538 |
updated_at | 2020-11-09 07:48:07.454538 |
description | rust-cli-commands |
homepage | https://github.com/AmdRyZen/rust-cli.git |
repository | https://github.com/AmdRyZen/rust-cli.git |
max_upload_size | |
id | 310214 |
size | 34,147 |
高性能 • 轻量级 • 命令行 • 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/