【Rust日报】2022-05-19 - Rust 1.61.0 stable 正式发布

Rust 1.61.0 stable 正式发布

Rust 1.61.0 stable 正式发布,赶快升级到最新稳定版本体验 Rust 带给你的强劲动力吧 :)

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 。

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

社区学习交流平台订阅:

  • Rust.cc 论坛: 支持 rss

  • 微信公众号:Rust 语言中文社区

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值