Comments (5)
Implementation-wise a basic idea would be placing an implicit.txt
in the toolchain directory to signify that one toolchain is implicitly installed as required by one or more projects, with one toolchain file path per line.
If the file is missing or is empty, we consider the toolchain to be manually installed.
Finally, a toolchain can be pruned if it's implicitly installed and all paths in its implicit.txt
are invalid. Otherwise, only the invalid paths are removed instead.
PS: This is neither saying I'm implementing it, nor meaning it's going to be implemented this way.
from rustup.
Finally, a toolchain can be pruned if it's implicitly installed and all paths in its implicit.txt are invalid. Otherwise, only the invalid paths are removed instead.
you would need to actually parse the rust-toolchain files, since it might have changed to reference a different toolchain (this is extremely common for things like clippy)
from rustup.
@lolbinarycat Thanks for filing this issue! I think this feature request is quite valid.
Indeed, you'd like to have something like this as well especially when you're working with many different projects each with its own rust-toolchain.toml
(although I first encountered this with our downstream elan
).
However since this is doesn't look like a trivial change, correctly implementing this might require some more investigation... Please bear with us as t-rustup
's current bandwidth is still quite limited 🙇
from rustup.
Yeah, I'm honestly not sure the implementation complexity of this is worth it. At the very least (a) I don't think it should be a priority for us and (b) this needs a good design to decide where this state gets stored.
from rustup.
Yeah, I'm honestly not sure the implementation complexity of this is worth it. At the very least (a) I don't think it should be a priority for us and (b) this needs a good design to decide where this state gets stored.
Just to add some context: I installed Lean 4 with rustup
-derived elan
. When I was maintaining a project that relied on mathlib4
, the latter included a toolchain file. As I bumped it from time to time, the toolchain file also got updated, so I ended up with more and more versioned installations of the toolchain without a way to "prune" them... I imagine the same thing will happen with Rust projects as well.
from rustup.
Related Issues (20)
- Consider getting rid of `toolchain_sort()`
- Confusing error message `toolchain "stable-x86_64-unknown-linux-gnu" is not installable` HOT 9
- Use `LevelFilter::Warn` for `stderr` if `-q` is present in `rustup-init`
- rustup segfaults when running in a linux/amd64 docker container on macOS M3 host HOT 6
- Improve handling of `clap` errors
- FreeBSD CI failure possibly caused by `rustls-platform-verifier` HOT 6
- Dependabot lockfile updates are gone
- Meta: Ship builds from the `master` branch as well
- Tracking: Workspace trust & safe file discovery
- Windows: "called `Option::unwrap()` on a `None` value" HOT 18
- Tracking: Ensure the integrity of toolchains, handle concurrent reads/writes HOT 2
- Proposal: `rustup toolchain verify`
- `rustc --version` should not trigger/initiate toolchain updates HOT 3
- UI error - contradictory output when toolchain not found HOT 2
- Update `taplo` to v0.9
- Toolchain file not properly resolving Rust 1.79 HOT 4
- rustup update in traditional package installed operating systems HOT 2
- user-guide/environment-variables, dev-guide/tips-and-tricks, ... — Undocumented environment variables?.. HOT 5
- Rust installation freezes on Raspberry PI (worked in 1.26) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustup.