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

Support platform-defined standard directories #5183

Closed
wants to merge 1 commit into from

Commits on Apr 28, 2018

  1. Add support for platform-defined standard directories

    This change stops cargo from violating the operating system rules
    regarding the placement of config, cache, ... directories on Linux,
    macOS and Windows.
    
    Existing directories and overrides are retained.
    
    The precedence is as follows:
    
    1) use the `CARGO_HOME` environment variable if it exists (legacy)
    2) use `CARGO_CACHE_DIR`, `CARGO_CONFIG_DIR` etc. env vars if they exist
    3) use the ~/.cargo directory if it exists (legacy)
    4) follow operating system standards
    
    A new cargo command, `dirs`,  is added, which can provide path
    information to other command line tools.
    
    Fixes:
      rust-lang#1734
      rust-lang#1976
      rust-lang/rust#12725
    
    Addresses:
      rust-lang/rfcs#1615
      rust-lang#148,
      rust-lang#3981
    soc committed Apr 28, 2018
    Configuration menu
    Copy the full SHA
    d3ffb18 View commit details
    Browse the repository at this point in the history