Cargo 将 git 要求放在哪里?
Where does Cargo put the git requirements?
编译项目时,cargo 会自动下载在 Cargo.toml 中指定的要求,作为 git-存储库给出。
例如
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
将导致
Updating git repository 'https://github.com/PistonDevelopers/opengl_graphics'
编译时。它将这些存储库保存在我的磁盘上的什么位置?我正在使用 Windows,这会改变什么吗?
man cargo
给出:
FILES
~/.cargo
Directory in which Cargo stores repository data. Cargo can
be instructed to use a .cargo subdirectory in a different
location by setting the CARGO_HOME environment variable.
对 CARGO_HOME
执行 git grep
会发现 https://github.com/rust-lang/cargo/blob/3533ff11c505017751d1e466685efe7084cbd96b/src/cargo/util/config.rs#L380-L384
编译项目时,cargo 会自动下载在 Cargo.toml 中指定的要求,作为 git-存储库给出。
例如
[dependencies.piston]
git = "https://github.com/PistonDevelopers/piston"
将导致
Updating git repository 'https://github.com/PistonDevelopers/opengl_graphics'
编译时。它将这些存储库保存在我的磁盘上的什么位置?我正在使用 Windows,这会改变什么吗?
man cargo
给出:
FILES
~/.cargo
Directory in which Cargo stores repository data. Cargo can
be instructed to use a .cargo subdirectory in a different
location by setting the CARGO_HOME environment variable.
对 CARGO_HOME
执行 git grep
会发现 https://github.com/rust-lang/cargo/blob/3533ff11c505017751d1e466685efe7084cbd96b/src/cargo/util/config.rs#L380-L384