-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed as not planned
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
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)
kornelski, louwaque, joseluis, wasmup, gluxon and 9 more
Metadata
Metadata
Assignees
Labels
A-configurationArea: cargo config files and env varsArea: cargo config files and env varsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`