Closed as not planned
Description
I would like to configure CARGO_TARGET_DIR
globally so that build happens on a faster/larger partition than ${HOME}
(usually on NFS).
Setting
[build]
target-dir = "/home/ensc/.cache/cargo"
in global ~/.cargo/config
causes bad effects because builds of different software packages are mixed in a single directory.
It would be nice when target-dir
accepts some place holders like
[build]
target-dir = "/home/ensc/.cache/cargo/%X"
where %X
can be
%C
... the hash of the directory withCargo.toml
%P
... the full path of the directory withCargo.toml
%N
... thepackage.name
(seems to be difficult with recent code)