It seems that the default behavior of Cargo when searching for its configuration directory is to look in the current user's home directory (~/.cargo
on my system). How can this behavior be modified to make Cargo look in a user-supplied directory instead?
相关问题
- Share Arc between closures
- Function references: expected bound lifetime param
- Pattern matching on slices
- How can I iteratively call Sha256::digest, passing
- Destructure a vector into variables and give away
相关文章
- How can I convert a f64 to f32 and get the closest
- What is a good way of cleaning up after a unit tes
- How can I unpack (destructure) elements from a vec
- How to import macros in Rust?
- How to get struct field names in Rust? [duplicate]
- Confusion between [T] and &[T]
- How do I initialize an opaque C struct when using
- What's the most idiomatic way to test two Opti
The default location can be changed by means of the environment variable
$CARGO_HOME
, it overrides the default location which is$HOME/.cargo
.The Cargo documentation
The Cargo documentation