emacs/var/elfeed/db/data/60/60f2d25a7d933c60ec1f882977f6d5953a39ff1f
2022-01-03 12:49:32 -06:00

203 lines
21 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p>Hello and welcome to another issue of <em>This Week in Rust</em>!
<a href="http://rust-lang.org">Rust</a> is a programming language empowering everyone to build reliable and efficient software.
This is a weekly summary of its progress and community.
Want something mentioned? Tweet us at <a href="https://twitter.com/ThisWeekInRust">@ThisWeekInRust</a> or <a href="https://github.com/rust-lang/this-week-in-rust">send us a pull request</a>.
Want to get involved? <a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md">We love contributions</a>.</p>
<p><em>This Week in Rust</em> is openly developed <a href="https://github.com/rust-lang/this-week-in-rust">on GitHub</a>.
If you find any errors in this week's issue, <a href="https://github.com/rust-lang/this-week-in-rust/pulls">please submit a PR</a>.</p>
<h2 id="updates-from-rust-community">Updates from Rust Community</h2>
<h3 id="official">Official</h3>
<ul>
<li><a href="https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html">Announcing Rust 1.57.0</a></li>
</ul>
<h3 id="foundation">Foundation</h3>
<ul>
<li><a href="https://foundation.rust-lang.org/posts/2021-12-06-love-for-rust-at-reinvent/">Love for Rust at re:Invent</a></li>
</ul>
<h3 id="projecttooling-updates">Project/Tooling Updates</h3>
<ul>
<li><a href="https://blog.jetbrains.com/rust/2021/12/06/updates-in-intellij-rust-for-2021-3/">Updates in IntelliJ Rust for 2021.3</a></li>
<li><a href="https://rust-analyzer.github.io/thisweek/2021/12/06/changelog-106.html">Rust Analyzer Changelog #106</a></li>
<li><a href="https://github.com/cloud-hypervisor/cloud-hypervisor/releases/tag/v20.0">cloud-hypervisor v20.0</a></li>
<li><a href="https://sixtyfps.io/thisweek/2021-12-06.html">SixtyFPS (GUI crate): Changelog for 5th of December 2021</a></li>
<li><a href="https://rust-osdev.com/this-month/2021-11/">This Month in Rust OSDev (November 2021)</a></li>
<li><a href="https://thephilbert.io/2021/12/06/gcc-rust-monthly-report-12-november-2021/">GCC Rust Monthly Report #12 November 2021</a></li>
<li><a href="https://blog.antoyo.xyz/rustc_codegen_gcc-progress-report-6">rustc_codegen_gcc: Progress Report #6</a></li>
<li><a href="https://forum.torproject.net/t/arti-0-0-2-is-released-api-groundwork-refactoring-config-and-optimism/939">Arti 0.0.2 is released: API groundwork, refactoring, config, and optimism</a></li>
<li><a href="https://www.zdnet.com/article/rust-takes-a-major-step-forward-as-linuxs-second-official-language/">Rust takes a major step forward as Linux's second official language</a></li>
<li><a href="https://www.phoronix.com/scan.php?page=news_item&amp;px=Rust-For-Linux-v2">Updated Rust Code For Linux Kernel Patches Posted</a></li>
<li><a href="https://github.com/xmake-io/xmake/wiki/xmake-v2.6.1-released,-Switch-to-Lua5.4-runtime,-Support-Rust-and-Cplusplus-mixed-compilation">xmake v2.6.1 released, Switch to Lua5.4 runtime, Support Rust and Cplusplus mixed compilation</a></li>
<li><a href="https://sycamore-rs.netlify.app/news/announcing-v0.7.0">Announcing Sycamore v0.7.0: Client-side hydration + Builder API</a></li>
<li><a href="https://www.nushell.sh/blog/2021-12-07-nushell_0_41.html">Nushell 0.41</a></li>
<li>[DE] <a href="https://www.heise.de/news/WebAssembly-Wasmer-2-1-ermoeglicht-das-Ausfuehren-von-Rust-Projekten-im-Browser-6283513.html">WebAssembly: Wasmer 2.1 ermöglicht das Ausführen von Rust-Projekten im Browser</a></li>
<li>[DE] <a href="https://www.heise.de/news/Programmiersprache-Rust-1-57-Don-t-Panic-6283665.html">Programmiersprache: Rust 1.57 Don't Panic!</a></li>
</ul>
<h3 id="observationsthoughts">Observations/Thoughts</h3>
<ul>
<li><a href="https://blog.yoshuawuyts.com/uninit-read-write/">Uninit read/write</a></li>
<li><a href="https://www.ncameron.org/blog/portable-and-interoperable-async-rust/">Portable and interoperable async Rust</a></li>
<li><a href="https://aaronerhardt.github.io/blog/posts/gui_speedrun/">Speedrunning GUI development in Rust</a></li>
<li><a href="https://codegito.xyz/2021/12/05/cryptography-final-project/">My Cryptography Final Project</a></li>
<li><a href="https://zulip.com/case-studies/rust/">Case study: Rust programming language community</a></li>
<li><a href="https://aidancully.blogspot.com/2021/12/linear-types-can-help.html">Linear Types Can Help</a></li>
<li>[video] <a href="https://talks.osfc.io/osfc2021/talk/JTWYEH/">On Hubris and Humility: developing an OS for robustness in Rust</a> <a href="https://cliffle.com/blog/on-hubris-and-humility/">text version</a></li>
</ul>
<h3 id="rust-walkthroughs">Rust Walkthroughs</h3>
<ul>
<li><a href="https://kerkour.com/rust-file-encryption">How to encrypt a file in Rust (Using streaming AEAD encryption)</a></li>
<li><a href="https://reltech.substack.com/p/getting-started-with-rust-on-a-raspberry-a88">Getting Started with Rust on a Raspberry Pi Pico (Part 3)</a></li>
<li><a href="https://scrabsha.github.io/abcr-issue-0/">A better cargo-readme - Issue 0: Humble Beginning</a></li>
<li><a href="https://edger.substack.com/p/how-to-overriding-patch-cargo-dependencies">How to Overriding (Patch) Cargo Dependencies</a></li>
<li><a href="https://hugopeters.me/posts/14/">Higher Kinded Types in Rust</a></li>
<li><a href="https://vino.dev/blog/node-to-rust-day-1-rustup/">Node to Rust: Day 1 - From nvm to rustup</a></li>
<li><a href="https://dev.to/michaelin007/creating-a-web-page-with-actix-web-rust--2agd">Creating a Web Page with Actix-Web (Rust)</a></li>
<li>[video] <a href="https://www.youtube.com/watch?v=TQaCyC_tGko">rg3d - live game development #2</a></li>
<li>[video] <a href="https://www.youtube.com/watch?v=hJ9IO-nYpjs">1Password Developer Fireside Chat: Ownership &amp; Mutability Patterns in Rust</a></li>
<li>[video] [series] <a href="https://www.youtube.com/channel/UCevTibyeBGT1ybiGzROnsfw">Advent of Code in Rust by Lucille Blumire</a></li>
<li>[video] [series] <a href="https://www.youtube.com/playlist?list=PL2F_NKy2ueKOpAVPl-c3szUXuwB7K9sDq">Solving Advent of Code 2021 in Rust by Yoshua Wuyts</a></li>
<li>[video] [series] <a href="https://www.youtube.com/watch?v=pgD7m02-XnI">Writing a Programming Language (in Rust) 9: Implementing Value References</a></li>
</ul>
<h3 id="miscellaneous">Miscellaneous</h3>
<ul>
<li><a href="https://nostarch.com/blog/jon-gjengset-talks-rust">Live Coder Jon Gjengset Gets into the Nitty-Gritty of Rust</a></li>
<li><a href="https://aws.amazon.com/about-aws/whats-new/2021/12/aws-sdk-rust-developer-preview/">AWS SDK for Rust (Developer Preview)</a></li>
<li>[BR-pt] <a href="https://github.com/luisvonmuller/Esta-Semana-Em-Rust/blob/main/%23419.md">Esta Semana em Rust #419</a></li>
</ul>
<h2 id="crate-of-the-week">Crate of the Week</h2>
<p>This week's crate is <a href="https://crates.io/crates/tap">tap</a>, a library with extension traits to provide suffix-position pipeline behavior.</p>
<p>Thanks to <a href="https://users.rust-lang.org/t/crate-of-the-week/2704/988">David Mason</a> for the suggestion!</p>
<p><a href="https://users.rust-lang.org/t/crate-of-the-week/2704">Please submit your suggestions and votes for next week</a>!</p>
<h2 id="call-for-participation">Call for Participation</h2>
<p>Always wanted to contribute to open-source projects but didn't know where to start?
Every week we highlight some tasks from the Rust community for you to pick and get started!</p>
<p>Some of these tasks may also have mentors available, visit the task page for more information.</p>
<p>If you are a Rust project owner and are looking for contributors, please submit tasks <a href="https://users.rust-lang.org/t/twir-call-for-participation/4821">here</a>.</p>
<h2 id="updates-from-the-rust-project">Updates from the Rust Project</h2>
<p>286 pull requests were <a href="https://github.com/search?q=is%3Apr+org%3Arust-lang+is%3Amerged+merged%3A2021-11-29..2021-12-06">merged in the last week</a></p>
<ul>
<li><a href="https://github.com/rust-lang/rust/pull/91393">Optimize <code>rustc_lexer</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91207">Add support for LLVM coverage mapping format versions 5 and 6</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91284">Add support for riscv64gc-unknown-freebsd</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91367">Fix ICE in <code>check_must_not_suspend_ty()</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91488">Fix ICE when <code>yield</code>ing in function returning <code>impl Trait</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91450">Don't suggest types whose inner type is erroneous</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91366">Only show notable traits if both types are the same</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91435">Improve diagnostic for missing half of binary operator in <code>if</code> condition</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91298">Improve error message for <code>E0659</code> if the source is not available</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91364">Improve error message for incorrect field accesses through raw pointers</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91346">Add <code>Option::inspect</code> and <code>Result::{inspect, inspect_err}</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/87054">Add a <code>try_reduce</code> method to the <code>Iterator</code> trait</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/88502">Add slice <code>take</code> methods</a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91286">Make <code>array::</code>{<code>try_from_fn</code>, <code>try_map</code>} and <code>Iterator::try_find</code> generic over <code>Try</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91352">Introduce <code>RawVec::reserve_for_push</code></a></li>
<li><a href="https://github.com/rust-lang/rust/pull/91215">Implement <code>VecDeque::retain_mut</code></a></li>
<li><a href="https://github.com/rust-lang/libc/pull/2577">libc: Define <code>max_align_t</code> for wasi</a></li>
<li><a href="https://github.com/rust-lang/portable-simd/pull/195">portable-simd: Generic <code>core::ops</code> for <code>Simd&lt;T, _&gt;</code></a></li>
<li><a href="https://github.com/rust-lang/cargo/pull/10165">cargo: Stabilize <code>future-incompat-report</code></a></li>
<li><a href="https://github.com/rust-lang/cargo/pull/10133">cargo: Support abbreviating <code>--release</code> as <code>-r</code></a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/8074">clippy: Consider <code>NonNull</code> as a pointer type</a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/8067">clippy: Escape backslash in <code>single_char_pattern.rs</code></a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/7463">clippy: Fix <code>any()</code> not taking reference in <code>search_is_some</code> lint</a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/8077">clippy: Fix some false negatives for <code>single_char_pattern</code></a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/8066">clippy: Parenthesize blocks in <code>needless_bool</code> suggestion</a></li>
<li><a href="https://github.com/rust-lang/rust-clippy/pull/8054">clippy: Upgrade <code>map_flatten</code> to complexity</a></li>
<li><a href="https://github.com/rust-lang/rustfmt/pull/5097">rustfmt: Determine when new comment lines are needed for itemized blocks</a></li>
</ul>
<h3 id="rust-compiler-performance-triage">Rust Compiler Performance Triage</h3>
<p>A week of mostly rather small changes with many regressions being hard to diagnose. The largest regression comes from the introduction of a new future (desugaring <code>.await</code> into a call to <code>IntoFuture::into_future</code>). This was deemed acceptable as it only seems to have a negative impact in stress test situations where async/await is used more than one would normally expect. Unfortunately this does mean regressions beat out improvements this week.</p>
<p>Triage done by <strong>@rylev</strong>.
Revision range: <a href="https://perf.rust-lang.org/?start=1c0287830e0fb3c4007afea2819ba03766da6e9c&amp;end=ecb65b0e170fc5275870c9d0fba7267a57cf35e5&amp;absolute=false&amp;stat=instructions%3Au">1c0287..ecb65b</a></p>
<p>3 Regressions, 5 Improvements, 5 Mixed; 3 of them in rollups
31 comparisons made in total</p>
<p><a href="https://github.com/rust-lang/rustc-perf/blob/master/triage/2021-12-07.md">Full report here</a></p>
<h3 id="approved-rfcs"><a href="https://github.com/rust-lang/rfcs/commits/master">Approved RFCs</a></h3>
<p>Changes to Rust follow the Rust <a href="https://github.com/rust-lang/rfcs#rust-rfcs">RFC (request for comments) process</a>. These
are the RFCs that were approved for implementation this week:</p>
<ul>
<li><a href="https://github.com/rust-lang/rfcs/commit/69833de7b46a571c6110c9ffc0796aeabde335ff">Static async fn in traits</a></li>
</ul>
<h3 id="final-comment-period">Final Comment Period</h3>
<p>Every week <a href="https://www.rust-lang.org/team.html">the team</a> announces the
'final comment period' for RFCs and key PRs which are reaching a
decision. Express your opinions now.</p>
<h4 id="rfcs"><a href="https://github.com/rust-lang/rfcs/labels/final-comment-period">RFCs</a></h4>
<ul>
<li><em>No RFCs entered final comment period this week.</em></li>
</ul>
<h4 id="tracking-issues-prs"><a href="https://github.com/rust-lang/rust/issues?q=is%3Aopen+label%3Afinal-comment-period+sort%3Aupdated-desc">Tracking Issues &amp; PRs</a></h4>
<ul>
<li>[disposition: merge] <a href="https://github.com/rust-lang/rust/pull/90586">Relax priv-in-pub lint on generic bounds and where clauses of trait impls.</a></li>
</ul>
<h3 id="new-rfcs"><a href="https://github.com/rust-lang/rfcs/pulls">New RFCs</a></h3>
<ul>
<li><a href="https://github.com/rust-lang/rfcs/pull/3204">RFC: Alignment niches for references types.</a></li>
</ul>
<h2 id="upcoming-events">Upcoming Events</h2>
<p>Rusty Events between 12/01-12/15 🦀</p>
<h3 id="online">Online</h3>
<ul>
<li><a href="https://www.meetup.com/NewSpace-NYC/events/282320805">December 3, 2021 | New York City, NY, US | <strong>Getting started in aerospace with Rust 🦀</strong> | NewSpace NYC</a>.</li>
<li><a href="https://berline.rs/2021/12/07/rust-hack-and-learn.html">December 7, 2021 | Berlin, DE | <strong>Rust Hack and Learn</strong> | Berline.rs, a Berlin-local Rust community</a></li>
<li><a href="https://www.meetup.com/Buffalo-Rust-Meetup/events/281833990/">December 7, 2021 | Buffalo, NY, US | <strong>First Tuesdays: Buffalo Rust User Group</strong> | Buffalo Rust Meetup</a></li>
<li><a href="https://www.meetup.com/the-south-padre-island-reading-group/events/281685234/">December 7, 2021 | South Padre Island, TX, US | <strong>Tuesdays - Book #24 - Rust for Rustaceans - Chapter 1</strong> | Los Gatos Reading Group (South Padre Island)</a></li>
<li><a href="https://www.meetup.com/Rust-Los-Angeles/events/281944671">December 8, 2021 | Los Angeles, CA, US | <strong>Introduction to Photogrammetry with Geordon Worley [Virtual] Dec. 2021</strong> | Rust Los Angeles</a></li>
<li><a href="https://www.meetup.com/Rust-Los-Angeles/events/281944671/">December 8, 2021 | Los Angeles, CA, US | <strong>Rust Computer Vision Project with Geordon Worley</strong> | Rust Los Angeles</a></li>
<li><a href="https://www.meetup.com/Rust-Community-Stuttgart/events/282009864">December 8, 2021 | Stuttgart, DE | <strong>Rust-Meetup</strong> | Rust Community Stuttgart</a></li>
<li><a href="https://www.meetup.com/columbus-rs/events/dpkhgryccqbmb/">December 9, 2021 | Columbus, OH, US | <strong>Second Thursdays: Monthly Meetup</strong> | Columbus Rust Society</a></li>
<li><a href="https://www.meetup.com/Rust-London-User-Group/events/282343516/">December 9, 2021 | London, UK | <strong>Rust London x TrueLayer Takeover &amp; Christmas Party</strong> | Rust London User Group</a></li>
<li><a href="https://www.meetup.com/Rust-Oslo/events/281877640/">December 9, 2021 | Oslo, NO | <strong>Rust Oslo @ Rebel w/Carol (Nichols || Goulding)</strong>| Rust Oslo</a></li>
<li><a href="https://www.meetup.com/San-Diego-Rust/events/282433355">December 9, 2021 | San Diego, CA, US | <strong>San Diego Rust December 2021 Tele-Meetup</strong> | San Diego Rust</a></li>
<li><a href="https://www.meetup.com/8th-light-university/events/282381279">December 10, 2021 | Chicago, IL, US | <strong>8LU Keynote by Eric Smith - Write Your Game in Rust!</strong> | 8th Light University</a></li>
<li><a href="https://www.meetup.com/Rust-Nairobi/events/282377713/">December 11, 2021 | Nairobi, KE | <strong>Rust Catchup 2021</strong> | Rust Nairobi</a></li>
<li><a href="https://www.meetup.com/fp-eug/events/282533185">December 13, 2021 | Eugene, OR, US | <strong>Mondays - Book-Club - Rust Programming Language</strong> | Functional Programming - Eugene</a></li>
<li><a href="https://www.meetup.com/the-south-padre-island-reading-group/events/282555459/">December 14, 2021 | South Padre Island, TX, US | <strong>Tuesdays - Book #24 - Rust for Rustaceans - Chapter 1 (session 2)</strong> | Los Gatos Reading Group (South Padre Island)</a></li>
<li><a href="https://www.meetup.com/Seattle-Rust-Meetup/events/281875277">December 14, 2021 | Seattle, WA, US | <strong>Monthly Meetup</strong> | Seattle Rust Meetup</a></li>
</ul>
<h3 id="north-america">North America</h3>
<ul>
<li><a href="https://www.meetup.com/minneapolis-rust-meetup-group/events/282526064/">December 14, 2021 | Minneapolis, MN, US | <strong>First Meetup</strong> | Minneapolis Rust Meetup Group</a></li>
<li><a href="https://www.meetup.com/Rust-NYC/events/282478738/">December 14, 2021 | New York, NY, US | <strong>Presentation by Chelsea E. Manning: Rust on Arduino-style microcontrollers</strong> | Rust NYC</a></li>
</ul>
<h3 id="europe">Europe</h3>
<ul>
<li><a href="https://rustcon.ru">December 3, 2021 | Moscow, RU | <strong>Rust Con</strong> | RustCon.ru</a></li>
<li><a href="https://www.meetup.com/Rust-London-User-Group/events/282343516/">December 9, 2021 | London, UK | <strong>Rust London x TrueLayer Takeover &amp; Christmas Party</strong> | Rust London User Group</a></li>
</ul>
<p>If you are running a Rust event please add it to the <a href="https://www.google.com/calendar/embed?src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com">calendar</a> to get
it mentioned here. Please remember to add a link to the event too.
Email the <a href="mailto:community-team@rust-lang.org">Rust Community Team</a> for access.</p>
<h1 id="rust-jobs">Rust Jobs</h1>
<p><strong>DeepSource</strong></p>
<ul>
<li><a href="https://careers.deepsource.io/o/software-engineer-static-analysis-rust">Software Engineer, Static Analysis - Rust (Bangalore, India)</a></li>
</ul>
<p><strong>Clear</strong></p>
<ul>
<li><a href="https://docs.google.com/document/d/1OuG5Ts_6s4eWO6CXGzcbklOweD7qGnOgADnSoPjEa10/edit">Full Stack Developer (Remote)</a></li>
</ul>
<p><strong>Pixy</strong></p>
<ul>
<li><a href="https://www.bigeyestudios.com/job-board">Rust Developer Position</a></li>
</ul>
<p><strong>Bionaut Labs</strong></p>
<ul>
<li><a href="https://www.indeed.com/viewjob?jk=775772a2587b4a1e">Embedded Software Engineer (Senior) (Los Angeles, CA, US)</a></li>
<li><a href="https://www.indeed.com/viewjob?jk=030a274941d1f7ac">Embedded Software Engineer (Junior) (Los Angeles, CA, US)</a></li>
</ul>
<p><strong>Metawork</strong></p>
<ul>
<li><a href="https://jobs.ashbyhq.com/metawork/51d61a87-d4b8-4ed2-a49b-abb4b2247b30">Infrastructure Engineer (Remote US)</a></li>
<li><a href="https://jobs.ashbyhq.com/metawork/90575f85-de36-461e-a540-fbee126ad186">Platform Engineer (Remote US)</a></li>
</ul>
<p><em>Tweet us at <a href="https://twitter.com/ThisWeekInRust">@ThisWeekInRust</a> to get your job offers listed here!</em></p>
<h1 id="quote-of-the-week">Quote of the Week</h1>
<blockquote>
<p>v2 of the patch-series "to add support for Rust as a second language to the Linux kernel" was posted to LKML [..]</p>
<p>There have been several improvements to the overall Rust support since RFC and v2 described in the linked mail.</p>
</blockquote>
<p> <a href="https://twitter.com/kernellogger/status/1467874273582886921?s=20">Thorsten Leemhuis on twitter</a></p>
<p>llogiq unanimously suggested and voted that this be our quote for this week.</p>
<p><a href="https://users.rust-lang.org/t/twir-quote-of-the-week/328">Please submit quotes and vote for next week!</a></p>
<p><em>This Week in Rust is edited by: <a href="https://github.com/nellshamrell">nellshamrell</a>, <a href="https://github.com/llogiq">llogiq</a>, <a href="https://github.com/cdmistman">cdmistman</a>, <a href="https://github.com/ericseppanen">ericseppanen</a>, <a href="https://github.com/extrawurst">extrawurst</a>, <a href="https://github.com/andrewpollack">andrewpollack</a>, <a href="https://github.com/U007D">U007D</a>, <a href="https://github.com/kolharsam">kolharsam</a>, <a href="https://github.com/joelmarcey">joelmarcey</a>, <a href="https://github.com/mariannegoldin">mariannegoldin</a>.</em></p>
<p><em>Email list hosting is sponsored by <a href="https://foundation.rust-lang.org/">The Rust Foundation</a></em></p>
<p><small><a href="https://www.reddit.com/r/rust/comments/rc84ta/this_week_in_rust_420/">Discuss on r/rust</a></small></p>