<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <generator uri="https://blog.rust-lang.org/" version="0.1.0">Rust Blog</generator>
    <link href="https://blog.rust-lang.org/feed.xml" rel="self" type="application/atom+xml" />
    <link href="https://blog.rust-lang.org/" rel="alternate" type="text/html" />
    <id>https://blog.rust-lang.org/</id>
    <title>Rust Blog</title>
    <subtitle>Empowering everyone to build reliable and efficient software.</subtitle>
    <author>
        <name>Maintained by the Rust Teams.</name>
        <uri>https://github.com/rust-lang/blog.rust-lang.org/</uri>
    </author>
    <updated>2026-05-13T19:44:04+00:00</updated>

    
    <entry>
        <title>Rust is participating in Outreachy</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/05/04/outreachy-2026-may/" type="text/html" title="Rust is participating in Outreachy" />
        <published>2026-05-04T00:00:00+00:00</published>
        <updated>2026-05-04T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/05/04/outreachy-2026-may/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/05/04/outreachy-2026-may/">&lt;p&gt;The Rust Project has been building up a good history of participating in various open-source mentorship programs, including &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/&quot;&gt;Google Summer of Code&lt;/a&gt; for three years (including this year) and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2024/05/07/OSPP-2024/&quot;&gt;previously OSPP&lt;/a&gt;. We&#x27;re happy to announce that this year we are also participating in &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.outreachy.org/&quot;&gt;Outreachy&lt;/a&gt; starting in the May 2026 cohort.&lt;/p&gt;
&lt;p&gt;Each of these mentorship programs has different criteria for eligibility depending on who they target and the motivations of the program. Outreachy provides internships in open source, to people from any background who face underrepresentation, systemic bias, or discrimination in the technical industry where they are living. You can learn more about the Outreachy program &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.outreachy.org/&quot;&gt;on their website&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-is-outreachy-and-how-is-it-different-than-google-summer-of-code&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-is-outreachy-and-how-is-it-different-than-google-summer-of-code&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What is Outreachy and how is it different than Google Summer of Code&lt;/h2&gt;
&lt;p&gt;Outreachy is similar to Google Summer of Code (GSoC) in some aspects, but different in others. First off, unlike GSoC, Outreachy interns first apply to the overall program and only &lt;em&gt;then&lt;/em&gt; can apply to specific communities. Second, while oftentimes GSoC applicants submit various contributions prior to their application, Outreachy has a dedicated period where contributions are not just optional, but required. Finally, Outreachy applicants submit an application similar to GSoC applications and communities pick interns based on those applications and the interns&#x27; contributions. Outreachy has two internship periods per year, one running from May to August (in which we are currently participating) and one from December to March.&lt;/p&gt;
&lt;p&gt;The other major difference between Google Summer of Code and Outreachy is the source of intern stipends. For GSoC, Google graciously covers contributor stipends and overhead. For Outreachy, communities instead cover the interns&#x27; stipends and overhead.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;we-are-mentoring-4-interns-for-the-may-2026-cohort&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#we-are-mentoring-4-interns-for-the-may-2026-cohort&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
We are mentoring 4 interns for the May 2026 cohort&lt;/h2&gt;
&lt;p&gt;Because of limited funding availability and mentoring capacity, the Rust Project decided to select four interns for mentorship. We&#x27;ll briefly share these projects below.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;calling-overloaded-c-functions-from-rust&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#calling-overloaded-c-functions-from-rust&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Calling overloaded C++ functions from Rust&lt;/h3&gt;
&lt;p&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.github.com/Ajay-singh1&quot;&gt;Ajay Singh&lt;/a&gt; has been selected, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/teor2345&quot;&gt;teor&lt;/a&gt;, &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/cramertj&quot;&gt;Taylor Cramer&lt;/a&gt;, and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/thunderseethe&quot;&gt;Ethan Smith&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This project aims to implement an experimental feature for calling overloaded C++ functions from Rust, and to begin testing that feature in a few representative use cases.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;code-coverage-of-the-rust-compiler-at-scale&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#code-coverage-of-the-rust-compiler-at-scale&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Code coverage of the Rust compiler at scale&lt;/h3&gt;
&lt;p&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/akintewe&quot;&gt;Akintewe Oluwasola&lt;/a&gt; has been selected, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/jackh726/&quot;&gt;Jack Huey&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This project aims to develop the workflows to run and analyze code coverage of the compiler at the scale of the entire compiler test suite and on ecosystem crates detected by crater. The hope is to be able to detect when the compiler is inadequately tested, both within the compiler and in the ecosystem, and to build tools to do continuous analysis on this.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;fuzzing-the-a-mir-formality-type-system-implementation&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#fuzzing-the-a-mir-formality-type-system-implementation&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Fuzzing the a-mir-formality type system implementation&lt;/h3&gt;
&lt;p&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/System625&quot;&gt;Tunde-Ajayi Olamiposi&lt;/a&gt; has been selected, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/nikomatsakis/&quot;&gt;Niko Matsakis&lt;/a&gt;, &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/lqd/&quot;&gt;Rémy Rakic&lt;/a&gt;, and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/tiif&quot;&gt;tiif&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This project aims to implement fuzzing for &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/a-mir-formality/&quot;&gt;a-mir-formality&lt;/a&gt;, an in-progress model for Rust&#x27;s type and trait system.  The goal is to generate programs in order to identify rules with underspecified semantics in a-mir-formality.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;improve-the-security-of-github-actions-of-the-rust-project&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#improve-the-security-of-github-actions-of-the-rust-project&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Improve the security of GitHub Actions of the Rust Project&lt;/h3&gt;
&lt;p&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rukysandy&quot;&gt;oghenerukevwe Sandra Idjighere&lt;/a&gt; has been selected, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/marcoieni&quot;&gt;Marco Ieni&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/ubiratansoares&quot;&gt;Ubiratan Soares&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This project aims to improve the security of GitHub Actions workflows of the repositories owned by the Rust Project. It will develop tools and workflows, integrating with existing software, to analyze Github repositories and detect if they follow the best security practices, fix existing issues, and ensure that good security practices are followed in the future.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-s-next&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-s-next&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What&#x27;s next&lt;/h2&gt;
&lt;p&gt;Over the next 3 months, the interns will work closely with their mentors to make progress on their projects. When the internship period is over, we&#x27;ll write another blog post to share the results! See you then!&lt;/p&gt;
&lt;p&gt;We also want to thank all the people that submitted applications and made contributions. It was quite tough to decide which applicants to select. Hopefully we will participate in Outreachy again in the future and there are other opportunities to participate. We also very much welcome you to stick around and continue being involved - there is a ton of places in the Rust Project with opportunities to be involved.&lt;/p&gt;
</content>

        <author>
            <name>Jack Huey</name>
        </author>
    </entry>
    <entry>
        <title>Raising the baseline for the &#x60;nvptx64-nvidia-cuda&#x60; target</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/05/01/nvptx-baseline-update/" type="text/html" title="Raising the baseline for the &#x60;nvptx64-nvidia-cuda&#x60; target" />
        <published>2026-05-01T00:00:00+00:00</published>
        <updated>2026-05-01T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/05/01/nvptx-baseline-update/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/05/01/nvptx-baseline-update/">&lt;p&gt;The &lt;code&gt;nvptx64-nvidia-cuda&lt;/code&gt; target is a compilation target for NVIDIA GPUs. When using this target, the final output is &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://docs.nvidia.com/cuda/parallel-thread-execution/index.html&quot;&gt;PTX&lt;/a&gt;. Two version choices shape that output:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a GPU architecture (for example, &lt;code&gt;sm_70&lt;/code&gt;, &lt;code&gt;sm_80&lt;/code&gt;, …), which determines which GPUs can run the PTX, and&lt;/li&gt;
&lt;li&gt;a PTX ISA version, which determines which CUDA driver versions can load (and JIT-compile) the PTX.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In Rust 1.97 (scheduled for release on July 9, 2026), the baseline PTX ISA version and GPU architecture for &lt;code&gt;nvptx64-nvidia-cuda&lt;/code&gt; will be &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/compiler-team/issues/965&quot;&gt;increased&lt;/a&gt;. These changes affect both the Rust compiler (&lt;code&gt;rustc&lt;/code&gt;) and related host tooling, and they make it impossible to generate PTX artifacts compatible with older GPUs and older CUDA drivers.&lt;/p&gt;
&lt;p&gt;The new minimum supported versions will be:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;PTX ISA 7.0&lt;/strong&gt; (requires a CUDA 11 driver or newer)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SM 7.0&lt;/strong&gt; (GPUs with compute capability below 7.0 are no longer supported)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id&#x3D;&quot;why-are-the-requirements-being-changed&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#why-are-the-requirements-being-changed&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Why are the requirements being changed?&lt;/h2&gt;
&lt;p&gt;Until now, Rust has supported emitting PTX for a wide range of GPU architectures and PTX ISA versions. In practice, several defects existed that could cause valid Rust code to trigger compiler crashes or miscompilations. Raising the baseline addresses these issues and enables more complete support for the remaining supported hardware.&lt;/p&gt;
&lt;p&gt;Removing support affects users of the architectures being removed. In this case, the most recent affected GPU architectures date back to 2017 and are no longer actively supported by NVIDIA. We therefore expect the overall impact of this change to be limited.&lt;/p&gt;
&lt;p&gt;Maintaining support for these architectures would require substantial effort. These removals let us focus development efforts on improving correctness and performance for currently supported hardware.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-happens-when-i-update-to-rust-1-97&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-happens-when-i-update-to-rust-1-97&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What happens when I update to Rust 1.97?&lt;/h2&gt;
&lt;p&gt;If you need to target a CUDA driver that does not support PTX ISA 7.0 (CUDA 10-era drivers and older), Rust 1.97 will no longer be able to generate PTX compatible with that environment. Similarly, if you need to run on GPUs with compute capability below 7.0 (for example, Maxwell or Pascal), Rust 1.97 will no longer be able to generate compatible PTX for those GPUs.&lt;/p&gt;
&lt;p&gt;Assuming you are targeting a CUDA driver compatible with CUDA 11 or newer and using GPUs with compute capability 7.0 or newer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If you do &lt;strong&gt;not&lt;/strong&gt; specify &lt;code&gt;-C target-cpu&lt;/code&gt;, the new default will be &lt;code&gt;sm_70&lt;/code&gt;, and your build should continue to work (but will no longer be compatible with pre-Volta GPUs).&lt;/li&gt;
&lt;li&gt;If you currently specify an older &lt;code&gt;-C target-cpu&lt;/code&gt; (for example, &lt;code&gt;sm_60&lt;/code&gt;), you will need to either:
&lt;ul&gt;
&lt;li&gt;remove that flag and let it default to &lt;code&gt;sm_70&lt;/code&gt;, or&lt;/li&gt;
&lt;li&gt;update it to &lt;code&gt;sm_70&lt;/code&gt; or a newer architecture.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If you already specify &lt;code&gt;-C target-cpu&#x3D;sm_70&lt;/code&gt; (or newer), there should be no behavioral changes from this update.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more details on building and configuring &lt;code&gt;nvptx64-nvidia-cuda&lt;/code&gt;, see &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/rustc/platform-support/nvptx64-nvidia-cuda.html&quot;&gt;the platform support documentation&lt;/a&gt;.&lt;/p&gt;
</content>

        <author>
            <name>Kjetil Kjeka</name>
        </author>
    </entry>
    <entry>
        <title>Announcing Google Summer of Code 2026 selected projects</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/" type="text/html" title="Announcing Google Summer of Code 2026 selected projects" />
        <published>2026-04-30T00:00:00+00:00</published>
        <updated>2026-04-30T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/04/30/gsoc-2026-selected-projects/">&lt;p&gt;As &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2026/02/19/Rust-participates-in-GSoC-2026/&quot;&gt;previously announced&lt;/a&gt;, the Rust Project is participating in &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com&quot;&gt;Google Summer of Code (GSoC)&lt;/a&gt; 2026. GSoC is a global program organized by Google that is designed to bring new contributors to the world of open source.&lt;/p&gt;
&lt;p&gt;A few months ago, we published a list of &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/google-summer-of-code&quot;&gt;GSoC project ideas&lt;/a&gt;, and started discussing these projects with potential GSoC applicants on our &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://rust-lang.zulipchat.com/#narrow/stream/421156-gsoc&quot;&gt;Zulip&lt;/a&gt;. We had many interesting discussions with the potential contributors, and even saw some of them making non-trivial contributions to various Rust Project repositories before GSoC officially started!&lt;/p&gt;
&lt;p&gt;The applicants prepared and submitted their project proposals by the end of March. This year, we received 96 proposals, which is a 50% increase from last year. We are glad that there was again a lot of interest in our projects! Like many other GSoC organizations this year, we somewhat struggled with some AI-generated proposals and low-quality contributions generated using AI agents, but it stayed manageable.&lt;/p&gt;
&lt;p&gt;GSoC requires us to produce an ordered list of the best proposals, which is always challenging, as Rust is a big project with many priorities. Our mentors examined the submitted proposals and evaluated them based on their prior interactions with the given applicant, their contributions so far, the quality of the proposal itself, but also the importance of the proposed project for the Rust Project and its wider community. We also had to take mentor bandwidth and availability into account. Unfortunately, we had to cancel some projects due to several mentors losing their funding for Rust work in the past few weeks.&lt;/p&gt;
&lt;p&gt;As is usual in GSoC, even though some project topics received multiple proposals&lt;sup class&#x3D;&quot;footnote-reference&quot; id&#x3D;&quot;fr-most-popular-1&quot;&gt;&lt;a href&#x3D;&quot;#fn-most-popular&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;, we had to pick only one proposal per project topic. We also had to choose between proposals targeting different work to avoid overloading a single mentor with multiple projects. In the end, we narrowed the list down to the best proposals that we could still realistically support with our available mentor pool. We submitted this list and eagerly awaited how many of them would be accepted into GSoC.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;selected-projects&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#selected-projects&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Selected projects&lt;/h2&gt;
&lt;p&gt;On the 30th of April, Google has announced the accepted projects. We are happy to share that &lt;strong&gt;13&lt;/strong&gt; Rust Project proposals were accepted by Google for Google Summer of Code 2026. That is a lot of projects! We are really happy and excited about GSoC 2026!&lt;/p&gt;
&lt;p&gt;Below you can find the list of accepted proposals (in alphabetical order), along with the names of their authors and the assigned mentor(s):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/eF3fkjrN&quot;&gt;A Frontend for Safe GPU Offloading in Rust&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/sa4dus&quot;&gt;Marcelo Domínguez&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/ZuseZ4&quot;&gt;Manuel Drehwald&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/Fx0vHvcq&quot;&gt;Adding WebAssembly Linking Support to Wild&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/lapla-cogito&quot;&gt;Kei Akiyama&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/davidlattimore&quot;&gt;David Lattimore&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/Wg1mCCHL&quot;&gt;Bringing autodiff and offload into Rust CI&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/sgasho&quot;&gt;Shota Sugano&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/ZuseZ4&quot;&gt;Manuel Drehwald&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/TBpqK07H&quot;&gt;Debugger for Miri&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/moabo3li&quot;&gt;Mohamed Ali Mohamed&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/oli-obk&quot;&gt;Oli Scherer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/xFrskRCv&quot;&gt;Implementing impl and mut restrictions&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/CoCo-Japan-pan&quot;&gt;Ryosuke Yamano&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/jhpratt&quot;&gt;Jacob Pratt&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Urgau&quot;&gt;Urgau&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/g4xMTT5l&quot;&gt;Improving Ergonomics and Safety of serialport-rs&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/NONnonHere&quot;&gt;Tanmay&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/sirhcel&quot;&gt;Christian Meusel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/AObylxqh&quot;&gt;libc: transition differing bit-width time and offset variants and deprecate bug-prone constants&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/dybucc&quot;&gt;Adam Martinez&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/tgross35&quot;&gt;Trevor Gross&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/svblODn5&quot;&gt;Link Linux kernel and its Modules with Wild&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/vishruth-thimmaiah&quot;&gt;Vishruth Thimmaiah&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/davidlattimore&quot;&gt;David Lattimore&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/lif4YQOE&quot;&gt;Migrating rust-analyzer assists to SyntaxEditor&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Shourya742&quot;&gt;Shourya Sharma&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/ChayimFriedman2&quot;&gt;Chayim Refael Friedman&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Veykril&quot;&gt;Lukas Wirth&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/Aak8J6RB&quot;&gt;Port std::arch test suite to rust-lang/rust&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/xonx4l&quot;&gt;Sumit Kumar&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Kobzol&quot;&gt;Jakub Beránek&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/folkertdev&quot;&gt;Folkert de Vries&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/l4jlMDP9&quot;&gt;Reorganizing tests/ui/issues&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/zedddie&quot;&gt;zedddie&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Teapot4195&quot;&gt;Teapot&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Kivooeo&quot;&gt;Kivooeo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/gzkF5BG0&quot;&gt;Utilize debugger APIs to improve debug info test accuracy and error reporting&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Walnut356&quot;&gt;Anthony Bolden&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Kobzol&quot;&gt;Jakub Beránek&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/jieyouxu&quot;&gt;Jieyou Xu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://summerofcode.withgoogle.com/programs/2026/projects/jP7dTlN6&quot;&gt;XDG path support for rustup&lt;/a&gt;&lt;/strong&gt; by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Cloud0310&quot;&gt;Guicheng Liu&lt;/a&gt;, mentored by &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rami3l&quot;&gt;rami3l&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Congratulations to all applicants whose project was selected!&lt;/strong&gt; Our mentors are looking forward to working with you on these exciting projects to improve the Rust ecosystem. You can expect to hear from us soon, so that we can start coordinating the work on your GSoC projects.&lt;/p&gt;
&lt;p&gt;We are excited to mentor three contributors who already experienced GSoC with us in the previous year. Welcome back, Kei, Marcelo and Shourya!&lt;/p&gt;
&lt;p&gt;We would like to thank all the applicants whose proposal was sadly not accepted, for their interactions with the Rust community and contributions to various Rust projects. There were some great proposals that did not make the cut, in large part because of limited mentorship capacity. However, even if your proposal was not accepted, we would be happy if you would consider contributing to the projects that got you interested, even outside GSoC! Our &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/google-summer-of-code&quot;&gt;project idea list&lt;/a&gt; is still current and could serve as a general entry point for contributors that would like to work on projects that would help the Rust Project and the Rust ecosystem. Some of the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://rust-lang.github.io/rust-project-goals/2026/goals.html&quot;&gt;Rust Project Goals&lt;/a&gt; are also looking for help.&lt;/p&gt;
&lt;p&gt;There is a good chance we&#x27;ll participate in GSoC next year as well (though we can&#x27;t promise anything at this moment), so we hope to receive your proposals again in the future!&lt;/p&gt;
&lt;p&gt;The accepted GSoC projects will run for several months. After GSoC 2026 finishes (in autumn of 2026), we will publish a blog post in which we will summarize the outcome of the accepted projects.&lt;/p&gt;
&lt;section class&#x3D;&quot;footnotes&quot;&gt;
&lt;ol class&#x3D;&quot;footnotes-list&quot;&gt;
&lt;li id&#x3D;&quot;fn-most-popular&quot;&gt;
&lt;p&gt;The most popular project topic received fourteen different proposals! &lt;a href&#x3D;&quot;#fr-most-popular-1&quot;&gt;↩&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/section&gt;
</content>

        <author>
            <name>Jakub Beránek</name>
        </author>
    </entry>
    <entry>
        <title>Announcing Rust 1.95.0</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/" type="text/html" title="Announcing Rust 1.95.0" />
        <published>2026-04-16T00:00:00+00:00</published>
        <updated>2026-04-16T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/04/16/Rust-1.95.0/">&lt;p&gt;The Rust team is happy to announce a new version of Rust, 1.95.0. Rust is a programming language empowering everyone to build reliable and efficient software.&lt;/p&gt;
&lt;p&gt;If you have a previous version of Rust installed via &lt;code&gt;rustup&lt;/code&gt;, you can get 1.95.0 with:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;shellsession&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;$&lt;/span&gt;&lt;span&gt; rustup update stable&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&#x27;t have it already, you can &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.rust-lang.org/install.html&quot;&gt;get &lt;code&gt;rustup&lt;/code&gt;&lt;/a&gt; from the appropriate page on our website, and check out the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/releases.html#version-1950-2026-04-16&quot;&gt;detailed release notes for 1.95.0&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you&#x27;d like to help us out by testing future releases, you might consider updating locally to use the beta channel (&lt;code&gt;rustup default beta&lt;/code&gt;) or the nightly channel (&lt;code&gt;rustup default nightly&lt;/code&gt;). Please &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/issues/new/choose&quot;&gt;report&lt;/a&gt; any bugs you might come across!&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-s-in-1-95-0-stable&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-s-in-1-95-0-stable&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What&#x27;s in 1.95.0 stable&lt;/h2&gt;
&lt;h3 id&#x3D;&quot;cfg-select&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#cfg-select&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
&lt;code&gt;cfg_select!&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Rust 1.95 introduces a
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/macro.cfg_select.html&quot;&gt;&lt;code&gt;cfg_select!&lt;/code&gt;&lt;/a&gt;
macro that acts roughly similar to a compile-time &lt;code&gt;match&lt;/code&gt; on &lt;code&gt;cfg&lt;/code&gt;s. This
fulfills the same purpose as the popular
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/cfg-if&quot;&gt;&lt;code&gt;cfg-if&lt;/code&gt;&lt;/a&gt; crate, although with a different
syntax. &lt;code&gt;cfg_select!&lt;/code&gt; expands to the right-hand side of the first arm whose
configuration predicate evaluates to &lt;code&gt;true&lt;/code&gt;. Some examples:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;rust&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;cfg_select!&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    unix&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;        fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; foo&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; /*&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; unix specific functionality &lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt;*/&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    target_pointer_width&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator z-assignment z-keyword z-operator&quot;&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;32&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;        fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; foo&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; /*&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; non-unix, 32-bit functionality &lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt;*/&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    _&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;        fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; foo&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; /*&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; fallback implementation &lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt;*/&lt;/span&gt;&lt;span&gt; }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt;let&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt; is_windows_str&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator z-assignment z-keyword z-operator&quot;&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; cfg_select!&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    windows&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;windows&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    _&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;not windows&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h3 id&#x3D;&quot;if-let-guards-in-matches&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#if-let-guards-in-matches&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
if-let guards in matches&lt;/h3&gt;
&lt;p&gt;Rust 1.88 stabilized &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2025/06/26/Rust-1.88.0/#let-chains&quot;&gt;let chains&lt;/a&gt;. Rust
1.95 brings that capability into match expressions, allowing for conditionals
based on pattern matching.&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;rust&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword z-control&quot;&gt;match&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt; value&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-entity z-name z-type&quot;&gt;    Some&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;x&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-control&quot;&gt; if&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt; let&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-type&quot;&gt; Ok&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;y&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator z-assignment z-keyword z-operator&quot;&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; compute&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;x&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-comment z-comment&quot;&gt;        //&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment z-line z-double-slash z-comment&quot;&gt; Both &#x60;x&#x60; and &#x60;y&#x60; are available here&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;        println!&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;{&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;}&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;, &lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;{&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;}&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt; x&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt; y&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;    _&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note that the compiler will not currently consider the patterns matched in &lt;code&gt;if let&lt;/code&gt; guards as part of the exhaustiveness evaluation of the overall match, just
like &lt;code&gt;if&lt;/code&gt; guards.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;stabilized-apis&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#stabilized-apis&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Stabilized APIs&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-From%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;MaybeUninit&amp;lt;[T; N]&amp;gt;: From&amp;lt;[MaybeUninit&amp;lt;T&amp;gt;; N]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsRef%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;MaybeUninit&amp;lt;[T; N]&amp;gt;: AsRef&amp;lt;[MaybeUninit&amp;lt;T&amp;gt;; N]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsRef%3C%5BMaybeUninit%3CT%3E%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;MaybeUninit&amp;lt;[T; N]&amp;gt;: AsRef&amp;lt;[MaybeUninit&amp;lt;T&amp;gt;]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsMut%3C%5BMaybeUninit%3CT%3E;+N%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;MaybeUninit&amp;lt;[T; N]&amp;gt;: AsMut&amp;lt;[MaybeUninit&amp;lt;T&amp;gt;; N]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-AsMut%3C%5BMaybeUninit%3CT%3E%5D%3E-for-MaybeUninit%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;MaybeUninit&amp;lt;[T; N]&amp;gt;: AsMut&amp;lt;[MaybeUninit&amp;lt;T&amp;gt;]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#impl-From%3CMaybeUninit%3C%5BT;+N%5D%3E%3E-for-%5BMaybeUninit%3CT%3E;+N%5D&quot;&gt;&lt;code&gt;[MaybeUninit&amp;lt;T&amp;gt;; N]: From&amp;lt;MaybeUninit&amp;lt;[T; N]&amp;gt;&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E;+N%5D%3E-for-Cell%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;Cell&amp;lt;[T; N]&amp;gt;: AsRef&amp;lt;[Cell&amp;lt;T&amp;gt;; N]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E%5D%3E-for-Cell%3C%5BT;+N%5D%3E&quot;&gt;&lt;code&gt;Cell&amp;lt;[T; N]&amp;gt;: AsRef&amp;lt;[Cell&amp;lt;T&amp;gt;]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/cell/struct.Cell.html#impl-AsRef%3C%5BCell%3CT%3E%5D%3E-for-Cell%3C%5BT%5D%3E&quot;&gt;&lt;code&gt;Cell&amp;lt;[T]&amp;gt;: AsRef&amp;lt;[Cell&amp;lt;T&amp;gt;]&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/primitive.bool.html#impl-TryFrom%3Cu128%3E-for-bool&quot;&gt;&lt;code&gt;bool: TryFrom&amp;lt;{integer}&amp;gt;&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.update&quot;&gt;&lt;code&gt;AtomicPtr::update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicPtr.html#method.try_update&quot;&gt;&lt;code&gt;AtomicPtr::try_update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicBool.html#method.update&quot;&gt;&lt;code&gt;AtomicBool::update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicBool.html#method.try_update&quot;&gt;&lt;code&gt;AtomicBool::try_update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicIsize.html#method.update&quot;&gt;&lt;code&gt;AtomicIn::update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicIsize.html#method.try_update&quot;&gt;&lt;code&gt;AtomicIn::try_update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicUsize.html#method.update&quot;&gt;&lt;code&gt;AtomicUn::update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/sync/atomic/struct.AtomicUsize.html#method.try_update&quot;&gt;&lt;code&gt;AtomicUn::try_update&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/macro.cfg_select.html&quot;&gt;&lt;code&gt;cfg_select!&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/range/index.html&quot;&gt;&lt;code&gt;mod core::range&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/range/struct.RangeInclusive.html&quot;&gt;&lt;code&gt;core::range::RangeInclusive&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/range/struct.RangeInclusiveIter.html&quot;&gt;&lt;code&gt;core::range::RangeInclusiveIter&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/hint/fn.cold_path.html&quot;&gt;&lt;code&gt;core::hint::cold_path&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_ref_unchecked&quot;&gt;&lt;code&gt;&amp;lt;*const T&amp;gt;::as_ref_unchecked&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_ref_unchecked-1&quot;&gt;&lt;code&gt;&amp;lt;*mut T&amp;gt;::as_ref_unchecked&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.as_mut_unchecked&quot;&gt;&lt;code&gt;&amp;lt;*mut T&amp;gt;::as_mut_unchecked&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.push_mut&quot;&gt;&lt;code&gt;Vec::push_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.insert_mut&quot;&gt;&lt;code&gt;Vec::insert_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.push_front_mut&quot;&gt;&lt;code&gt;VecDeque::push_front_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.push_back_mut&quot;&gt;&lt;code&gt;VecDeque::push_back_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.insert_mut&quot;&gt;&lt;code&gt;VecDeque::insert_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/collections/struct.LinkedList.html#method.push_front_mut&quot;&gt;&lt;code&gt;LinkedList::push_front_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/collections/struct.LinkedList.html#method.push_back_mut&quot;&gt;&lt;code&gt;LinkedList::push_back_mut&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.dangling_ptr&quot;&gt;&lt;code&gt;Layout::dangling_ptr&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.repeat&quot;&gt;&lt;code&gt;Layout::repeat&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.repeat_packed&quot;&gt;&lt;code&gt;Layout::repeat_packed&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.extend_packed&quot;&gt;&lt;code&gt;Layout::extend_packed&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These previously stable APIs are now stable in const contexts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/std/fmt/fn.from_fn.html&quot;&gt;&lt;code&gt;fmt::from_fn&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/ops/enum.ControlFlow.html#method.is_break&quot;&gt;&lt;code&gt;ControlFlow::is_break&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/stable/core/ops/enum.ControlFlow.html#method.is_continue&quot;&gt;&lt;code&gt;ControlFlow::is_continue&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id&#x3D;&quot;destabilized-json-target-specs&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#destabilized-json-target-specs&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Destabilized JSON target specs&lt;/h3&gt;
&lt;p&gt;Rust 1.95 removes support on stable for passing a custom target specification
to &lt;code&gt;rustc&lt;/code&gt;. This should &lt;strong&gt;not&lt;/strong&gt; affect any Rust users using a fully stable
toolchain, as building the standard library (including just &lt;code&gt;core&lt;/code&gt;) already
required using nightly-only features.&lt;/p&gt;
&lt;p&gt;We&#x27;re also gathering use cases for custom targets on the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/issues/151528&quot;&gt;tracking issue&lt;/a&gt;
as we consider whether some form of this feature should eventually be stabilized.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;other-changes&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#other-changes&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Other changes&lt;/h3&gt;
&lt;p&gt;Check out everything that changed in &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/releases/tag/1.95.0&quot;&gt;Rust&lt;/a&gt;, &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-195-2026-04-16&quot;&gt;Cargo&lt;/a&gt;, and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-195&quot;&gt;Clippy&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;contributors-to-1-95-0&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#contributors-to-1-95-0&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Contributors to 1.95.0&lt;/h2&gt;
&lt;p&gt;Many people came together to create Rust 1.95.0. We couldn&#x27;t have done it without all of you. &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://thanks.rust-lang.org/rust/1.95.0/&quot;&gt;Thanks!&lt;/a&gt;&lt;/p&gt;
</content>

        <author>
            <name>The Rust Release Team</name>
        </author>
    </entry>
    <entry>
        <title>docs.rs: building fewer targets by default</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/04/04/docsrs-only-default-targets/" type="text/html" title="docs.rs: building fewer targets by default" />
        <published>2026-04-04T00:00:00+00:00</published>
        <updated>2026-04-04T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/04/04/docsrs-only-default-targets/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/04/04/docsrs-only-default-targets/">&lt;h1 id&#x3D;&quot;building-fewer-targets-by-default&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#building-fewer-targets-by-default&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Building fewer targets by default&lt;/h1&gt;
&lt;p&gt;On &lt;strong&gt;2026-05-01&lt;/strong&gt;, docs.rs will make a &lt;strong&gt;breaking&lt;/strong&gt; change to its build
behavior.&lt;/p&gt;
&lt;p&gt;Today, if a crate does not define a &lt;code&gt;targets&lt;/code&gt; list in its
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://docs.rs/about/metadata&quot;&gt;docs.rs metadata&lt;/a&gt;, docs.rs builds documentation for a default
list of five targets.&lt;/p&gt;
&lt;p&gt;Starting on &lt;strong&gt;2026-05-01&lt;/strong&gt;, docs.rs will instead build documentation for only
the default target unless additional targets are requested explicitly.&lt;/p&gt;
&lt;p&gt;This is the next step in a change we first introduced in 2020, when docs.rs
added support for opting into fewer build targets. Most crates do not compile
different code for different targets, so building fewer targets by default is a
better fit for most releases. It also reduces build times and saves resources on
docs.rs.&lt;/p&gt;
&lt;p&gt;This change only affects:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;new releases&lt;/li&gt;
&lt;li&gt;rebuilds of old releases&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id&#x3D;&quot;how-is-the-default-target-chosen&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#how-is-the-default-target-chosen&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
How is the default target chosen?&lt;/h2&gt;
&lt;p&gt;If you do not set &lt;code&gt;default-target&lt;/code&gt;, docs.rs uses the target of its build
servers: &lt;code&gt;x86_64-unknown-linux-gnu&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;You can override that by setting &lt;code&gt;default-target&lt;/code&gt; in your
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://docs.rs/about/metadata&quot;&gt;docs.rs metadata&lt;/a&gt;:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;toml&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;package&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;metadata&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;docs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;rs&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;default-target&lt;/span&gt;&lt;span&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;x86_64-apple-darwin&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id&#x3D;&quot;how-do-i-build-documentation-for-additional-targets&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#how-do-i-build-documentation-for-additional-targets&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
How do I build documentation for additional targets?&lt;/h2&gt;
&lt;p&gt;If your crate needs documentation to be built for more than the default target,
define the full list explicitly in your &lt;code&gt;Cargo.toml&lt;/code&gt;:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;toml&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;package&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;metadata&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;docs&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;rs&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;targets&lt;/span&gt;&lt;span&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-array&quot;&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;x86_64-unknown-linux-gnu&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-array&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;x86_64-apple-darwin&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-array&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;x86_64-pc-windows-msvc&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-array&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;i686-unknown-linux-gnu&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-array&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;    &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;i686-pc-windows-msvc&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-array&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When &lt;code&gt;targets&lt;/code&gt; is set, docs.rs will build documentation for exactly those
targets.&lt;/p&gt;
&lt;p&gt;docs.rs still supports any target available in the Rust toolchain. Only the
default behavior is changing.&lt;/p&gt;
</content>

        <author>
            <name>Denis Cornehl</name>
        </author>
    </entry>
    <entry>
        <title>Changes to WebAssembly targets and handling undefined symbols</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/04/04/changes-to-webassembly-targets-and-handling-undefined-symbols/" type="text/html" title="Changes to WebAssembly targets and handling undefined symbols" />
        <published>2026-04-04T00:00:00+00:00</published>
        <updated>2026-04-04T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/04/04/changes-to-webassembly-targets-and-handling-undefined-symbols/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/04/04/changes-to-webassembly-targets-and-handling-undefined-symbols/">&lt;p&gt;Rust&#x27;s WebAssembly targets are soon going to experience a change which has a
risk of breaking existing projects, and this post is intended to notify users of
this upcoming change, explain what it is, and how to handle it. Specifically, all
WebAssembly targets in Rust have been linked using the &lt;code&gt;--allow-undefined&lt;/code&gt; flag
to &lt;code&gt;wasm-ld&lt;/code&gt;, and this flag is being removed.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-is-allow-undefined&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-is-allow-undefined&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What is &lt;code&gt;--allow-undefined&lt;/code&gt;?&lt;/h2&gt;
&lt;p&gt;WebAssembly binaries in Rust today are all created by linking with &lt;code&gt;wasm-ld&lt;/code&gt;.
This serves a similar purpose to &lt;code&gt;ld&lt;/code&gt;, &lt;code&gt;lld&lt;/code&gt;, and &lt;code&gt;mold&lt;/code&gt;, for example; it
takes separately compiled crates/object files and creates one final binary.
Since the first introduction of WebAssembly targets in Rust, the
&lt;code&gt;--allow-undefined&lt;/code&gt; flag has been passed to &lt;code&gt;wasm-ld&lt;/code&gt;. This flag is documented
as:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;plain&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;  --allow-undefined       Allow undefined symbols in linked binary. This options&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;                          is equivalent to --import-undefined and&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;                          --unresolved-symbols&#x3D;ignore-all&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The term &quot;undefined&quot; here specifically means with respect to symbol resolution in &lt;code&gt;wasm-ld&lt;/code&gt; itself. Symbols used by &lt;code&gt;wasm-ld&lt;/code&gt; correspond relatively closely to what native platforms use, for example all Rust functions have a symbol associated with them. Symbols can be referred to in Rust through &lt;code&gt;extern &quot;C&quot;&lt;/code&gt; blocks, for example:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;rust&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;unsafe&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt; extern&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;C&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;    fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; mylibrary_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;    unsafe&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;        mylibrary_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The symbol &lt;code&gt;mylibrary_init&lt;/code&gt; is an undefined symbol. This is typically defined by
a separate component of a program, such as an externally compiled C library,
which will provide a definition for this symbol. By passing &lt;code&gt;--allow-undefined&lt;/code&gt;
to &lt;code&gt;wasm-ld&lt;/code&gt;, however, it means that the above would generate a WebAssembly
module like so:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;wasm&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt;module&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    (&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt;import&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;env&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;mylibrary_init&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-type&quot;&gt;func&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; $mylibrary_init&lt;/span&gt;&lt;span&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-comment z-comment&quot;&gt;    ;;&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment&quot;&gt; ...&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This means that the undefined symbol was ignored and ended up as an imported
symbol in the final WebAssembly module that is produced.&lt;/p&gt;
&lt;p&gt;The precise history here is somewhat lost to time, but the current understanding
is that &lt;code&gt;--allow-undefined&lt;/code&gt; was effectively required in the very early days of
introducing &lt;code&gt;wasm-ld&lt;/code&gt; to the Rust toolchain. This historical workaround stuck
around till today and hasn&#x27;t changed.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-s-wrong-with-allow-undefined&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-s-wrong-with-allow-undefined&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What&#x27;s wrong with &lt;code&gt;--allow-undefined&lt;/code&gt;?&lt;/h2&gt;
&lt;p&gt;By passing &lt;code&gt;--allow-undefined&lt;/code&gt; on all WebAssembly targets, rustc is introducing
diverging behavior between other platforms and WebAssembly. The main risk of
&lt;code&gt;--allow-undefined&lt;/code&gt; is that misconfiguration or mistakes in building can
result in broken WebAssembly modules being produced, as opposed to compilation
errors. This means that the proverbial can is kicked down the road and lengthens
the distance from where the problem is discovered to where it was introduced.
Some example problematic situations are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If &lt;code&gt;mylibrary_init&lt;/code&gt; was typo&#x27;d as &lt;code&gt;mylibraryinit&lt;/code&gt; then the final binary would
import the &lt;code&gt;mylibraryinit&lt;/code&gt; symbol instead of calling the linked
&lt;code&gt;mylibrary_init&lt;/code&gt; C symbol.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If &lt;code&gt;mylibrary&lt;/code&gt; was mistakenly not compiled and linked into a final
application then the &lt;code&gt;mylibrary_init&lt;/code&gt; symbol would end up imported rather than
producing a linker error saying it&#x27;s undefined.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If external tooling is used to process a WebAssembly module, such as &lt;code&gt;wasm-bindgen&lt;/code&gt; or &lt;code&gt;wasm-tools component new&lt;/code&gt;, these tools don&#x27;t know what to do with &lt;code&gt;&quot;env&quot;&lt;/code&gt; imports by default and they are likely to provide an error message of some form that isn&#x27;t clearly connected back to the original source code and where the symbols was imported from.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For web users if you&#x27;ve ever seen an error along the lines of &lt;code&gt;Uncaught TypeError: Failed to resolve module specifier &quot;env&quot;. Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;.&lt;/code&gt; this can mean that &lt;code&gt;&quot;env&quot;&lt;/code&gt; leaked into the final module unexpectedly and the true error is the undefined symbol error, not the lack of &lt;code&gt;&quot;env&quot;&lt;/code&gt; items provided.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All native platforms consider undefined symbols to be an error by default, and
thus by passing &lt;code&gt;--allow-undefined&lt;/code&gt; rustc is introducing surprising behavior on
WebAssembly targets. The goal of the change is to remove this surprise and
behave more like native platforms.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-is-going-to-break-and-how-to-fix&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-is-going-to-break-and-how-to-fix&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What is going to break, and how to fix?&lt;/h2&gt;
&lt;p&gt;In theory, not a whole lot is expected to break from this change. If the final
WebAssembly binary imports unexpected symbols, then it&#x27;s likely that the binary
won&#x27;t be runnable in the desired embedding, as the desired embedding probably
doesn&#x27;t provide the symbol as a definition. For example, if you compile an
application for &lt;code&gt;wasm32-wasip1&lt;/code&gt; if the final binary imports &lt;code&gt;mylibrary_init&lt;/code&gt;
then it&#x27;ll fail to run in most runtimes because it&#x27;s considered an unresolved
import. This means that most of the time this change won&#x27;t break users, but
it&#x27;ll instead provide better diagnostics.&lt;/p&gt;
&lt;p&gt;The reason for this post, however, is that it&#x27;s possible users could be
intentionally relying on this behavior. For example your application might have:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;rust&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;unsafe&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt; extern&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;C&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;    fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; js_log&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;n&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt;:&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-type&quot;&gt; u32&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-comment z-comment&quot;&gt;//&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment z-line z-double-slash z-comment&quot;&gt; ...&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And then perhaps some JS code that looks like:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;javascript&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt;let&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable z-other z-readwrite z-js z-variable&quot;&gt; instance&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator z-assignment z-keyword z-operator&quot;&gt; &#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-control z-flow z-js z-keyword z-control&quot;&gt; await&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable z-other z-object z-js z-variable&quot;&gt; WebAssembly&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-accessor&quot;&gt;.&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;instantiate&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-brace&quot;&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-support z-type&quot;&gt;module&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt;,&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr z-meta z-object-literal z-key&quot;&gt;    env&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr z-meta z-object-literal z-key&quot;&gt;:&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;        js_log&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr z-meta z-object-literal z-key&quot;&gt;:&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable z-parameter z-variable&quot;&gt; n&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt; &#x3D;&amp;gt;&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable z-other z-object z-js z-variable&quot;&gt; console&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-accessor&quot;&gt;.&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt;log&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-brace&quot;&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable z-other z-readwrite z-js z-variable&quot;&gt;n&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-brace&quot;&gt;)&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-meta z-var z-expr&quot;&gt;}&lt;/span&gt;&lt;span class&#x3D;&quot;z-meta z-brace&quot;&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Effectively it&#x27;s possible for users to explicitly rely on the behavior of
&lt;code&gt;--allow-undefined&lt;/code&gt; generating an import in the final WebAssembly binary.&lt;/p&gt;
&lt;p&gt;If users encounter this then the code can be fixed through a &lt;code&gt;#[link]&lt;/code&gt; attribute
which explicitly specifies the &lt;code&gt;wasm_import_module&lt;/code&gt; name:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;rust&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;#&lt;/span&gt;&lt;span&gt;[&lt;/span&gt;&lt;span&gt;link&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;wasm_import_module &lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator z-assignment z-keyword z-operator&quot;&gt;&#x3D;&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;env&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;unsafe&lt;/span&gt;&lt;span class&#x3D;&quot;z-storage z-type&quot;&gt; extern&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt; &amp;quot;&lt;/span&gt;&lt;span class&#x3D;&quot;z-string z-quoted z-string&quot;&gt;C&lt;/span&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-string z-string&quot;&gt;&amp;quot;&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-keyword&quot;&gt;    fn&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-function&quot;&gt; js_log&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span class&#x3D;&quot;z-variable&quot;&gt;n&lt;/span&gt;&lt;span class&#x3D;&quot;z-keyword z-operator&quot;&gt;:&lt;/span&gt;&lt;span class&#x3D;&quot;z-entity z-name z-type&quot;&gt; u32&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span class&#x3D;&quot;z-punctuation z-definition z-comment z-comment&quot;&gt;//&lt;/span&gt;&lt;span class&#x3D;&quot;z-comment z-line z-double-slash z-comment&quot;&gt; ...&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will have the same behavior as before and will no longer be considered an
undefined symbol to &lt;code&gt;wasm-ld&lt;/code&gt;, and it&#x27;ll work both before and after this change.&lt;/p&gt;
&lt;p&gt;Affected users can also compile with &lt;code&gt;-Clink-arg&#x3D;--allow-undefined&lt;/code&gt; as well to
quickly restore the old behavior.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;when-is-this-change-being-made&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#when-is-this-change-being-made&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
When is this change being made?&lt;/h2&gt;
&lt;p&gt;Removing &lt;code&gt;--allow-undefined&lt;/code&gt; on wasm targets is being done in
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/pull/149868&quot;&gt;rust-lang/rust#149868&lt;/a&gt;. That change is slated to land in nightly soon, and will then get released with Rust 1.96 on 2026-05-28. If you see any issues as a
result of this fallout please don&#x27;t hesitate to file an issue on
&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust&quot;&gt;rust-lang/rust&lt;/a&gt;.&lt;/p&gt;
</content>

        <author>
            <name>Alex Crichton</name>
        </author>
    </entry>
    <entry>
        <title>Announcing Rust 1.94.1</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/03/26/1.94.1-release/" type="text/html" title="Announcing Rust 1.94.1" />
        <published>2026-03-26T00:00:00+00:00</published>
        <updated>2026-03-26T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/03/26/1.94.1-release/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/03/26/1.94.1-release/">&lt;p&gt;The Rust team has published a new point release of Rust, 1.94.1. Rust is a
programming language that is empowering everyone to build reliable and
efficient software.&lt;/p&gt;
&lt;p&gt;If you have a previous version of Rust installed via rustup, getting Rust 1.94.1 is as easy as:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;plain&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;rustup update stable&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you don&#x27;t have it already, you can &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.rust-lang.org/install.html&quot;&gt;get &lt;code&gt;rustup&lt;/code&gt;&lt;/a&gt; from the appropriate page on our website.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-s-in-1-94-1&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-s-in-1-94-1&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What&#x27;s in 1.94.1&lt;/h2&gt;
&lt;p&gt;Rust 1.94.1 resolves three regressions that were introduced in the 1.94.0 release.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/pull/153634&quot;&gt;Fix &lt;code&gt;std::thread::spawn&lt;/code&gt; on wasm32-wasip1-threads&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/pull/153491&quot;&gt;Remove new methods added to &lt;code&gt;std::os::windows::fs::OpenOptionsExt&lt;/code&gt;&lt;/a&gt;
The new methods were unstable, but the trait itself is not sealed and so
cannot be extended with non-default methods.&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust-clippy/pull/16685&quot;&gt;Clippy: fix ICE in &lt;code&gt;match_same_arms&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/pull/16787&quot;&gt;Cargo: downgrade curl-sys to 0.4.83&lt;/a&gt;
This fixes certificate validation error for some users on some versions of
FreeBSD. See &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/16357&quot;&gt;this issue&lt;/a&gt;
for more details.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And a security fix:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/pull/16769&quot;&gt;Cargo: Update tar to 0.4.45&lt;/a&gt;
This resolves &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.cve.org/CVERecord?id&#x3D;CVE-2026-33055&quot;&gt;CVE-2026-33055&lt;/a&gt; and &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.cve.org/CVERecord?id&#x3D;CVE-2026-33056&quot;&gt;CVE-2026-33056&lt;/a&gt;. Users of crates.io are not affected.
See &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2026/03/21/cve-2026-33056/&quot;&gt;blog&lt;/a&gt; for more details.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id&#x3D;&quot;contributors-to-1-94-1&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#contributors-to-1-94-1&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Contributors to 1.94.1&lt;/h3&gt;
&lt;p&gt;Many people came together to create Rust 1.94.1. We couldn&#x27;t have done it without all of you. &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://thanks.rust-lang.org/rust/1.94.1/&quot;&gt;Thanks!&lt;/a&gt;&lt;/p&gt;
</content>

        <author>
            <name>The Rust Release Team</name>
        </author>
    </entry>
    <entry>
        <title>Security advisory for Cargo</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/03/21/cve-2026-33056/" type="text/html" title="Security advisory for Cargo" />
        <published>2026-03-21T00:00:00+00:00</published>
        <updated>2026-03-21T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/03/21/cve-2026-33056/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/03/21/cve-2026-33056/">&lt;p&gt;The Rust Security Response Team was notified of a vulnerability in the
third-party crate &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/tar&quot;&gt;&lt;code&gt;tar&lt;/code&gt;&lt;/a&gt;, used by Cargo to extract packages during a build. The
vulnerability, tracked as &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://www.cve.org/CVERecord?id&#x3D;CVE-2026-33056&quot;&gt;CVE-2026-33056&lt;/a&gt;, allows a malicious crate to change
the permissions on arbitrary directories on the filesystem when Cargo extracts
it during a build.&lt;/p&gt;
&lt;p&gt;For users of the public crates.io registry, we deployed a change on March 13th
to prevent uploading crates exploiting this vulnerability, and we audited all
crates ever published. We can confirm that no crates on crates.io are exploiting
this.&lt;/p&gt;
&lt;p&gt;For users of alternate registries, please contact the vendor of your registry to
verify whether you are affected by this. The Rust team will release Rust 1.94.1
on March 26th, 2026, updating to a patched version of the &lt;code&gt;tar&lt;/code&gt; crate (along
with other non-security fixes for the Rust toolchain), but that won&#x27;t protect
users of older versions of Cargo using alternate registries.&lt;/p&gt;
&lt;p&gt;We&#x27;d like to thank Sergei Zimmerman for discovering the underlying &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/tar&quot;&gt;&lt;code&gt;tar&lt;/code&gt;&lt;/a&gt; crate
vulnerability and notifying the Rust project ahead of time, and William Woodruff
for directly assisting the crates.io team with the mitigations. We&#x27;d also like
to thank the Rust project members involved in this advisory: Eric Huss for
patching Cargo; Tobias Bieniek, Adam Harvey and Walter Pearce for patching
crates.io and analyzing existing crates; Emily Albini and Josh Stone for
coordinating the response; and Emily Albini for writing this advisory.&lt;/p&gt;
</content>

        <author>
            <name>The Rust Security Response Team</name>
        </author>
    </entry>
    <entry>
        <title>What we heard about Rust&#x27;s challenges</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/03/20/rust-challenges/" type="text/html" title="What we heard about Rust&#x27;s challenges" />
        <published>2026-03-20T00:00:00+00:00</published>
        <updated>2026-03-20T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/03/20/rust-challenges/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/03/20/rust-challenges/">&lt;p&gt;&lt;em&gt;Author&#x27;s note&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/blog.rust-lang.org/blob/786db4b4d202d85ef79741de5be4cee5ea330999/content/rust-challenges.md&quot;&gt;original version&lt;/a&gt; of this article has been retracted. I used an LLM to write the first draft, though this had come after many hours of &lt;em&gt;planning&lt;/em&gt; and going through the data and analyses to identify the points to be made, as well as me going through the post line by line, editing into my voice and verifying the wording and scope of the text was accurate. However, many people still felt like the LLM-speak bled through in ways that felt uncomfortable. Given this, I and other members of the Rust Project have decided to retract the post in its entirety.&lt;/p&gt;
&lt;p&gt;I stand by the content of the post. As I said, the LLM did not decide the points to be made - those were done well in advance of even beginning to write the blog post. And, admittedly, I &lt;em&gt;did&lt;/em&gt; need to make edits to dampen the scope of them (in large part because I couldn&#x27;t find specific quotes to substantiate them, even though I often &quot;felt&quot; that they were true given what I know as a Rust Project member), but in general I (and the Vision Doc team) defined the content, not an LLM.&lt;/p&gt;
&lt;p&gt;Many people thought that the blog post felt &quot;empty&quot;, with no &quot;real substance&quot;. While I see the point here, this is unfortunately just how the data played out and goal of this effort. The Vision Doc team conducted ~70 interviews (mostly 1:1), which were the basis for the conclusions in this blog post. This is &lt;em&gt;a lot&lt;/em&gt; of data, it&#x27;s hard to fully capture the essence of them in a single blog post. And yet, it is also &lt;em&gt;not enough&lt;/em&gt; data to fully capture the nuance of differences across groups of different types. On top of this, it shouldn&#x27;t be that unexpected the problems we heard about in these interviews are the same problems that we (and many others) mostly already knew existed. The insight these interviews give us is that they allow us to begin to capture &lt;em&gt;for whom which issues are most prominent&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;The insights we identify and the conclusions we make are supported by the data we have gathered. When making these posts, the Vision Doc team has tried to stay as neutral as possible, doing our best to not exert bias by making any claims that cannot be supported &lt;em&gt;as stated&lt;/em&gt; by the data itself. With drastically more time, I would have loved to pull in data from the ~5500 survey responses we got, which ultimately could help us make &lt;em&gt;stronger&lt;/em&gt; claims or conclusions, but unfortunately that is time that I haven&#x27;t had. That shouldn&#x27;t diminish the substance of the insights and conclusions we &lt;em&gt;have&lt;/em&gt; been able to make though.&lt;/p&gt;
&lt;p&gt;Wording matters though. And it&#x27;s clear that to many people, the blog post as-written didn&#x27;t meet the mark that they want. LLMs are a tool that many people use (including me, obviously) to varying degrees to help do things that they couldn&#x27;t do before (either for lack of skill, lack of time, or lack of motivation). In this case, I used an LLM to compensate for the lack of time for me to dedicate to sifting through transcripts for the ~70 interviews we did, and the many analyses that followed, to find specific quotes and write an early draft. It certainly did not help that writing and editing of this post happened over the span of about 3 months - meaning that things that &quot;worked&quot; in early edits did not necessarily work in later edits.&lt;/p&gt;
&lt;p&gt;This all being said, I think that we as a Vision Doc team owe it to the Rust Project and the community to share (at least to some extent) what we have learned here. So, I have taken the original challenges identified by the team (without the recommendations or conclusions) and will provide a brief personal commentary on them. I&#x27;ve chosen to exclude any specific quotes - rather, just focus on the &quot;high level&quot; ideas. So, as a disclaimer, this will mean that the statements here will be much more biased than what we typically want to publish as part of the Vision Doc work.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Across the ~70 interviews the Vision Doc team conducted, we heard &lt;em&gt;a lot&lt;/em&gt; of complaints. Of course, we tried to keep these interviews pretty high-level, not focusing on any particular technical details. Rather, we wanted to get a general sense of what the difficulties were that people encountered, among the other topics discussed during these interviews. Here, we&#x27;ve identified a few common challenges to most people, and then a few challenges that are more domain-specific.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;challenges-that-are-universal&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#challenges-that-are-universal&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Challenges that are universal&lt;/h2&gt;
&lt;p&gt;We heard a number of things that basically everyone said was an issue for them, in some capacity. Doing things to address these issues could have a universal impact, but that is not to say that these issues necessarily &lt;em&gt;block&lt;/em&gt; people from using Rust.&lt;/p&gt;
&lt;p&gt;The universal challenges, you&#x27;ve definitely heard before. If you write Rust, you&#x27;ve probably encountered them. That&#x27;s what makes them universal. However, the point is that we share the data that we gather, and the fact that we have learned that these challenges &lt;em&gt;do&lt;/em&gt; affect everyone is data in itself: we have sampled different domains, different experience levels, and different backgrounds; and we have found that these challenges exist for everyone.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;compilation-performance&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#compilation-performance&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Compilation performance&lt;/h3&gt;
&lt;p&gt;Everybody knows that &quot;compile times&quot; are a thing that Rust is known for. This is an ever-moving target: the Rust Project tracks performance of the compiler on every merged change to track regressions, many people have attempted many times to make substantial progress here, and yet there is always more that we want to or could do.&lt;/p&gt;
&lt;p&gt;The good news, is that among our interviews, nobody really told us that compilation time &lt;em&gt;currently&lt;/em&gt; blocks them. We did hear things to the effect of &quot;if we keep writing more and more Rust code, we may eventually get to a point that compile times are an issue&quot;, so that&#x27;s not to say that we&#x27;re &quot;in the clear&quot; but it is important to think about how this matters &lt;em&gt;on balance&lt;/em&gt; with other challenges that people face.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;borrow-checking-and-ownership&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#borrow-checking-and-ownership&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Borrow checking and ownership&lt;/h3&gt;
&lt;p&gt;Again, another thing that Rust is known for. Borrow checking and ownership is a hard topic that basically every beginner struggles with. However, we found that &quot;Rust experts&quot; don&#x27;t really complain about the borrow checker anymore: it &lt;em&gt;is&lt;/em&gt; a challenge that goes away with experience. That&#x27;s not to say we can&#x27;t do better for beginners, but it&#x27;s not clear exactly what that means.&lt;/p&gt;
&lt;p&gt;Certainly learning materials and compiler error messages help, and these are areas that we&#x27;ve tried in the past and today to sincerely provide the best experience. Despite that, the borrow checker remains a difficult part of the Rust language. We have &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://rust-lang.github.io/rust-project-goals/2026/polonius.html&quot;&gt;ongoing efforts&lt;/a&gt; to improve the borrow checker, but it&#x27;s likely that there are (for example) language features that may make this better. (Or worse!)&lt;/p&gt;
&lt;p&gt;We &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2025/12/19/what-do-people-love-about-rust/#each-piece-is-necessary-for-the-whole-to-work&quot;&gt;found previously&lt;/a&gt; that what makes Rust &lt;em&gt;great&lt;/em&gt; is the balance that we put on reliability, efficiency, and versatility. And, we need to be careful when adjusting something as core as the borrow checker to maintain this balance.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;async&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#async&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Async&lt;/h3&gt;
&lt;p&gt;When conducting our interviews, async was consistently something that many people had issues with. Beginners often said that they basically completely ignore async while learning. People who &lt;em&gt;do&lt;/em&gt; use async often said that the choice wasn&#x27;t always clear, and that even though using async feels like the right choice &lt;em&gt;now&lt;/em&gt;, they still encounter issues.&lt;/p&gt;
&lt;p&gt;Fortunately, unlike performance and the borrow checker, we have a number of clear &quot;next steps&quot; for async (e.g. async fns in traits, async drop, async version of std traits) that will &lt;em&gt;begin&lt;/em&gt; to solve these issues and close the gap. Of course, for other things (like the coloring problem), we don&#x27;t have good &quot;solutions&quot; just quite yet.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;ecosystem-crates&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#ecosystem-crates&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Ecosystem crates&lt;/h3&gt;
&lt;p&gt;We &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2025/12/19/what-do-people-love-about-rust/#example-the-wealth-of-crates-on-crates-io-are-a-key-enabler-but-can-be-an-obstacle&quot;&gt;previously&lt;/a&gt; talked about how crates.io creates a wealth of resources for people to turn to, but people still run into issues. For one, when there &lt;em&gt;are&lt;/em&gt; crates that do the thing people want, they need to know: which crates do the things they need, which crates can they trust, and which crates are just overall the &quot;best&quot; for them. Further, in some domains and industries, there &lt;em&gt;aren&#x27;t&lt;/em&gt; crates that do what people need; Rust support for some industries are still too immature.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;challenges-that-are-domain-specific&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#challenges-that-are-domain-specific&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Challenges that are domain-specific&lt;/h2&gt;
&lt;p&gt;Though more challenging given the limited diversity in the interviews we conducted, we still were able to find &lt;em&gt;some&lt;/em&gt; domain-specific challenges: at least, we were able to hear about some challenges that seem to disproportionately effect some domains over others.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;embedded&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#embedded&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Embedded&lt;/h3&gt;
&lt;p&gt;For developers programming for embedded systems, we heard most often about the difficulties that fundamentally boil down to constrained resource management. For example, embedded developers are often unable to use the vast majority of the crate ecosystem, they often have trouble using the standard library, and the debugging experience is generally harder. Things that are &quot;normal&quot; for most Rust developers are oftentimes &quot;special&quot; for embedded developers.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;safety-critical&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#safety-critical&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Safety-critical&lt;/h3&gt;
&lt;p&gt;We made an &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://blog.rust-lang.org/2026/01/14/what-does-it-take-to-ship-rust-in-safety-critical/&quot;&gt;entire post&lt;/a&gt; about shipping Rust in safety critical systems. The biggest issue for safety-critical developers with Rust is the lack of availability or maturity for tools to &lt;em&gt;certify&lt;/em&gt; their Rust code.&lt;/p&gt;
&lt;h3 id&#x3D;&quot;gui-development&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#gui-development&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
GUI development&lt;/h3&gt;
&lt;p&gt;The biggest issue heard from GUI developers is compilation time but is slightly different from the general case, because GUI development is so heavily dependent on the &lt;em&gt;visual&lt;/em&gt; changes - and so this is a slightly different workflow than just &quot;check if the code compiles and passes tests&quot;.&lt;/p&gt;
</content>

        <author>
            <name>Jack Huey</name>
        </author>
    </entry>
    <entry>
        <title>Call for Testing: Build Dir Layout v2</title>
        <link rel="alternate" href="https://blog.rust-lang.org/2026/03/13/call-for-testing-build-dir-layout-v2/" type="text/html" title="Call for Testing: Build Dir Layout v2" />
        <published>2026-03-13T00:00:00+00:00</published>
        <updated>2026-03-13T00:00:00+00:00</updated>
        <id>https://blog.rust-lang.org/2026/03/13/call-for-testing-build-dir-layout-v2/</id>
        <content type="html" xml:base="https://blog.rust-lang.org/2026/03/13/call-for-testing-build-dir-layout-v2/">&lt;p&gt;We would welcome people to try and report issues with the nightly-only
&lt;code&gt;cargo -Zbuild-dir-new-layout&lt;/code&gt;.
While the layout of the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/cargo/reference/build-cache.html&quot;&gt;build dir&lt;/a&gt;
is internal-only,
many projects need to rely on the unspecified details due to missing features within Cargo.
While we&#x27;ve performed a &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/rust/pull/149852&quot;&gt;crater run&lt;/a&gt;,
that won&#x27;t cover everything and we need help identifying tools and process that rely on the details,
reporting issues to these projects so they can update to the new layout or support them both.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;how-to-test-this&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#how-to-test-this&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
How to test this?&lt;/h2&gt;
&lt;p&gt;With at least nightly 2026-03-10,
run your tests, release processes, and anything else that may touch build-dir/target-dir
with the &lt;code&gt;-Zbuild-dir-new-layout&lt;/code&gt; flag.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;shellsession&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;$&lt;/span&gt;&lt;span&gt; cargo test -Zbuild-dir-new-layout&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Note: if you see failures, the problem may not be isolated to just &lt;code&gt;-Zbuild-dir-new-layout&lt;/code&gt;.
With &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-191-2025-10-30&quot;&gt;Cargo 1.91&lt;/a&gt;,
users can separate where to store intermediate build artifacts (build-dir) and final artifacts (still in target-dir).
You can verify this by running with only &lt;code&gt;CARGO_BUILD_BUILD_DIR&#x3D;build&lt;/code&gt; set.
We are evaluating changing the default for build-dir in &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/16147&quot;&gt;#16147&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Outcomes may include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fixing local problems&lt;/li&gt;
&lt;li&gt;Reporting problems in upstream tools with a note on the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/15010&quot;&gt;the tracking issue&lt;/a&gt; for others&lt;/li&gt;
&lt;li&gt;Providing feedback on the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/15010&quot;&gt;the tracking issue&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Known failure modes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Inferring a &lt;code&gt;[[bin]]&lt;/code&gt;s path from a &lt;code&gt;[[test]]&lt;/code&gt;s path:
&lt;ul&gt;
&lt;li&gt;Use &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-cargo-test&quot;&gt;&lt;code&gt;std::env::var_os(&quot;CARGO_BIN_EXE_*&quot;)&lt;/code&gt;&lt;/a&gt; for Cargo 1.94+, maybe keeping the inference as a fallback for older Cargo versions&lt;/li&gt;
&lt;li&gt;Use &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates&quot;&gt;&lt;code&gt;env!(&quot;CARGO_BIN_EXE_*&quot;)&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Build scripts looking up target-dir from their binary or &lt;code&gt;OUT_DIR&lt;/code&gt;: see &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/13663&quot;&gt;Issue #13663&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Update current workarounds to support the new layout&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Looking up user-requested artifacts from rustc, see &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/13672&quot;&gt;Issue #13672&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Update current workarounds to support the new layout&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Library support status as of publish time:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/assert_cmd&quot;&gt;assert_cmd&lt;/a&gt;: fixed&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/cli_test_dir&quot;&gt;cli_test_dir&lt;/a&gt;: &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/emk/subtitles-rs/issues/65&quot;&gt;Issue #65&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/compiletest_rs&quot;&gt;compiletest_rs&lt;/a&gt;: &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/Manishearth/compiletest-rs/issues/309&quot;&gt;Issue #309&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/executable-path&quot;&gt;executable-path&lt;/a&gt;: fixed&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/snapbox&quot;&gt;snapbox&lt;/a&gt;: fixed&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/term-transcript&quot;&gt;term-transcript&lt;/a&gt;: &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/slowli/term-transcript/issues/269&quot;&gt;Issue #269&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/test_bin&quot;&gt;test_bin&lt;/a&gt;: &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/MichaelMcDonnell/test_bin/issues/13&quot;&gt;Issue #13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://crates.io/crates/trycmd&quot;&gt;trycmd&lt;/a&gt;: fixed&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id&#x3D;&quot;what-is-not-changing&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-is-not-changing&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What is not changing?&lt;/h2&gt;
&lt;p&gt;The layout of final artifacts within &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/cargo/reference/build-cache.html&quot;&gt;target dir&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Nesting of build artifacts under the profile and the target tuple, if specified.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;what-is-changing&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#what-is-changing&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
What is changing?&lt;/h2&gt;
&lt;p&gt;We are switching from organizing by content type to scoping the content by the package name and a hash of the build unit and its inputs.&lt;/p&gt;
&lt;p&gt;Here is an example of the current layout, assuming you have a package named &lt;code&gt;lib&lt;/code&gt; and a package named &lt;code&gt;bin&lt;/code&gt;, and both have a build script:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;plain&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;build-dir/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;├── CACHEDIR.TAG&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;└── debug/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── .cargo-lock                       # file lock protecting access to this location&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── .fingerprint/                     # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── bin-[BUILD_SCRIPT_RUN_HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── bin-[BUILD_SCRIPT_BIN_HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── bin-[HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── lib-[BUILD_SCRIPT_RUN_HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── lib-[BUILD_SCRIPT_BIN_HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   └── lib-[HASH]/*&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── build/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    ├── bin-[BIN_HASH]/*             # build script binary&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    ├── bin-[RUN_HASH]/out/          # build script run OUT_DIR&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    ├── bin-[RUN_HASH]/*             # build script run cache&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    ├── lib-[BIN_HASH]/*             # build script binary&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    ├── lib-[RUN_HASH]/out/          # build script run OUT_DIR&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │    └── lib-[RUN_HASH]/*             # build script run cache&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── deps/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── bin-[HASH]*                   # binary and debug information&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── lib-[HASH]*                   # library and debug information&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   └── liblib-[HASH]*                # library and debug information&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── examples/                         # unused in this case&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    └── incremental/...                   # managed by rustc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The proposed layout:&lt;/p&gt;
&lt;pre class&#x3D;&quot;giallo z-code&quot;&gt;&lt;code data-lang&#x3D;&quot;plain&quot;&gt;&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;build-dir/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;├── CACHEDIR.TAG&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;└── debug/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── .cargo-lock                       # file lock protecting access to this location&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    ├── build/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   ├── bin/                          # package name&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   ├── [BUILD_SCRIPT_BIN_HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   │   ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   │   └── out/*                 # build script binary&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   ├── [BUILD_SCRIPT_RUN_HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   │   ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   │   ├── out/*                 # build script run OUT_DIR&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   │   └── run/*                 # build script run cache&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │   └── [HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │       ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   │       └── out/*                 # binary and debug information&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │   └── lib/                          # package name&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       ├── [BUILD_SCRIPT_BIN_HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       │   ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       │   └── out/*                 # build script binary&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       ├── [BUILD_SCRIPT_RUN_HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       │   ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       │   ├── out/*                 # build script run OUT_DIR&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       │   └── run/*                 # build script run cache&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │       └── [HASH]/&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │           ├── fingerprint/*         # build cache tracking&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    │           └── out/*                 # library and debug information&lt;/span&gt;&lt;/span&gt;
&lt;span class&#x3D;&quot;giallo-l&quot;&gt;&lt;span&gt;    └── incremental/...                   # managed by rustc&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For more information on these Cargo internals, see the &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://doc.rust-lang.org/nightly/nightly-rustc/cargo/core/compiler/layout/index.html&quot;&gt;&lt;code&gt;mod layout&lt;/code&gt; documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;why-is-this-being-done&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#why-is-this-being-done&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Why is this being done?&lt;/h2&gt;
&lt;p&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/ranger-ross/&quot;&gt;ranger-ross&lt;/a&gt; has worked tirelessly on this as a stepping stone to &lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/5931&quot;&gt;cross-workspace caching&lt;/a&gt;
which will be easier when we can track each cacheable unit in a self-contained directory.&lt;/p&gt;
&lt;p&gt;This also unblocks work on:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/5026&quot;&gt;Automatic cleanup of stale build units&lt;/a&gt; to keep disks space use constant over time&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/4282&quot;&gt;More granular locking&lt;/a&gt; so &lt;code&gt;cargo test&lt;/code&gt; and rust-analyzer don&#x27;t block on each other&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Along the way, we found this helps with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/16665&quot;&gt;Build performance&lt;/a&gt; as the intermediate artifacts accumulate in &lt;code&gt;deps/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/7919&quot;&gt;Content of &lt;code&gt;deps/&lt;/code&gt; polluting &lt;code&gt;PATH&lt;/code&gt; during builds on Windows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a rel&#x3D;&quot;external&quot; href&#x3D;&quot;https://github.com/rust-lang/cargo/issues/16673&quot;&gt;Avoiding file collisions among intermediate artifacts&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While the Cargo team does not officially endorse sharing a &lt;code&gt;build-dir&lt;/code&gt; across workspaces,
that last item should reduce the chance of encountering problems for those who choose to.&lt;/p&gt;
&lt;h2 id&#x3D;&quot;future-work&quot;&gt;&lt;a class&#x3D;&quot;anchor&quot; href&#x3D;&quot;#future-work&quot; aria-hidden&#x3D;&quot;true&quot;&gt;&lt;/a&gt;
Future work&lt;/h2&gt;
&lt;p&gt;We will use the experience of this layout change to help guide how and when to perform any future layout changes, including:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Efforts to reduce path lengths to reduce risks for errors for developers on Windows&lt;/li&gt;
&lt;li&gt;Experimenting with moving artifacts out of the &lt;code&gt;--profile&lt;/code&gt; and &lt;code&gt;--target&lt;/code&gt; directories, allowing sharing of more artifacts where possible&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In addition to narrowing scope,
we did not do all of the layout changes now because some are blocked on the lock change which is blocked on this layout change.&lt;/p&gt;
&lt;p&gt;We would also like to work to decouple projects from the unspecified details of build-dir.&lt;/p&gt;
</content>

        <author>
            <name>Ed Page</name>
        </author>
    </entry>
</feed>
