我在哪里可以找到 .cargo/config? [英] Where can I find .cargo/config?
问题描述
我在 c:/user/me/.cargo/
a>,.cargo
没有一个地方:
Cargo 允许特定项目的本地配置以及全局配置,比如 git.Cargo 将此扩展到分层战略.例如,如果 Cargo 在/projects/foo/bar/baz
,那么下面的配置文件会按此顺序探讨统一:
/projects/foo/bar/baz/.cargo/config
/projects/foo/bar/.cargo/config
/projects/foo/.cargo/config
/projects/.cargo/config
/.cargo/config
$HOME/.cargo/config
完整算法也在你的主目录中搜索.
您应该在最适合您需要的地方创建目录.
I don't have this file in c:/user/me/.cargo/
As described in the Cargo documentation, there's no one place for .cargo
:
Cargo allows local configuration for a particular project as well as global configuration, like git. Cargo extends this to a hierarchical strategy. If, for example, Cargo were invoked in
/projects/foo/bar/baz
, then the following configuration files would be probed for and unified in this order:
/projects/foo/bar/baz/.cargo/config
/projects/foo/bar/.cargo/config
/projects/foo/.cargo/config
/projects/.cargo/config
/.cargo/config
$HOME/.cargo/config
The complete algorithm also searches in your home directory.
You are supposed to create the directory in whichever place is most appropriate for your needs.
这篇关于我在哪里可以找到 .cargo/config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!