Skip to content

Setting RUSTUP_HOME and CARGO_HOME before running rustup installation does not work in Windows #4687

@temeipu-offical

Description

@temeipu-offical

Defining RUSTUP_HOME and/or CARGO_HOME environment variables to override default installation directory for .cargo and .rustup does not work (in Windows at least).

Steps to reproduce:

Define RUSTUP_HOME as an environment variable
Define CARGO_HOME as an environment variable
Double click on rustup-init.exe to begin the installation

Result:

.rustup and .cargo will be installed at the default directory which is %USERPROFILE%.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions