Rust 1.61.0 stable 正式发布
Rust 1.61.0 stable 正式发布,赶快升级到最新稳定版本体验 Rust 带给你的强劲动力吧 :)
代码语言:javascript复制rustup update stable
- 支持自定义
main
函数ExitCode
const fn
增强- 为 locked stdio 提供静态句柄
Announcing Rust 1.61.0: https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html
cmder - 简单、轻量级和可扩展的命令行参数解析器
cmder 旨在提供易用和可扩展的 API,并且不牺牲速度和性能。构建器接口的语法借鉴了 commander-js 。
代码语言:javascript复制let mut program = Program::new();
program
.version("0.1.0")
.description("An example CLI")
.author("Author's name");
program
.subcommand("test")
.argument("<app-name>", "Pass the name of the app to test")
.alias("t")
.description("A test command")
.option("-s --skip", "Skip checking/installing the dependencies")
.option("-p --priority", "The priority to use when testing apps")
.action(|matches| { dbg!(matches); });
// ...
program.parse();
GitHub - ndaba1/cmder:https://github.com/ndaba1/cmder
crates.io - cmder: https://crates.io/crates/cmder
This Week in Rust 443
新一期的 Rust 周报速递发布,快来看看有哪些内容你曾经关注过 :)
This Week in Rust 443: https://this-week-in-rust.org/blog/2022/05/18/this-week-in-rust-443/
From 日报小组 PsiACE