Skip to content

Support installing multiple release channels #19263

Closed
@SimonSapin

Description

@SimonSapin

Rust is going to have three release channels: stable, beta, and nightly. Each of them has its use (that’s why they exist), so it will probably be common to have more than one of them installed at the same time on the same machine (such as a developer’s laptop).

Currently, this it is possible to install multiple rusts at different locations, and set up the PATH and (since the [rpath removal]) LD_LIBRARY_PATH environment variables to pick one of them. However this is error-prone and not very convenient.

It would be better if multiple versions could be installed in the same "prefix" (e.g. /usr, where the default environment variables Just Work®). Executables could have a suffix to distinguish them, for example /usr/bin/rustc (stable), /usr/bin/rustc-beta and /usr/bin/rustc-nightly. Other files would have to be namespaced somehow to avoid conflicts.

(Corresponding Cargo issue: rust-lang/cargo#967)

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