你好,欢迎再来一期本周的螃蟹行情!Rust是一种追求三位一体的系统语言:安全性、并发性和速度。这是它的进展和社区的每周总结。有什么要说的吗?推特@ThisWeekInRust或向我们发送请求。 想参与吗?我们热爱贡献.
这本周的螃蟹行情是在在 Github 上公开的。如果你在本周的问题中发现任何错误,请提交 PR。
本周没有论文/研究项目。
这周的箱子是rs-pbrt,与 PBRT 那本书(第 3 版)的 C ++代码相对应。
谢谢Jan Walter的建议!
一直想为开源项目做贡献,但不知道从哪里开始?每周我们都会重点介绍 Rust 社区中的一些任务,供您选择和开始!
其中一些任务也可能有导师,请访问任务页面以获取更多信息。
如果您是 Rust 项目的所有者并且正在寻找贡献者,请提交任务这里。
共有 313 个拉取请求在上周合并
x86_64#[derive] expansionTrustedLen 检查出 length > usize::MAXbox/pin/arcing receiver on method callsalign(N) fields in packed(N) structs are fineLateBoundRegionNameCollectorVec::reserve calls 的影响OrdSourceIterator and InPlaceIterable for ResultShuntPartialOrd::leffi::c_str removed bound checks on as_bytes, to_bytesas_slice method to BinaryHeap collection#[inline(always)] on trivial UnsafeCell methods#[inline] to IpAddr methodsstd::net::SocketAddr, SocketAddrV4 and SocketAddrV6RawTable::insert_no_grow unsafeget_blanket_implsinfer_ctxt in get_blanket_impls for impls that aren’t blanket implsnon_octal_unix_permissions lintmanual_map in const functionsneedless_for_eachbranches_sharing_codefilter(Option::is_some).map(Option::unwrap)cargo_common_metadatadb-dump.tar.gz相当重要的一周内存使用情况的改进,由于使用的默认分配器(更新为最新的 jemalloc)的更新,发布版本的内存使用平均增加了约 20%,而检查版本的内存使用平均增加了 5%。总计时间的表现,在本周基本保持不变。
整理由 @simulacrum。修订范围:4896450e..d32238
1 个退步,4 个改进,0 个混合
对 Rust 的更改跟随 RustRFC (request for comments) process。以下是本周批准实施的 RFC:
每周the team宣布即将做出决定的 RFC 和主要 PR 的“最终意见征询期”。立即发表您的意见。
#[derive_no_bound(..)] and #[derive_field_bound(..)]? desugaringT: Debug bound on UnsafeCell Debug implrustdoc::bare_urls lint{BTreeMap,BTreeSet}::retain#![feature(const_cell_into_inner)]atomic_fetch_updateDuration saturating operationsDuration::{zero, is_zero} (#![feature(duration_zero)])可悲的是,本周没有引用。
Please submit quotes and vote for next week!
This Week in Rust is edited by: nellshamrell, llogiq, and cdmistman.