2023-06-07
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻译。
欢迎阅读本期的 本周Rust资讯! Rust 是一种赋予所有人构建可靠和高效软件能力的编程语言。 这是一份每周更新的 Rust 语言发展和社区动态摘要。如果您希望有什么内容被提及,请在 Twitter 上标记我们 @ThisWeekInRust,或在 mastodon.social 上标记 @ThisWeekinRust,或者通过 提交拉取请求 来联系我们。 如果您希望参与其中,我们欢迎您的贡献。
本周Rust资讯 是在 GitHub 上公开开发的,历史文档可以在 this-week-in-rust.org 上查阅。如果您发现本周信息中有任何错误,请提交一份拉取请求。
本周的优秀 Crate 是 kanata,一个适用于 Linux 和 Windows 的键盘重映射工具。
感谢 Aleksey Kladov 的建议!
一直想要为开源项目做贡献,但不知道从哪里开始吗? 每周我们都会为您提供一些 Rust 社区中的任务供您选择并开始!
其中一些任务可能还会有导师的帮助,访问任务页面以获取更多信息。
MerchantKeyStore 实现缓存delete 命令增加 --yes 标记,以避免意外删除ockam node create 定义 JSON 输出project path not found 错误如果您是 Rust 项目所有者,并正在寻找贡献者,请在这里提交任务。
在上个星期有 392 个 pull request 被合并
x86_64 Apple 目标上的 128 位原子操作repr(transparent): transform_ty 修复 unexpected Alias(Projtransform_ty: 意外的 GeneratorWitness(Bi…rust_analyzer_settings 中添加其他工作空间到 linkedProjectsOsStr 字节ConstGoto 和 SeparateConstSwitch 优化 passScalarReplacementOfAggregatesunreachable_pub lint 提供额外上下文static_candidates&mut fmt::Write 可直接使用时删除不需要的 Buffer 分配ConstParamTylib 文件夹Option::as_deref(_mut)self_tyclippy::cast_ref_to_mut lintclippy::invalid_utf8_in_unchecked lintunchecked_div/_rem 降低为 MIR 的 BinOp::Div/Remrustc_driver.so 的大小ExtendElement, ExtendWith, extend_with[T]::zip(_)TrustedStep 要求 Copyoffset_of!: 不要求类型为 Sizedoffset_of! 中为 Sizedutf16_to_utf8中对于零长度字符串的错误Regex::new(r"(?-u:\B)") 再次失败add 或 install 命令时,发出错误以使用工具链build.jobs 添加 "default" 选项的支持allow_attributes, allow_attributes_without_reason: 忽略来自过程宏的属性manual_let_else: 支持 struct 模式nonminimal_bool 修复双重否定ptr_cast_constness: 只有在类型不变的情况下对转换进行 lintunnecessary_lazy_eval: 不对具有解引用实现的类型进行 lintuseless_conversion: 如果存在多个 .into_iter() 调用,则使用复数形式wildcard_imports 含有 prelude 的模块也是允许的cfg(features = ...) 的 lintto_xx_bytes 和 from_xx_bytes 的 lintclippy.toml 错误消息中添加 spansunnecessary_cast 的建议Self 引用,则忽略 from_over_into 的修复redundant_clone 移动到 nurseryexplicit_into_iter_fn_argmissing_fields_in_debugBox 的 unused-mut 误报问题convert_named_struct_to_tuple_struct 的编辑问题render_const_scalar 添加枚举、引用、数组和切片的渲染配置need-mutHirDisplay 中为生命周期泛型发出 '_2023年6月7日至2023年7月5日之间的 Rusty 活动 🦀
如果你举办了 Rust 活动,请将其添加到[日历]中,以便在这里提到。请记得同时添加活动链接。发送邮件给Rust 社区团队以获取权限。
请查看最新的 r/rust 招聘帖子
(...) Rust 开发者通常并不只是寻求“更少 bug”。
他们沉迷于乐高积木的“咔哒咔哒”声中。
感谢 Jan Riemer 的建议!
This Week in Rust 的编辑: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
邮件列表由 Rust 基金会 赞助提供