Description
Describe the problem you are trying to solve
We would like the miri component to be presented as "miri-preview" until it has been deemed stable.
Describe the solution you'd like
Any advice on how to accomplish this would be fine. 😄
Notes
The component was renamed to miri-preview
in rust-lang/rust#59236, so the current channel-rust-nightly.toml
describes miri like this:
[pkg.miri-preview]
version = "0.1.0-nightly (72b4ee038 2019-03-11)"
[pkg.miri-preview.target.aarch64-unknown-linux-gnu]
available = true
url = "https://static.rust-lang.org/dist/2019-03-27/miri-nightly-aarch64-unknown-linux-gnu.tar.gz"
hash = "17c2b1ad92b2621460c6ae2bc3025b32d088c7ba15ef65c5da003645fd348d5d"
xz_url = "https://static.rust-lang.org/dist/2019-03-27/miri-nightly-aarch64-unknown-linux-gnu.tar.xz"
xz_hash = "e3683df7c976f029eec95f693cd302ddb003d01444db917613d20386595d0744"
# ... and other targets ...
[renames.miri]
to = "miri-preview"
As a result, you can use either rustup component add miri
or miri-preview
. This is fine, but the displayed "info" always calls it just miri
, as does rustup component list
. We ought to still present this as miri-preview
until the tool is actually deemed stable.
I found that the other tools like rustfmt
, which are stable, are defined the same way, with [pkg.rustfmt-preview]
and [renames.rustfmt] to = "rustfmt-preview"
. We should continue to use the non-preview name for presenting these stable tools, which is why I think we may need some enhancement for miri's case, without affecting existing tool manifests.
Maybe we could just "flip" miri for now, defining [pkg.miri]
and then rename the other way [renames.miri-preview] to = "miri"
. That feels like a backwards kludge, but I guess we wouldn't need rustup changes then.