I must caution to please do not underestimate how much effort supporting such kinds of LTS needs. When we say LTS toolchain, what components in the Rust toolchain are we talking about? The bare minimum of {rustc, std}? The full distributed toolchain {rustc, std, cargo, clippy, rustfmt, ...}? The full toolchain + source included, including e.g. bootstrap?
I want to mention this because some of these components have chronically low maintenance bandwidth and are really difficult to backport certain patches for. E.g. as a volunteer maintainer I have approximately negative interest in dealing with LTS stuff (e.g. I don't even want to take up contracting even if Foundation or such is willing to pay for LTS support), supporting the latest {stable, beta, nightly} is already a ton of work. In particular, volunteer maintainer review time and debugging time is not free! They are donated.
My preliminary proposal is that the LTS would support the components which are a stable and supported part of the stable channel (and which the recommended way to use those components continues to be through the rustup distribution) for the LTS period (e.g. one year). Support would initially be the same as what the requirements for a stable backport are, i.e. security vulnerabilities when running the compiler (treating all compiled Rust code as trusted) and any severe stable-to-stable regressions. If a stable fix wouldn't merit a backport and we'd just tell people to update, then it shouldn't get an LTS backport.
Just like you don't need to use an LTS compiler toolchain to successfully build and maintain LTS software, we don't necessarily need to provide LTS for x/bootstrap to provide LTS for the toolchain it builds. Even if we do, it'd only need to be for x dist.
I'm working on a survey to try and get an understanding of what actual potential LTS customers expect when they hear "Rust LTS" mentioned. One of the questions is what software components the respondent expects to be supported. The current options are each rustup components, some "feels first-party" crate packages[1], and a write-in option.
Do excuse me being slower to respond this week and next — I'm moving in with my significant other. We're super excited, but there's a lot to do right now.
Crates like cc, libc, log, and regex. I have no intent of suggesting that "Rust LTS" should cover crates other than the stable sysroot; this is to help understand what enterprise users think they'd be getting from a Rust LTS and to understand their price expectations relative to that. ↩︎
The main thing that's unclear to me is which patches would be considered for backports. You said "security patches", but what does that mean? rustc itself is defined to trust its input so does that mean by definition we'll never backport compiler patches? In the past we've had CVEs for cargo issues (I guess that makes sense, it does network stuff), and for some standard library issues -- so are those also eligible for a backport? I don't think we ever had a CVE for a rustc issue. But is "has CVE" the right thing to look at? We certainly had point releases for things that are not CVEs, and arguably not security issues.
I would consider miscompiles to be security issues if they have more than a trivial chance of introducing security issues into the code being compiled. (For example, a bug which causes the compiler to sometimes forget to generate a bounds check would from my point of view be fairly clearly a security issue.)
There is no way we can commit to backporting miscompile fixes. Those often need LLVM upgrades or non-trivial changes to optimizations. If you want miscompile fixes, you need to live with the risk that those fixes may cause other problems.
For the spirit of LTS? Probably not. For satisfying the requirements that lead to requiring the usage of LTS? Quite possibly so, because now every patch to LTS can point to the documented problem it fixes for the needed justification for deploying the targeted change.
Wasn't there one where we were loading plugins automatically? Or was that also a cargo issue?
That was for rustdoc and it didn't require any particular code as input. It was loading from the world writable /tmp, so anyone on the same machine could exploit it to run code as someone who runs rustdoc: Security Advisory for rustdoc | Rust Blog
Now I'm wondering whether an LTS LLVM might be more useful than an LTS Rust.
Some miscompiles are caused by mir-opts (in which case they can presumably be safely fixed simply by disabling the optimisation in question), or undefined behaviour in the standard library (which I think could reasonably be fixed as a security fix), but LLVM is probably responsible for most of them. As such, it seems like the "low-risk updates only" nature of an LTS would likely be more useful on LLVM than on rustc (and in particular, if there isn't an LLVM version receiving low-risk updates only, then it is hard to see what backend an LTS rustc could depend on).
IINM LLVM LTS would have the same-ish problems, that backports can be not at all trivial, and for miscompile fixes their backports are at times not low-risk at all
LLVM is a good point. I don't think LLVM does any kind of long-term support, they only ever do patch releases for the latest version. They release a new version every 6 months. So we'd have to do the support work ourselves for at least another 6 months after that. That's not something we have the capacity to do, I think.
So I think we should be very clear that there will be no miscompile fixes, except when a miscompile can be fixed with a trivial revert (but those we usually discover during the first 6 weeks and we often already make a point release for that).
Distros are apparently fine with the LTS policy of GCC and clang. What does that look like?
To elaborate for future reference, for LTS-ish proposals like this, it would help everyone reading it if the proposal covers these from the very beginning:
Some concrete points one may wish to cover. This is not exhaustive and is also not intended to be "difficult", just that these are some clarifying questions folks would usually want to ask anyway (some of these were already asked above):
Motivation
"What problems am I having?" -> Maybe it's an XY problem?
Primary painpoints and needs versus papercuts
Priorities and importance for you: what bits are "must have" versus "nice to have"?
It helps a lot to spell out the problems one is facing, without prescribing LTS as the necessary solution.
What does the LTS actually entail?
Scope
Full toolchain incl. devtools like cargo, rust-analyzer, rustfmt, clippy, rustup?
"Core" bootstrapping toolchain {rustc, std}?
Include bootstrap (i.e. ./x.py or ./configure)?
Does it cover ecosystem dependencies used by the toolchain? E.g. rustc also makes sense of selected ecosystem crates. Do the proposed LTS cover those too?
Does it cover the selected codegen backend? (E.g. LLVM at the moment, but one can foresee e.g. cranelift or cg_gcc to give as example)
What does a Rust toolchain LTS mean for say fixes that involve LLVM changes?
What kind of things would you expect to backport?
Security fixes? All security fixes? Critical ones only? What might be the bar? Who/how would (we) determine if the bar is reached?
Soundness fixes? All soundness fixes? Or the most-likely to hit ones?
Important note: some security and soundness fixes rely on significant precusor changes to e.g. rustc/std/LLVM, and it's not a guaranteed that you can backport all such fixes, unless you also bring along all the precursor changes. That can easily tip the risk scale. Just to be clear, it is not trivial, and it becomes more challenging the longer the distance between latest development changes and the LTS target.
Target support? Architecture support? Tier 1/2/3 target? Please note that, sometimes we unfortunately have to straight up delete a target from existence. LTS for a target gone from development will not be fun...
What does the "LT" in LTS stand for? What does "long term" actually mean, here?
Based on the 6-week stable release cycle? I.e. by version numbers?
Based on time?
Intention for funding? Who's supposed to do the extra work for LTS maintenance? If the LTS has bugs?
Essentially: asking only volunteers to do LTS is basically not going to work, both in terms of time and effort, and that it's generally just "work". But there are almost certainly viable ways if such LTS work is pre-arranged and funded.
Do you have any vision for how LTS and LTS-adjacent work might be funded (this includes triaging if e.g. a backport should be applied to LTS branch too!)?
Unrestricted/restricted funding for the Rust Foundation Maintainer's Fund (RFMF) or to the Foundation?
Contracting? Employment?
Specific-purpose funding for e.g. project goals like approaches?
If the LTS has security problems, who's going to triage the report, coordinate the security response, coordinate the fix and responsible disclosure? Who's going to handle the release logistics? How would the LTS be released and distributed?
(NB: this is not intended specifically for this post, just to be clear.)
As a crate author, I wish the Rust Project or the Rust Foundation didn't do this, because 1) I'm worried that designating an "official" LTS would make people feel more entitled than Debian stable currently makes people feel entitled to complain to crate authors who increment MSRV in a crate update and 2), while I don't get to say what folks who work on Rust itself should work on, I'd prefer effort not getting diverted into LTS maintenance.
I think it would be worthwhile to more directly compare what's being proposed here with each of Debian, Ferrocene, and Red Hat Rust Toolset and to state more directly in each case why the proposed difference would be worth the diverted attention both from developers of Rust itself and from developers of crates.
(The OP's mention of Ferrocene is in the context of a "single standard timeline", which to me looks a lot like a way to put more pressure than currently on crate author regarding what MSRV is socially accepted for crates. To be clear: I have a positive view of Ferrocene, and, as a crate author, I have never had anyone complain to me about MSRV due to Ferrocene.)
The OP mentions "Rust’s API evolution policy necessarily allows for some changes that have the possibility to break downstream consumers." From personal anecdata, I think this is being afraid of the wrong thing. A Rust toolchain update causing code that previously compiled not to compile has occurred, but it's 1) rare and 2) very, very obvious that there's a compilation error that points at what to change. What has affected code that I've written more often is that a Rust toolchain update has made something that I've carefully optimized to be fast to become slower. I expect fixes to regressions that make things slower but don't cause incorrect values to be computed wouldn't be backported to LTS. But perhaps expected users of LTS don't care about that aspect that much.
Still, I feel like LTS is catering to perceived concerns of folks who aren't using Rust today, and while I understand the desire to get such folks use Rust, I think it's not good to continuously divert resources to cater to problems that current non-users anticipate but aren't actually a big practical issue when using Rust (even if this sounds like an argument from survivorship bias).
I had to go away and think for two months to figure out why I feel so strongly, not only that the project should start doing LTS releases in the relatively near future, but that it should, in the long run, be the version of the language that most developers use and most crates target; but after doing that, my reasons come down to just one sentence:
"It just changes less" is a valuable product (meta-)feature in and of itself.
I claim that for almost all users of a programming language, this meta-feature is more valuable than newly stabilized language features, performance improvements, removed pain points, etc. etc. This is not because of risk tolerance; it's because of the reduced cognitive load from knowing there are no changes they might need to know about.
People like @Vorpal and @hsivonen (and yourself) have said in the past that they believe it's fine for Rust to keep making changes to the language and kicking them out the door to users at the current rapid pace, because the backcompat guarantees mean nobody should have to update their understanding of the language until they want to, but its not technically being required doesn't mean people don't feel like they have to keep up. Only if you know there isn't anything to keep up with does the mental pressure actually go away.
Here's some anecdata to support this point, from another ecosystem. With my day job hat on, I had a conversation at PyCon last year (2025) with people who are still using Python 2 even though it's years past its end-of-life, about why they're doing that. The most common reason they gave was simply lack of funding and/or staff hours to convert large legacy codebases. However, the second most common reason came down to: The language called "Python 3" is a moving target. 3.13 is different enough from 3.12, which is different enough from 3.11, etc. that there is a perceived risk that they'd do a lot of work updating that legacy codebase from 2.7.last to whatever's current at the time they started the conversion, and by the time they were done, their target Python would have dropped out of support and they'd have to do another big conversion job. That perceived risk makes management unwilling to take the plunge.
Python only does feature releases roughly once a year, and they also make strong backward compatibility guarantees, and neither of these things stops people from being afraid they'll get caught in this hypothetical Red Queen's race.
Don't you see that by feeling entitled to increment your MSRV in a crate update, you are contributing to the perception that it isn't actually safe for the average Rust developer (who, perhaps, uses your crates) to wait to update their understanding of the Rust language until they are good and ready to do so?
There are a lot of missing critical features. Maybe not those you need. But I would really need variadics, try_as_dyn and allocator API. There are also several features important to embedded (some blocked on the new trait solver I believe). The async ecosystem is also still a bit of an MVP. And so on.
It seems rather selfish to not want to make Rust fully usable for others.
I believe you are in a minority (based on interacting with many people in my daily life and online). I do glance at release notes because I find it fun to do so for rust. I even skim the weekly rust analyzer release notes for the same reason to see if there are any cool new features.
But there are other projects where I dont care and just update. Arch Linux on my desktop and laptop is one of those. A few times per year there is a short post about a manual update step (which inget in my RSS reader), and 9 times out of ten it isn't relevant to what I have installed. Once or twice a year I do have to roll back a package for a week or two after reporting a bug. I do not feel compelled to find out what is new in all of those updates.
Now, contrast that to LTS distros that I have had the displeasure of using. Every couple of years there is a ton of release notes and upgrade instructions to through. St least five things break and a few packages are removed each time. And then there are the constant security updates, that often break things in practise (far more often than Arch breaks). I lost count of how many time I have had to roll back Debian and Ubuntu kernels due to breaking graphics or (most often) suspend and resume.
I cannot see how you can defend this as something tjat suits "most developers". Yes, there are some enterprise customers who want this, but those aren't most developers.
This is an incoherent paragraph. I can not make any sense of your reasoning, and as such I can not raise a counterpoint. If you would like to clarify and explain your reasoning, I'm willing to debate it.
That certainly represents a major philosophical difference compared to current Rust, making Rust closer to (say) C or C++.
Having to wait years for new language features is undesirable. Among other things, that makes those features more disconnected from reality, less amenable to user feedback, more likely to take large steps before adjusting direction, less responsive to user needs, and more likely to result in large workarounds for stale versions being passed around via channels that remain capable of change.
EDIT: And as Ralf notes it also discourages Rust development.
And if crates.io gets affected by the same stagnation, I genuinely think the net result would be people treating Rust as a language that needs replacing, just as Rust is heavily drawing users from languages that have much more stale release cycles.
I also believe that us regularly shipping new features and new versions has an effect similar to GREASE in TLS: making sure we can keep doing so without stagnation.
So, no, whether we have an LTS or not, the default version of Rust for most users should be latest stable, and I hope we continue to ship tempting features that make people not want to support ancient versions of Rust.
Indeed. I used to say that the 10+-year interval between updates to the C standard was the only remaining reason why someone should consider C for new code. (I don't say this anymore, because C2023 broke a bunch of the backward compatibility guarantees one could previously rely on, and so I no longer feel comfortable recommending use of C at all.)
I think you're wearing language-developer-colored goggles when you say that. You, the developer of the features, value getting the features that you put a lot of effort into, out to end users, as quickly as possible. That's natural.
End users, by contrast, only value that if the features in question close gaps in the language's capabilities that are actually relevant to them. @Vorpal just gave a list of missing features in Rust that he wants, but none of them are any use to me. The features I most regularly find missing are C type system exotica that Rust FFI can't quite handle
(kernel devs love to put flexible array members and anonymous unions in ioctl request packet structures), more powerful macro_rules! macros, orphan-rule overrides, a richer set of possible unit test outcomes, and #[cfg] extensions that would allow my code to adapt to whatever Rust language version happens to be available, rather than having to demand a particular minimum version; as far as I know, no one is working on any of these.
In the absence of any progress on any of the features that are relevant to me, what I want is to not have to think about whether I am accidentally writing code that requires a higher minimum version of either Rust itself, or any of my dependencies, than the versions declared in my Cargo.toml, just because I happen to have newer versions on my computer and/or because I didn't notice I'm looking at a newer version of the documentation. Practically speaking, I don't see any better way to make that happen than for everyone to adopt slower feature release cadences. Much slower -- once a year should be considered on the edge of 'too fast'.
And for the reasons I gave earlier (the conversations at PyCon), yes, I do think a majority, possibly a supermajority, of developers are in agreement with me here. If you want to convince me otherwise you're going to need to bring actual evidence. I'm willing to be convinced! But I ran an actual set of field observations on people who aren't the core developers of a programming language, I think that's more significant than anything else anyone's brought to the table.
I'm not worried at all about the language or the crate ecosystem stagnating, because I think everyone loves writing new features for their own pet project, and I think that'll probably be good enough to keep things rolling along. Again, I'm willing to be convinced otherwise, but it's going to take actual evidence.
Now, of course, everyone has a different set of pet features that they care about, and if someone was working on one of my pet features then I would want to be testing it out as soon as possible. I think we could have the best of both worlds with an approach like so:
we do keep putting out releases of the compiler relatively frequently
we let people start using #![feature(...)] with the stable compiler
everything that was added to either the language or the stdlib after the first compiler release for an edition requires activating a feature gate if you wanna use it; the set of on-by-default feature gates only ever changes at an edition boundary
possibly it would be useful to add a way to turn features off individually
docs.rust-lang.org asks you to select an edition, and then clearly marks everything newer than that with the feature gate you need to enable if you want it
Well, I believe you are radically underestimating the number of people who find system updates terrifying and wish they would happen less often, preferably "never". But that's not even the problem with your argument. The real problem I have with your argument is you're trying to draw conclusions about the desirability of a slow cadence of new programming language features from experience with badly backported kernel updates that cause regressions. Those are two very different things.
"LTS Rust" wouldn't have to be developed anything like an "LTS Linux kernel". There's no reason to expect it to consist of an outdated core codebase to which a constant stream of alleged security hotfixes is being backported.
It seems perfectly coherent to me, but I'll try to break it down step by step.
Alice writes a library crate. Version 1.0 has an MSRV of 1.77.
Bob writes a binary crate that depends on Alice's library. Bob has version 1.78 of the Rust compiler on his computer, so version 1.0 of Alice's crate works fine for him.
Bob can't be bothered to run rustup very often. Bob finds the capabilities of Rust 1.78 completely adequate to his needs.
Alice releases version 1.1 of her library with a shiny new feature that Bob thinks would be really useful for his program. However, at the same time she raises the MSRV all the way to version 1.96.
Cargo warns Bob that if he wants to depend on version 1.1 of Alice's library he needs to raise his crate's MSRV.
Whether or not any of the changes to the Rust language between 1.78 and 1.96 actually affect Bob, he now feels he has to put his project on hold and go learn what they all are. Bob resents having to do that and he blames Alice for making him do that.
In @zackw's opinion, Alice should've prioritized avoiding this unhealthy social dynamic over whatever shiny new features of Rust she wanted to use in version 1.1 of her library, and should've considered an MSRV bump to be a breaking change (i.e. requiring version 2.0, and to be put off as long as humanly possible).
Also in @zackw's opinion, the Rust core team should put more effort into language features that would make it easier for Alice to use shiny new Rust features optionally, if the newer compiler happens to be available, while leaving the MSRV alone.
Hard disagree there. I value new features that can help me improve my code too.
And that's the point. Just because I dont know about the features you need, doesn't mean I begrudge you having them. If they are useful to enough people they should be added! But it is open source, so someone has to put in the work, either you can do it yourself, or you can wait around hoping someone will.
Also, I recently saw progress on C variadics defined in Rust. I didn't look too closely as it doesn't interest me, but it sounds related to your fields. So some stuff is happening.
Define a MSRV in your Cargo.toml. I forget if it is rustc or clippy that will warn about using newer features. But that is not 100℅ foolproof (still pretty good though). To cover the last bit, set up a CI job that builds on your MSRV.
To pharaphrase you from earlier: can't you see how this attitude is damaging to everyone else who dont share your values?
I believe strongly in reaching compromises that work reasonably well for everyone. No one is going to ger exactly what they want, but that way lies a polarised madness. It is reasonable for a core crate like tokio or anyhow (to pick a few at random) to have a conservative MSRV of maybe a year behind, rather than the bleeding edge that I prefer for my much smaller crates (which I will update when I need to N-1, but I dont update MSRV for unless I have a reason).
This is the bit that I dont believe. Does it build and pass the test suite on the new version? Well, if not you have an issue anyway (and should report a regression between stable releases, quite rare). If it does work, you are done.
If your project is open source people will build it with the newest toolchain anyway, so you can't opt out of dealing with updates. (If it isn't open source, you could indeed stay behind.)
The MSRV aware resolver makes this an non-issue. He can get to use whatever version is compatible with the toolchain of his choice (past when the MSRV aware resolver was stabilised, but you can also use a newer cargo to resolve the lock file for an older compiler if you really need it). I fundamentally disagree with Bob believing that he gets to eat the cake and have it too. Either he can stick to old libraries and old toolchain, or he can get a new toolchain to be able to use new libraries. (The other way around, new toolchain and old libraries work thank to the backward compatibility of rust.)
If he can use a new library, why can't he use a new toolchain, both are equally scary to an LTS user surely? Sure in the C world that wasn't the case (for some pretty bad reasons), but we don't live in that world any more.
Those would be nice yes (as would a hundred other things). I would be surprised if contributions weren't welcome.
I think different language ecosystems are differently susceptible to this. Rust has best in class backward compatibility, and some of the best tooling (such as cargo-semver-checks) to detect issues ahead of release. Crater helps a lot for the standard library and compiler.
I don't think it is useful or valid to look at opinions in other language ecosystems to draw conclusions about Rust. It would be like saying lots of US born Americans like football with an egg shaped ball, therefore I conclude all of the of America likes this sort of football, and indeed the whole world.
I bet if you went to RustConf or EuroRust you would get very different answers.
This assumes that Bob has an MSRV. Most people should just not have one, maintaining that is so much extra work with very little reward[1], and so it's not raising his MSRV it's just updating the compiler he uses locally.
This is already true if Bob is declaring an MSRV of 1.78 (rather than an Only Supported Rust Version of 1.78). If some change affects his published code, then someone somewhere using it might run into that change even if he only uses 1.78 personally.
and I highly doubt most people that publish one actually put in that work, how often do you see a CI setup that actually tests the entire range of supposedly supported compilers? I have had crates that were broken on just one or two minor releases in the past, so only testing the low-end of the range is not sufficient ↩︎