Problems of `.cargo/config` files and possible solutions

Personally, I would like to transition to a model where only two .cargo/config files are ever read: the one in the workspace (or next to the Cargo.toml iff not in a workspace), and the one in $HOME. No traversing upwards to parent directories (e.g. /tmp/.cargo/config which anyone could create, which is arguably a security problem).

14 Likes