Skip to content

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

@Lokathor

Description

@Lokathor

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions