2023-03-22
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻譯。
您好,歡迎來到另一期的《This Week in Rust 本周 Rust 新聞》! Rust 是一種使每個人能夠構建可靠和高效軟體的程式語言。 這是其進展和社區的每週摘要。 想要提及某事嗎?在 Twitter 上標記我們@ThisWeekInRust ,或在 mastodon.social 上標記我們 @ThisWeekinRust,或向我們提交 pull request。 想要參與其中?我們歡迎貢獻。
This Week in Rust 在 GitHub 上公開開發。 如果您發現本週問題中有任何錯誤,請提交 PR。
本周推荐的库是 Speedy2D,这个库提供了跨平台的硬件加速绘制图形、图像和文本的功能,并提供了易于使用的 API。
感谢 Aleksey Kladov 的建议!
一直想要為開源專案做出貢獻,卻不知道從何開始嗎? 每週我們都會突出 Rust 社區中一些任務,供您選擇並開始參與!
其中一些任務可能有導師可以提供協助,請訪問任務頁面以獲取更多資訊。
如果您是 Rust 專案擁有者並正在尋找貢獻者,請在這裡提交任務。
來自 Rust 項目的最新更新
上週共合併了 321 個拉取請求 [merged][merged] [merged]: https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2023-03-13..2023-03-20
inherit_overflow: adapt pattern to also work with v0 manglingread_buf_exact: on error, all read bytes are appended to the bufferenable-warnings flag for llvm, and disable it by defaultuseless_anonymous_reexport lintAnonConstBoundarycustom-test-frameworks featureptr::read gets all the same LLVM load metadata that dereferencing doesunused_def lintE0532process_obligationsgenerics_of for impl's RPITIT (Return Position Impl Trait In Trait) synthesized associated type-Zlower-impl-trait-in-trait-to-assoc-tyformat_args!() and (string and int) literal arguments into format_args!()FixedSizeEncoding for UnusedGenericParamsShl/Shr at MIR buildingtype_of of GAT const argget_fn_declidentity_future indirection{} to interpret as a statementunused_generic_params from crate metadataformat_args invocations to use capturesunix_socket_abstractatomic_as_ptrRange as an Iterator in const contexts--ignore-rust-version flag to cargo installallow_attribute lint&std::path::MAIN_SEPARATOR.to_string()ifs_same_cond to warn same immutable method calls as wellalmost_swapped false positive (let mut a = b; a = a)almost_swapped: Ignore external macrosmanual_async_fn lint本週雜亂多變,在有些方面取得了好成績,但至少有兩個拉取請求被撤銷,例如升級到 LLVM 16。我們想提及的是 PR #108944, 這減少了 crate metadata、二進制文件大小,對許多基準測試也在執行時間上取得了整體勝利。
由 @pnkfelix 進行效能審查。 範圍:00587489..ef03fda3
1 個回歸,4 個改進,11 種各種情況;其中有 2 種是卷集中的 總共進行了 37 次套件比較
Rust 的變更遵循 RFC(諮詢意見請求)流程。本週已批准用於實施的 RFC 為:
每週,團隊宣布了達成決定的 RFCs 和關鍵 PR 的「最後意見週期」。現在表達你的意見。
RFC 實施的一個重要步驟是讓人們對實現進行實驗並提供反饋,特別是在穩定之前。以下 RFC 將在推進之前受益於用戶測試:
如果您是功能實現者,並想讓您的 RFC 出現在上述列表中,則在您的 RFC 上新增 call-for-testing
標籤,並添加一條評論,提供測試指示或關於哪些部分的功能需要測試的指導。
2023 年 03 月 22 日至 2023 年 04 月 19 日期間的 Rusty 活動 🦀
请查看最新的 r/rust 招聘贴
生成的程序是一个随机的字节序列,碰巧以一种看似可行的程序形式出现。这就是导致未定义行为的代码带来的乐趣。当你执行一个存在未定义行为的程序时,你无法从中推断出任何信息,因为这个行为本身是毫无意义的。在编译器生成程序后,你需要确定你的程序没有未定义行为,然后才能基于程序的行为推断任何结论。
感谢 bugaevc 的建议!
This Week in Rust 的编辑人员包括: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
邮箱列表托管由 The Rust Foundation 赞助