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

Documentation doesn't explain where the cargo config file is on Windows. #7571

Closed
Lokathor opened this issue Nov 8, 2019 · 1 comment · Fixed by #7650
Closed

Documentation doesn't explain where the cargo config file is on Windows. #7571

Lokathor opened this issue Nov 8, 2019 · 1 comment · Fixed by #7650
Labels
A-documenting-cargo-itself Area: Cargo's documentation

Comments

@Lokathor
Copy link

Lokathor commented Nov 8, 2019

https://doc.rust-lang.org/cargo/reference/config.html

Gives the following list:

  • /projects/foo/bar/baz/.cargo/config
  • /projects/foo/bar/.cargo/config
  • /projects/foo/.cargo/config
  • /projects/.cargo/config
  • /.cargo/config
  • $CARGO_HOME/config ($CARGO_HOME defaults to $HOME/.cargo)

Yet on windows neither of the two suggested path variables seem to exist:

D:\dev\terbium>echo %CARGO_HOME% 
%CARGO_HOME%

D:\dev\terbium>echo %HOME%       
%HOME%

The actual .cargo directory seems to be located in C:\Users\<username>\.cargo, so that should be mentioned.

@ehuss
Copy link
Contributor

ehuss commented Nov 8, 2019

Yea, $HOME is usually %USERPROFILE% on windows, seems reasonable to mention that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-documenting-cargo-itself Area: Cargo's documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants