Skip to content

Commit 66c88bd

Browse files
committed
Configure CARGO_TARGET_DIR for rust-analyzer to fix unnecessary pyo3-build-config rebuilds
See PyO3/pyo3#1708 (comment)
1 parent 5f2ccf5 commit 66c88bd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/target
2+
/ra_target
23

34
.venv/

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"rust-analyzer.cargo.extraEnv": {
3+
"CARGO_TARGET_DIR": "ra_target",
4+
}
5+
}

0 commit comments

Comments
 (0)