Skip to content
The Rust Programming Language Blog

The Rust Programming Language Blog

Empowering everyone to build reliable and efficient software.

blog.rust-lang.org
SOFTWARE AND DATA ENGINEERING

Enabling the parallel frontend on nightly

TL;DR: We are enabling the parallel frontend of the Rust compiler on nightly by default, to find remaining issues in preparation for its stabilization. ## Context The Rust compiler has been using multiple threads to compile code in its "backend" part (using LLVM) for a long time. However, its "frontend" part (which includes type checking and borrow checking) has been executing sequentially, on a single thread, which of course limits the performance of the compiler. If you are interested in a more in-depth explanation of parallelism in the Rust compiler, see this previous post. The compiler frontend actually had support for running in parallel for a long time, but it was not enabled by default due to various issues. Three years ago, we made it possible to opt into the parallel frontend on the nightly channel, with the plan to stabilize it in 2024. Clearly, we did not achieve that goal, but work on the parallel frontend was still slowly progressing in the meantime. Last year, Vadim Petrochenkov, together with several other contributors, started a coordinated effort to finally get the parallel frontend over the finish line. Since then, many long-standing issues were fixed, and its performance was improved. Now we are at a point where we would like to make it widely available. But before that, we want to find out if people encounter issues with it in the wild, which is why we are enabling it by default only on the nightly channel. Once we will be confident enough that it is working well, we want to stabilize it. The parallel frontend has been enabled on the nightly channel by default since nightly-2026-11-14. ## Benefits The primary benefit of enabling the parallel frontend is, of course, faster compilation of Rust programs. We benchmarked the parallel frontend in our benchmark suite, which measures the duration to compile the leaf crate in a crate graph. As usual, the results were varied. In some benchmarks, the parallel frontend barely helped. In others, for example when performing a cargo check of the nalgebra, cargo or diesel crates, the compilation was almost three times faster, using 8 threads. In the table below, you can find the aggregated wall-time mean change for the real-world benchmarks in our suite, when building a single crate from scratch across several configurations, compared to the same build using a sequential frontend. | Frontend threads / Profile | check | clippy | debug | opt | | -------------------------- | -------- | -------- | -------- | -------- | | 2 | -21.95 % | -20.74 % | -14.2 % | -12.51 % | | 4 | -37.99 % | -36.01 % | -29.14 % | -23.67 % | | 8 | -44.23 % | -41.76 % | -36.1 % | -27.88 % | It is clear that the parallelization is not perfect, and we definitely plan to invest more effort into improving its performance. Nevertheless, with 8 threads, it can make the end-to-end compilation time of cargo check ~2x faster for several crates that we tested, which is still quite an improvement. The performance benefits for incremental rebuilds are much more modest, and also very hard to compare, because the performance of rebuilds depends on what was changed and how were the codegen units laid out. In our benchmark suite, we saw a mean improvement of 3-5% for incremental rebuilds. But we currently do not have great benchmarks for this use-case, so your results might vary. We can also zoom in on an individual crate. Here is a chart of how the wall-time scales when compiling the nalgebra 0.33 crate, for a full non-incremental build (full), full incremental build (incr-full) and an incremental rebuild (incr-patched) across several build configurations: What is interesting to note is that enabling the parallel frontend can actually also make the backend faster, for reasons explained here. It is important to note that all benchmark results presented above measured only the compilation of a single crate. When compiling a whole crate graph, your CPU cores might already be saturated because of backend (LLVM) parallelism or by Cargo compiling multiple crates in parallel. So the final performance effect will vary heavily based on the workload that you are running, and on the number of cores that you have available. We also benchmarked cargo check end-to-end (checking the whole crate graph) on the cargo crate itself on a machine with 8 CPU cores. With 8 threads, it resulted in a ~15% end-to-end improvement: - 36.7s with 1 frontend thread - 35.1s with 2 frontend threads - 31.9s with 4 frontend threads - 30.8s with 8 frontend threads As can be seen from the results above, when the CPU cores are already saturated with parallel crate compilation and LLVM, the positive effect of the parallel frontend is reduced. ## Tuning the thread count At the start, the nightly toolchain will default to the parallel frontend using only 2 threads. This is a conservative choice that should still allow us to find potential issues while not increasing memory usage a lot at the same time. If you want to test out the performance with different thread counts, you can override the number of threads used for the frontend using the --jobs-frontend compiler flag. It can be specified either in the RUSTFLAGS environment variable, or you can put it into a .cargo/config.toml file: [build] rustflags = ["-Zunstable-options", "--jobs-frontend=8"] Currently, the performance of the parallel frontend will likely not scale very well above ~8 threads, but you can try it on your workload to test what happens. Note that using higher thread counts will likely lead to higher memory usage of the compiler, and in extreme cases it might cause you to run out of memory. ## Limitations and known issues Due to the used parallelism, the produced order of diagnostics might not be deterministic when using the parallel frontend. In some situations, the generated binary might also not be reproducible, though we currently consider these cases bugs, and we would like to identify them and fix them. There are currently some known issues related to the reproducibility of the Rust compiler when using the parallel frontend, which are being worked on. ## How do I opt out? To reiterate: this is only being enabled on nightly for now. If you are using the stable toolchain, you will still be using the sequential frontend by default. If you want to disable the parallel frontend on the nightly channel, pass -Zunstable-options --jobs-frontend=1 to rustc, either via the RUSTFLAGS environment variable, or with the .cargo/config.toml configuration file: [build] rustflags = ["-Zunstable-options", "--jobs-frontend=1"] If you have to do this for some reason, please do tell us why on GitHub or on Zulip. We would especially like to know about any compiler crashes that you encounter, or the produced binaries not being reproducible when the parallel frontend is enabled. ## What's next? Over the next few months, we will be monitoring GitHub and Zulip for any reported issues about the parallel frontend. Once we have enough confidence that it is working well, and there are no major issues, we would like to move forward and finally stabilize it. We would also like to improve its performance, and make more things parallel. So far, a lot of the work on the parallel frontend has been focused on making it work correctly, rather than tuning its performance down to the last percent. We thus expect that we might still be able to make further performance improvements to it. We would also like to make more parts of the frontend actually parallel, as some parts are currently still sequential even if parallelism is enabled. There is some ongoing work on this. Last year, we had a Google Summer of Code project focused on enabling parallel macro expansion and name resolution, and there is also an open pull request for parallelizing the lowering of the Abstract Syntax Tree (AST) to the High-Level Intermediate Representation (HIR). More work remains to be done on this front.
VADIM PETROCHENKOVGIT HUB
FOSS Linux
SOFTWARE AND DATA ENGINEERING

Announcing Rust 1.100.0

The Rust team is happy to announce a new version of Rust, 1.100.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, you can get 1.100.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.100.0. If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across! ## What's in 1.100.0 stable - Never type - Allocator API - DropGuard API - Conjuring zero-sized types - Reporting unused dependencies in Cargo - Reducing Cargo cache collisions - Cargo min-publish-age - Stabilized APIs ### Never type After 10 years and 5 failed stabilization attempts, the never type is finally stable! This also completes the project goal for this work. The never type, spelled ! in code, is the canonical uninhabited type. It represents the type of diverging computations – computations which never resolve to any value – where any code that follows is unreachable. Expressions that terminate control flow, such as return, break, and std::process::exit, also have the type !. Since having a value of the never type is impossible, Rust permits a never-to-any coercion, allowing to turn ! into any other type (this is what distinguishes it from any other uninhabited types). This can be used, for example, to not return a value from one of the branches of a match or an if: fn mrrrow(option: Option<u32>) { let value = match option { // `x` has type `u32` Some(x) => x, // `return` has type `!`, which is then coerced to `u32`, // allowing the `match` to pass type checking. None => return, }; // ... } While the never type could already be used and observed this way, and even named in the return type of functions (-> !), this release allows naming the never type anywhere: fn infallible_unwrap<T>(res: Result<T, !>) -> T { // ^^ writing `Result<_, !>` was not allowed before let Ok(v) = res; v } Additionally this release changes Infallible to be an alias to the never type. That makes all old APIs that used Infallible be compatible with using !. This was the plan ever since the introduction of Infallible and is one of the reasons why the never type stabilization was so hard (waffle gave a talk about some of the troubles of the stabilization). Unfortunately, to allow changing Infallible, we had to introduce a breaking change. This release changes the "never type fallback" from () to ! in editions before 2024 (i.e. 2015, 2018, and 2021), similarly to what has already been done in edition 2024. This should largely be unnoticeable, but can affect code in some rare cases (for example when ignoring a result of a function returning a generic parameter). Note that this change might also make the compiler detect more code as unreachable. We tried to minimize the impact of this breaking change as much as possible, by providing future compatibility warnings far in advance and releasing fixes to public crates that have been broken by this. If a dependency is failing due to issues with the never type, consider updating it, as a fix might have already been released for it. ### Allocator API This release brings about the stabilization of the core parts of allocator_api, enabling library authors to define custom allocators that can be used together with certain standard library types - currently Vec and Box. These are enabled through the newly-stabilized Allocator trait. This is the foundation of the Allocators 1.0 project goal. A lot remains to be done still, including expanding the API surface usable with custom allocators and stabilizing their use on more collections and pointer types; with the core trait and design out of the way though, expect to see more being stabilized soon! ### DropGuard: run a closure on every exit path The Drop trait in Rust makes it possible to run code when a variable goes out of scope, regardless of whether we return, ?, or panic. Drop being a part of types means that in Rust you never have to close a socket. Implementing Drop can however feel a little inconvenient when all you want is to run some code unconditionally when a function exits. This is why we’re introducing core::mem::DropGuard: a new helper type that runs a closure when dropped. DropGuard takes two arguments: a variable and a closure. It implements Deref and DerefMut so you can keep working with the variable as normal. But when dropped it runs the closure and consumes the variable. DropGuard also implements a dismiss method which returns the variable from the guard without running the destructor. This makes it possible to quickly implement all-or-nothing transaction-like APIs with a rollback. Here is an example implementing a parser which uses a guard to roll back mutations in case of failure: use std::mem::DropGuard; use std::num::ParseIntError; /// Attempt to parse all `strings` and push them into `nums`. /// If parsing any of them fails, `nums` remains unchanged. fn parse_all(nums: &mut Vec<u32>, strings: &[&str]) -> Result<(), ParseIntError> { let len = nums.len(); let mut nums = DropGuard::new(nums, move |nums| { nums.truncate(len); // ← 1. Reset the vec on failure }); for s in strings { nums.push(s.parse()?); // ← 2. If `?` returns an error, roll back } DropGuard::dismiss(nums); // ← 3. Parsing successful, dismiss the guard Ok(()) } ### Conjuring zero-sized types As Rust's unsafe code guidelines are still being decided, it became clear that it would be very useful to decide what exactly it means to create zero-sized types in an unsafe way, and what we should recommend for people to do this. This question is answered in Rust 1.100 with a single function: std::mem::conjure_zst. Instead of transmuting (), MaybeUninit::uninit().assume_init(), or various other incantations, this is the dedicated way to create a value of a zero-sized type when you know that doing so is safe to do. If an inhabited type has no size, we know exactly what value it must be: nothing. Of course, APIs often rely on the inability to construct such types for safety, and that's why this function is unsafe. For example, PyO3's Python<'py> is a zero-sized marker token that represents holding the Python GIL (global interpreter lock). Many of Python's APIs require holding this lock to be safe, but conjuring a token from thin air would allow safe PyO3 calls to violate that precondition. ### Reporting unused dependencies in Cargo Building dependencies that are no longer used or are only needed for specific platforms can slow down builds. Rustc has the unused_crate_dependencies lint for this but it has false positives when used with Cargo because dependencies may be shared between multiple build targets, e.g. dependencies.tracing-subscriber being available for every bin in a package when only some may use it. Cargo now reports unused dependencies to users, e.g. warning: unused dependency `tracing-subscriber` --> Cargo.toml:23:1 | 23 | tracing-subscriber.workspace = true | ^^^^^^^^^^^^^^^^^^ | = note: `cargo::unused_dependencies` is set to `warn` by default help: consider removing the dependency on `tracing-subscriber` A limitation of this warning is that it will only appear when building every build target that may use an entry in a dependencies table. For example, running cargo check --bin foo won't show warnings for unused [dependencies] because another bin may be present that uses them. No warning will be shown for unused dev-dependencies because there isn't a way to ensure every development build target is built. This warning is being introduced as part of a new linting system for Cargo, controlled by the [lints.cargo] table in Cargo.toml, completing this project goal. See also the other lints that have been introduced. ### Reducing Cargo cache collisions Cargo builds all libraries and binaries in the build-dir and then uplifts final artifacts to the target-dir. At this time, these share a common parent directory. Different build configurations, like --features, can lead to different copies of libraries and binaries in the build-dir. These copies are kept unique by a build-configuration hash but this hash was not always applied due to platform constraints. This can lead to extra rebuilds, missed rebuilds, confusion over what binaries or libraries are used, and so on. These problems get exacerbated when sharing a build-dir across git worktrees. The build-dir now consistently applies the build-configuration hash to all content by organizing the directories around their build step, rather than their file type, and moving the hash from a file's name to the parent directory. This work began with the build directory layout project goal in 2025, and its stabilization is a milestone toward a new project goal, unblocking future improvements such as cache garbage collection, cross-workspace cache de-duplication, cross-workspace caching, and fine grain locking. We previously published a call for testing for the changes that are now taking effect. While this is an internal change, this may break build processes and tests that had workarounds for missing or incomplete features. In some cases, the workaround is no longer needed. See cargo#17287 for possible solutions and to add any new use cases. ### Cargo min-publish-age a.k.a. dependency cooldowns Malicious versions of packages are often caught within hours or days after being published, by either automated scanners or by the community. Rust 1.100 stabilizes Cargo's min-publish-age aware dependency resolution, which lets you wait for that window before it picks up newly published versions. This practice is also known as dependency cooldowns. You can opt in via .cargo/config.toml: [registry] global-min-publish-age = "3 days" When selecting versions, Cargo now skips any version published more recently than that, and tells you what it held back: $ cargo update Updating crates.io index Locking 2 packages to highest compatible version as of min-publish-age Adding cc v1.11.0 (available: v1.18.0, published 3 hours ago) Adding clap 4.6.7 (available: 4.6.9, published 2 days ago) When a new version is needed right away, you can override the check for a single update: $ CARGO_RESOLVER_INCOMPATIBLE_PUBLISH_AGE=allow cargo update clap --precise 4.6.9 Updating crates.io index Updating clap 4.6.7 -> clap 4.6.9 (published 2 days ago, minimum age 3 days) The newer version will be recorded in Cargo.lock and kept from then on until a later cargo update re-resolves it. A few things to keep in mind: - This depends on the registry recording when each version was published. Versions without a pubtime field in the index are never held back. - cargo install ignores the minimum publish age, for both the installed crate and its dependencies. Pin a version with cargo install foo@1.2.3 if needed. - Cooldowns reduce the risk from some supply chain attacks but are not a complete defense on their own. Please keep reviewing dependency updates as you otherwise would. Further work to protect the ecosystem is planned under the crates.io supply chain hardening project goal, including quarantine support and automated detection of suspicious releases. ### Stabilized APIs - impl PartialEq<Cow<'_, [U]>> for Vec<T, A> - impl PartialEq<Cow<'_, [U]>> for &[T] - impl PartialEq<Cow<'_, [U]>> for &mut [T] - std::alloc::Allocator - std::alloc::Global - std::alloc::System - impl Allocator for Global - impl Allocator for System - impl<A: Allocator> Allocator for &A - impl<T: Allocator, A: Allocator> Allocator for Box<T, A> - impl<A: Allocator> Allocator for &mut A - impl<T: Allocator, A: Allocator> Allocator for Arc<T, A> - impl<T: Allocator, A: Allocator> Allocator for Rc<T, A> - Box::new_in - Box::from_raw_in - Box::from_non_null_in - Box::into_raw_with_allocator - Box::into_non_null_with_allocator - Box::allocator - Vec::new_in - Vec::with_capacity_in - Vec::from_raw_parts_in - Vec::from_parts_in - Vec::into_raw_parts_with_allocator - Vec::into_parts_with_allocator - Vec::allocator - Child::main_thread_handle - impl Default for std::sync::Once - bool::toggle - Box::take - Box::map - Rc::map - Arc::map - impl AsRef<T> for ! - impl AsMut<T> for ! - core::mem::DropGuard - core::mem::conjure_zst - UnsafeCell::replace - UnsafeCell::as_ref_unchecked - UnsafeCell::as_mut_unchecked - str::trim_prefix - str::trim_suffix - [T]::trim_prefix - [T]::trim_suffix - Path::trim_prefix - Vec::from_fn - os::windows::process::CommandExt::show_window ### Other changes Check out everything that changed in Rust, Cargo, and Clippy. ## Contributors to 1.100.0 Many people came together to create Rust 1.100.0. We couldn't have done it without all of you. Thanks!
RUSTUPRUST
byteiota | From Bits to Bytesheise onlineLinux Compatible
SOFTWARE AND DATA ENGINEERING

Announcing rustup 1.29.3

The rustup team has published a new point release of rustup, 1.29.3. Rustup is the recommended tool to install Rust, a programming language that empowers everyone to build reliable and efficient software. ## What's new in rustup 1.29.3 This new patch release has fixed some minor regressions over the previous one: - Fixed "Illegal instruction" error on certain x86_64 CPUs without SSE4.1. pr#5162 - Fixed "lock() not supported" error on Solaris. pr#5167 Further details are available in the changelog! ## How to update If you have a previous version of rustup installed, getting the new one is as easy as stopping any programs which may be using rustup (e.g. closing your IDE) and running: $ rustup self update Rustup will also automatically update itself at the end of a normal toolchain update: $ rustup update For this particular release, if you have encountered any issues during self-update, you may try to update rustup manually by following the steps below: 1. Download the corresponding rustup-init binary for your platform. 2. Make double sure that no other rustup processes are running. 3. Replace your existing rustup binary with the downloaded rustup-init renamed to rustup. - As a reminder, this binary is often located at $HOME/.cargo/bin/rustup, or $CARGO_HOME/bin/rustup if you have overridden the $CARGO_HOME environment variable. If you don't have it already, you can get rustup from the appropriate page on our website. Rustup's documentation is also available in the rustup book. ## Caveats Rustup releases can come with problems not caused by rustup itself but just due to having a new release. In particular, anti-malware scanners might block rustup or stop it from creating or copying files, especially when installing rust-docs which contains many small files. Issues like this should be automatically resolved in a few weeks when the anti-malware scanners are updated to be aware of the new rustup release. ## Thanks Thanks again to all the contributors who made this rustup release possible!
RUSTUPCONTRIBUTORS
InfoWorldbyteiota | From Bits to Bytes
SOFTWARE AND DATA ENGINEERING

Maintainer spotlight: Anthony Bolden (@Walnut356)

There are hundreds of people who maintain the Rust toolchain, often on a volunteer basis on top of another job. The Rust Content team is working on a series of blog posts highlighting some of these prolific contributors to recognize the awesome work that they are doing in order to make Rust better for everyone. You can find the previous post here. Consider donating to the Rust Foundation Maintainers Fund if you'd like to support Rust Project maintainers. --- In this post, we would like to introduce Anthony Bolden (@Walnut356). Anthony is a self-taught programmer who went on a mission to improve the Rust debugger experience. This year, he participated as a contributor in the Google Summer of Code program, and recently he joined the Rust compiler team. We interviewed Anthony to find out what brought him to programming and how he became an expert on debuggers. Read more below! Can you briefly introduce yourself and tell us how you started with programming? Hello, my name is Anthony Bolden, also known as @Walnut356, and I live in Wisconsin. I do not have any formal computer science education and I've never had a job in the tech industry, so my journey to programming was a bit different. I work overnight shifts in a hotel, where I often have a lot of time to spare, and I needed something to occupy my mind. For I while, I used to solve puzzles or read books, but eventually I got tired of that. I wanted to find a long-term project, so I tried programming. It took me a couple of tries until it "clicked", but when that happened, I instantly fell in love with it. It is so much fun! How did you discover Rust? I bought a couple of C++ books when I was learning how to program, so that was my entrypoint. But I was very dissatisfied with the development experience there. I wanted to make a simple game, because I've always found game design fascinating, but adding a dependency like SDL to my project turned out to be very difficult. I spent SO MUCH time trying to get it to work, and it didn't help that I was doing it on Windows. It should not be that hard! I really enjoy low-level programming, optimization work, reading assembly for fun… but C++ was not for me. So I switched to Python, even though I was not super satisfied with its performance and its typical use-cases. At the time, I played Super Smash Bros. Melee competitively, and I wanted to analyze replays from my matches to improve my play. There was an existing Python replay parser, but it was outdated and slow. I forked it, and through painstaking effort I managed to double its performance. But when working with thousands of replays and gigabytes of data, it still took an hour to process everything in Python. Then I realized that the original author of the Python parser abandoned it because they ran into the same performance problems. They decided to rewrite it in Rust instead. I took a look at the Rust code, but it seemed really complicated. It took me a few tries to break through the syntax barrier, but it didn't take long to realize that Rust is exactly where I wanted to be. It gave me the power to express exactly what I wanted, it was incredibly fast, and I didn't have to constantly fight just to add a dependency or build my project. You are doing a lot of work in the area of debuggers. What started that interest? When I started with Rust, I solved a lot of Advent of Code tasks, and I was debugging constantly, because it was my first exposure to data structures and algorithms. One day, CodeLLDB, which is a Visual Studio Code debugger plugin that I was using, removed their built-in Rust support, instead falling back to the visualizer scripts Rust distributes in its toolchains. That instantly made my debugging experience terrible, because those scripts weren't part of MSVC toolchains, and there were no alternatives at the time that would enable debugging with LLDB on Windows. Luckily, we programmers have a superpower: we can fix our own tools. At first, I wanted to contribute to either CodeLLDB, LLDB or LLVM itself to improve things. I've always been very interested in developer tooling anyway, so this was the perfect excuse to get started. However, trying to work with the LLVM codebase on Windows was just abysmal. I could not get my editor's C++ language plugin to work on its codebase, so I might have as well have been writing code in Notepad. After several weeks of frustration, I started looking into other options. The CodeLLDB maintainer suggested that it might be possible to fix the debugger visualizers on the Rust side. I was very pleased with the Rust tooling experience so far, but I was worried that building the Rust compiler would be an absolute nightmare, just like with LLVM. I cloned the Rust repo, ran the build command, and it just worked. On the first try, without any errors. I immediately thought "I need to put all of my focus on this". It was absolutely beautiful, there was no "environment hell" to work through before I could start writing code. Dealing with debugger internals sounds complicated. How did you learn it? I read through the CodeLLDB debuginfo visualizers, and it spiraled from there. When I find something I don't understand, I immediately open a new browser tab and look into it. That often leads to something else I don't understand, until I suddenly realize that I have 70 browser tabs open. There is an unbelievable amount of complexity in all this. How did you start contributing to Rust? Back in 2024, the Rust toolchain did not distribute debuginfo visualizers on Windows. Fixing that was one of my first contributions. Then I got started fixing all the little details that prevented the scripts from working properly for programs compiled for MSVC. Back then, the Rust compiler debuginfo test suite did not work on Windows at all, so I had to provide "proof" that my pull requests worked via screenshots. It was pretty silly, and not very reliable. Sometimes, I work on debuginfo improvements out of spite, because I'm a bit mad about the state of debugging in Rust when working on my own projects. But in general, I want to improve it also for everyone else, because many people are dissatisfied with it. It feels nice and rewarding to be able to take something (like the LLDB debugging experience on Windows) from not working at all to working reasonably well. Due to my background, I don't have a college thesis or some sort of big project that I could be proud of, so having something that I can collaborate on with a large amount of people and be able to genuinely help out feels super good. The Rust Project is actually one of the nicest communities that I ever interacted with, everybody has been super kind and helpful. This year, you participated in Google Summer of Code. How did you find it? I heard about Google Summer of Code in 2025, but at the time, I didn't feel confident enough in my skills to participate. Looking back, I maybe could have done it, but I didn't have a project in mind anyway. Eventually, I realized that I would probably never feel confident enough in my coding skills. I had to just try it. This year, after discussing the testing situation with the compiler team, I applied for a project to improve the state of Rust compiler debuginfo tests. When I was in high school, I had some difficulty with long-term, self-structured projects, so I was a bit worried about how it would go. But in the end, I think it went better than I would have expected. I stayed motivated, consistently worked on my project, and I think that I made really good progress on the goals that we set out. I think I improved in a lot of programming-adjacent skills too. It used to be very difficult for me to keep up with having multiple pull requests open at once, constantly switching between different git branches while staying organized. I feel like I got much better at that. I also became more confident in the whole contribution process. Opening a single pull request actually used to be a very big deal to me! I talked to my girlfriend about it, kept her updated whenever I got a review or it got merged, it was a whole thing. Nowadays, I open 2 or 3 pull requests at once, and it's not a big deal anymore. After finishing your GSoC project, you were invited to the Rust Compiler team. What does that mean to you? I got blindsighted by it! I was going to ask about the process for joining the compiler team that I would have to go through, but before I even asked, I was invited to the team. I'm still kind of in shock, to be honest. When I accepted it, I looked at the list of compiler team members, whose blog posts I have been reading for years. I don't have the sort of background, or a PhD, or a prestigious job at a giant tech company that many of them have. I look up to them and respect them so much, and it is such an honor to be working alongside them and learning from them. It will sound silly, but when I appeared on the Rust website after becoming a member of the team, it brought me to tears. I worked really hard the past couple of years, and it's easy to think "my code isn't good enough" or "what I'm doing isn't important". It is very cool that I was able to follow through with something that I set out to do, and I was recognized by other people for it. Since being added to the compiler team, I actually found out that my background is not that unique, and that there are others in the compiler team that are self-taught! It's really reassuring. Participating in GSoC and joining the compiler team also made it easier to explain to others what it is that I do. Trying to explain how open source works to my grandparents was difficult, because it almost sounds like a scam. It helps a lot when I can show them on the Rust website that I am now a part of the team that maintains the compiler. It is something tangible that they can brag to their friends about. What are you working on right now? Now that the debuginfo testing situation is no longer so dire, it freed me up to start adding new features to the debugger visualizers. I want to improve the visualizers for the Vec type and for wide pointers, allow indexing hashmaps in the debugger, and much more. There is also a large number of performance wins that we could achieve. Recently, I learned that LLDB maintainers plan to improve their plugin interface, which might allow us to have a native Rust debugging integration. That would allow implementing much better expression parsing and maybe integrating the debugger with miri. Another idea is that we could ship debuginfo visualizers written in Rust. Would you like to work on Rust professionally? If I could work on improving Rust debuginfo full-time, that would actually be the dream for me. I have a lot of fun with this, and I did it both during my night shifts, and in my free time. I would love to have a programming job in general, though I guess I sort of chose the wrong time to get into the industry, with the state of the job market right now. The hotel I worked for reduced the number of night auditors recently, and my position was eliminated. It's a bit bittersweet, since the stability and downtime are what allowed me to start programming in the first place, but I take it as a sign that it's time to move forward with my career and start seriously applying for software engineering positions. What advice would you give someone just starting their Rust journey? When you are starting to learn Rust, don't worry about best practices too much. Experiment, push boundaries, try everything, even if your code looks a bit gross. If the compiler tells you no, and you think it should work anyway, then argue with it! Try different things, do your research, and find out why it works the way that it does. If you just blindly follow best practices from the start, you might end up with a tunnel vision and not learn some important lessons. --- We thank Anthony for sharing his thoughts with us, and for all his work on improving the Rust debugging experience! You can read more about his debuginfo adventures on his blog.
WISCONSINRUSTANTHONY BOLDEN
this-week-in-rustThe Rust FoundationMy Very Best AI Slop | Vinnie | Substack