Where can I find .cargo/config?

懵懂的女人 提交于 2019-12-02 02:37:26

问题


I don't have this file in c:/user/me/.cargo/


回答1:


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.



来源:https://stackoverflow.com/questions/46649992/where-can-i-find-cargo-config

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!