ITPub博客

首页 > 数据库 > 数据库开发技术 > 【Rust日报】2022-05-19 - Rust 1.61.0 stable 正式发布

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

原创 数据库开发技术 作者:Rust语言中文社区 时间:2022-05-20 23:32:20 0 删除 编辑

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 语言中文社区

原文作者:Rust语言中文社区;如有侵权,请联系管理员删除。

请登录后发表评论 登录
全部评论

注册时间:2020-06-11

  • 博文量
    1769
  • 访问量
    718794