2023-04-05
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻譯。
你好,歡迎來到《本周 Rust 新聞》的另一期! Rust 是一種讓每個人都能建立可靠和高效軟件的編程語言。 這是對它的進展和社區的每週摘要。 有想讓我們提到的內容嗎?在推特上用 @ThisWeekInRust 標記我們,或者在 mastodon.social 上用 @ThisWeekinRust 標記我們,或者給我們提交拉取請求。 想參與其中嗎?我們歡迎貢獻。
《本周 Rust 新聞》是在 GitHub 上公開開發的。 如果你在本週的問題中發現任何錯誤,請提交拉取請求。
本周推荐的 Crate 是 keshvar,这是一个提供关于每个国家信息的库。
感谢 Pouriya 的推荐!
一直想要貢獻於開源項目,但不知道從哪裡開始嗎?每週我們都會突出 Rust 社區中的一些任勞任怨,供您選擇並開始!
其中一些任務可能會有導師可用,請訪問任務頁面以獲取更多信息。
如果您是 Rust 項目的所有者,並且正在尋找貢獻者,請在 這裡 提交任務。
上周已合并了 390 个 拉取请求
FnPtr trait,适用于所有函数指针'staticIndexSlice 以配合 IndexVec&IndexSlice 而不是 &IndexVeconce_cellLazyCell 大小Option::contains, Result::contains, Result::contains_errformat_args!() 展开中使用占位符范围advance(_back)_by 的返回类型改为剩余元素而非已处理元素的数量binary_heap: 优化 Extend 实现binary_heap_retainfeature(non_lifetime_binders) 的支持unnecessary_box_returns lint 加入 clippy 中
https://github.com/rust-lang/rust-clippy/pull/9102将 bufreader.lines().filter_map(Result::ok) 标记为可疑
https://github.com/rust-lang/rust-clippy/pull/10534
在 extra_unused_type_parameters 中增加建议
https://github.com/rust-lang/rust-clippy/pull/10536
在处理 arithmetic_side_effects 时,当右侧为未知时,正确处理除法和模运算
https://github.com/rust-lang/rust-clippy/pull/10585
修复 nonminimal_bool #[allow] 属性
https://github.com/rust-lang/rust-clippy/pull/10588
修复在 items_after_statements 中允许属性和宏中的项
https://github.com/rust-lang/rust-clippy/pull/10542
在 print_literal 和 write_literal 中忽略 file!() 宏
https://github.com/rust-lang/rust-clippy/pull/10573
在未初始化检查中,对多态类型增加备用方案 https://github.com/rust-lang/rust-clippy/pull/10553
rust-analyzer: 展开宏时,不要在非叹号宏名称后添加"!" https://github.com/rust-lang/rust-analyzer/pull/14468
rust-analyzer: 添加提示,提示用户将未链接文件的 Cargo.toml 添加到 linkedProjects 中 https://github.com/rust-lang/rust-analyzer/pull/14366
is_ty_uninhabited_from 中的堆栈溢出rust-project.json 的工作空间获得过程宏扩展builtin_deref 中正确处理 box 和原始指针pub() 可见性修饰符中恢复Expectation::rvalue_hint 中使用 struct_tail_without_normalization2023年4月5日至2023年5月3日之間的 Rusty 活動 🦀
如果您正在组织一场 Rust 活动,请将其添加到[日历]中,以便在此提及。请记得同时添加活动链接。如需访问权限,请发邮件给Rust 社区团队。
請看最新的r/rust的招聘帖
像往常一样,借用检查器是正确的:我们正在犯内存罪行。
感谢Jelte Fennema的建议!
本周 Rust 资讯编辑:nellshamrell、llogiq、cdmistman、ericseppanen、extrawurst、andrewpollack、U007D、kolharsam、joelmarcey、mariannegoldin、bennyvasquez。
电子邮件列表由 Rust 基金会 赞助。