Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use platform-defined directories for cargo state #8063

Closed
wants to merge 1 commit into from

Commits on Apr 1, 2020

  1. Use platform-defined directories for cargo state

    This commit is a continuation and adaptation of rust-lang#5183, which aimed to
    make cargo no longer reliant on the `$HOME/.cargo` directory in user's
    home's, and instead uses the `directories` crate to get
    platform-defined standard directories for data, caches, and configs.
    
    The priority of paths cargo will check is as follows:
    
    1. Use `$CARGO_HOME`, if it is set
    2. Use `$CARGO_CACHE_DIR`, `$CARGO_CONFIG_DIR`, etc, if they are set
    3. If no environment variables are set, and `$HOME/.cargo` is present,
       use that
    4. Finally, use the platform-default directory paths
    spacekookie committed Apr 1, 2020
    Configuration menu
    Copy the full SHA
    442350b View commit details
    Browse the repository at this point in the history