override "TMPDIR" environment variable for all cargo commands

Rustdoc does not respect "CARGO_TARGET_DIR" and instead uses "TMPDIR"
or /tmp. On systems that mount /tmp with "noexec" this breaks doc
tests, since they can't be executed.
master
John Turner 2 years ago
parent f3a38c6363
commit ec6c5e35fa
No known key found for this signature in database
GPG Key ID: 422FE10CC41A94A2

@ -3,4 +3,5 @@
(:command "clippy")))))
(rust-format-on-save . t)
(rust-format-goto-problem . t)
(rust-rustfmt-switches . ("--edition" "2021")))))
(rust-rustfmt-switches . ("--edition" "2021"))))
(nil . ((rust-cargo-bin . "TMPDIR=~/tmp cargo"))))

Loading…
Cancel
Save