rustup icon indicating copy to clipboard operation
rustup copied to clipboard

Index and list all available toolchains

Open brson opened this issue 10 years ago • 15 comments

rustup toolchain list should also tell you which toolchains are available. Getting this information correctly will require either indexing it on the backend or having every client index the archives themselves.

Related to https://github.com/rust-lang-nursery/multirust-rs/issues/192

brson avatar Mar 30 '16 20:03 brson

I wish to have something like --json for as many subcommands as possible. It can be any machine-readable formats, not necessarily JSON

nodakai avatar Mar 31 '16 17:03 nodakai

Is there a place we can see the available toolchains in the browser right now?

oconnor663 avatar Aug 21 '16 04:08 oconnor663

@oconnor663 Not in a user-friendly way, but you can find the toml manifests here: https://static.rust-lang.org/dist/index.html

Diggsey avatar Aug 21 '16 09:08 Diggsey

@Diggsey thanks, that's what I needed.

oconnor663 avatar Aug 21 '16 15:08 oconnor663

rustup toolchain list gives me a list of the installed toolchains, not the available ones.

totalknowledge avatar Jul 03 '18 17:07 totalknowledge

Yes, please. The only reason I'll ever run rustup toolchain list is because I'm missing one that I expected to have.

theronic avatar Dec 10 '18 10:12 theronic

https://static.rust-lang.org/dist/index.html

This appears to not exist any more (the last Internet Archive snapshot was on 11-11-2018) – is there a replacement?

keysmashes avatar Dec 25 '18 23:12 keysmashes

if you're like me, you probably want rustup target list, because that shows the available target triples, eg x86_64-unknown-linux-musl

packysauce avatar Jan 04 '19 10:01 packysauce

Just ran into this while doing my usual google search for a list of toolchains. If you're using fish as your shell, it has dynamic completions for rustup, including a list of targets and toolchains, that are automatically available when performing an operation like rustup toolchain add <TAB>.

mqudsi avatar Dec 11 '19 23:12 mqudsi

For those still looking for a list, after some searching I found this: https://rust-lang.github.io/rustup-components-history/

jrb467 avatar Jan 31 '20 03:01 jrb467

@jrb467 @packysauce Thank you, good men! And rustup target list does the thing!

fadeevab avatar Sep 23 '20 19:09 fadeevab

The full toolchain channel list would be enormous (since there are lots of nightly toolchains etc). I don't think this kind of feature belongs in rustup. If there's a strong reason to support attempting to enumerate available toolchain channels then please open a fresh issue to discuss it, and we can bring in some of the infra/release team to help us work out what we could do.

kinnison avatar Dec 03 '20 22:12 kinnison

rustup is incomplete if you does not provide a list or at least a search feature: a kitchen should have an observable pantry.

gdennie avatar May 10 '23 02:05 gdennie

I would love to have a list that at least included a stable name for each of the current channels. I'm wanting to set my rust-toolchain to a prerelease of 1.74 but can't see a possible way to identify what value (if any) will be accepted.

droundy avatar Oct 18 '23 16:10 droundy

I'm going to lock this bug now - the last two comments have clearly not read the rest of the context.

For anyone else coming here: rustup would love this feature, but the data to support it is not generated by the rustup code base; it is the channel metadata and the related API that need to facilitate this feature.

rbtcollins avatar Oct 18 '23 18:10 rbtcollins