ITPub博客

首页 > 数据库 > 数据库开发技术 > 【Rust日报】2021-07-22 - Rust 2021 进入公开测试期

【Rust日报】2021-07-22 - Rust 2021 进入公开测试期

原创 数据库开发技术 作者:Rust语言中文社区 时间:2021-07-23 23:58:29 0 删除 编辑

Rust 2021 进入公开测试期

Rust 2021 版进入 公开测试期 。该版本的所有计划功能现在都可以在 nightly 版本中率先体验。同时还提供了方便的迁移办法,以便将代码从 Rust 2018 快速迁移到 Rust 2021 。
  1. 安装最近的 nightly 工具链:rustup update nightly 。
  2. 运行 cargo +nightly fix --edition 。
  3. 编辑 Cargo.toml ,将 cargo-features = ["edition2021"] 置于顶部(位于 [package] 上方),并将 edition 区域改为 edition = "2021" 。
  4. 运行 cargo +nightly check 以确认能否在新版本上正常工作。
Datafuse 团队目前正在进行 Rust 2021 迁移的尝鲜体验,相关工作可以关注:https://github.com/datafuselabs/datafuse
Rust 2021 public testing period: https://blog.rust-lang.org/2021/07/21/Rust-2021-public-testing.html
the nightly version of Rust edition guide: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
Datafuse: [rust 2021] migrate to rust 2021: https://github.com/datafuselabs/datafuse/pull/1159

arrow2 和 parquet2 v0.1 发布

arrow2 和 parquet2 是对官方 arrow 和 parquet 的重写,由 Jorge Leitao 重构和发布。
arrow2 的核心目标是安全地实现 Arrow 格式。对官方实现进行完全重写,修复由于设计限制而导致的严重健全性问题。
parquet2 同样关注安全,并使用 #![forbid(unsafe_code)] 。编码器和解码器更快也更安全。
Reddit - Release of arrow2 0.1 and parquet2 0.1: https://www.reddit.com/r/rust/comments/ooyhn1/release_of_arrow2_01_and_parquet2_01/
GitHub - arrow2: https://github.com/jorgecarleitao/arrow2)
GitHub - parquet2: https://github.com/jorgecarleitao/parquet2)

This Week in Rust 400

新一期的 Rust 周报速递发布,快来看看有哪些内容你曾经关注过 :)
This Week in Rust 400: https://this-week-in-rust.org/blog/2021/07/21/this-week-in-rust-400/
本周引语
小贴士:每当你想到 Pin 可能算一种解决方案时,它其实不是。
  • @SkiFire13 on the official Rust Discord

From 日报小组 PsiACE

社区学习交流平台订阅:
  • Rust.cc 论坛: 支持 rss
  • 微信公众号:Rust 语言中文社区

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

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

注册时间:2020-06-11

  • 博文量
    1769
  • 访问量
    718923