2023-07-05
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻译。
欢迎阅读本期的 本周 Rust 速递! Rust 是一种赋予每个人构建可靠和高效软件的编程语言。 本周速递是对 Rust 的进展和社区的每周总结。 想让某些内容出现在速递中吗?在 Twitter 上给 @ThisWeekInRust 打标签,或者在 mastodon.social 上给 @ThisWeekinRust 打标签,还可以通过 提交拉取请求 来联系我们。 想参与进来吗?我们期待您的贡献。
本周 Rust 速递 是 在 GitHub 上公开开发,速递的归档可以在 this-week-in-rust.org 上查看。 如果您在本周速递中发现任何错误,请提交拉取请求。
本周推荐的 Crate 是 rustypaste,一个极简的文件上传/粘贴服务。
特别感谢 orhun 自荐这个 Crate!
一直想为开源项目做贡献,但不知道从哪里开始吗? 每周我们都会突出展示一些 Rust 社区的任务,供您选择并开始!
其中一些任务可能会有导师提供帮助,请访问任务页面了解更多信息。
ockam credential issue 命令的参数从 Identity 更改为 IdentityIdentifier 2ockam project enroll 1ockam project ticket 应返回合适的错误消息 1loopcrashbackoff pods 为可能的目标 1如果您是 Rust 项目所有者,正在寻找贡献者,请提交任务在这里。
上个星期有 410 个 pull request 被 合并
fix(resolve):在 NonModule 是虚拟值时跳过断言判断thir:添加 Become 表达式类型-Zremark-dir 不稳定标志,将 LLVM 优化备注写入 YAMLin_operand() 添加检查 ConstKind::Value(_)next 提供更好的消息moveDefKind::ImplTraitPlaceholder 编码项边界rustc_mir_dataflow 中导出 AnalysisResults traitdropping_copy_types linte_flagsproc_macro_span 的提议 APIElaboratable trait 接受 clausesvariances_ofmem::swap(&mut x[0], &mut x[1])的借用检查错误建议使用slice::swapfor<'a> 时使用结构化建议inline(always)simd_shuffle_indices使用valtreesUnwindAction::Continue--quiet实际上有所作为Unique 添加可选语义fn_abi 的错误变体#[cold] 属性的支持Box 对象rustc_on_unimplemented 与标准库无关const_cstr_methodssingle_line_let_else_max_widthmanual_try_fold,
needless_raw_string_hashes,
redundant_at_rest_pattern,tuple_array_conversions,manual_range_patterns,type_id_on_box,needless_pub_self, pub_with_shorthand 和 pub_without_shorthandsignificant_drop_tightening: 修复了不正确的建议arc_with_non_send_sync: 如果类型具有嵌套类型参数,则不进行lintlet_and_return: lint 'static 生命周期,不进行闭包中的借用lintmissing_fields_in_debug: 确保 self 类型是 adtneedless_raw_string_hashes: 仅在不遵循引号时重置所需的哈希值option_if_let_else: 如果检验者的类型为 &Option<_>,则建议使用 .as_ref()question_mark: 不要在 try 块内进行 lintunused_async: 如果函数是 trait 的一部分,则不进行 lintuseless_vec: 添加更多测试,并且不要在宏内部进行 lintuseless_vec: 使用源标记进行初始化? 可用的情况下不要进行 manual_let_else 的 linteq_op 提示使用 .is_nan()is_some_and 而不是 map().unwrapnoImplicitOverride ts option@tsconfig/strictest to define type checking rulesself and super path resolution in block moduleshandle_code_action#[tokio::test]#[derive_const(Trait)]2023年7月5日至2023年8月2日之间的 Rust 社区活动 🦀
如果您正在举办 Rust 活动,请将其添加到[日历]中以便得到在此处提及的机会。请记得添加活动链接。发送邮件至Rust 社区团队以获取访问权限。
请查看最新的 r/rust 招聘帖子
我不是来告诉你 Rust 是最好的语言......你现在应该已经想明白了。
感谢 newpavlov 的建议!
本周 Rust 动态的编辑人员:nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
邮件列表由 Rust 基金会 赞助托管