Skip to content

option to install toolchain version IFF it has certain components #1501

Closed
@matthiaskrgr

Description

@matthiaskrgr

When dealing with continuous like travis, I can specify a toolchain I want to have

language: rust
rust:
  - beta
  - nightly

but not what components (rustfmt clippy) I want to install.
This means if I want to use clippy or rustfmt, I have to manually rustup component add it or, if the current nightly version does not ship it, try to somehow install it myself and hope it builds with the current rustc nightly.
It would be great to have some kind of option "install the lastest nightly that has components x and y available" which entails potentially downgrading to a earlier nightly if the current nightly does not ship the components but the later nightly does.

Perhaps rustup install nightly --needed-components=clippy,rustfmt or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions