summaryrefslogtreecommitdiff
path: root/dir-locals
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2022-11-16 21:11:10 -0500
committerJohn Turner <jturner.usa@gmail.com>2022-11-16 21:11:10 -0500
commitec6c5e35fab1bfe464abcb2a24eb92cab84a699d (patch)
tree9236ebfc96ec82f4300030b238e878b591abac0f /dir-locals
parentf3a38c63630ed7f44e3c9bd4d0997221ec07b2e8 (diff)
downloademacs.d-ec6c5e35fab1bfe464abcb2a24eb92cab84a699d.tar.gz
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.
Diffstat (limited to 'dir-locals')
-rw-r--r--dir-locals/eglot-rust-dir-locals.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/dir-locals/eglot-rust-dir-locals.el b/dir-locals/eglot-rust-dir-locals.el
index 9fff9e8..5f7d0c6 100644
--- a/dir-locals/eglot-rust-dir-locals.el
+++ b/dir-locals/eglot-rust-dir-locals.el
@@ -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"))))