From 307be7cc7c8e0820a292124332fba7e0517d8ad2 Mon Sep 17 00:00:00 2001 From: Amos Wenger Date: Tue, 19 Jul 2022 13:02:16 +0200 Subject: [PATCH] Add CARGO_WORKSPACE_DIR env var in `.cargo/config.toml` As discussed in https://github.com/rust-analyzer/expect-test/issues/33 --- .cargo/config.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 982c78cd250d..24745d1c806f 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -6,3 +6,6 @@ lint = "clippy --all-targets -- -Aclippy::collapsible_if -Aclippy::needless_pass [target.x86_64-pc-windows-msvc] linker = "rust-lld" + +[env] +CARGO_WORKSPACE_DIR = { value = "", relative = true } \ No newline at end of file