Skip to content

Commit 6a00c7f

Browse files
GuillaumeLagrangeart049
authored andcommitted
feat(cargo-codspeed): use cargo from cli
Local rustflags have be moved to cargo config. Before this, the .vscode/settings.json was setting a `RUSTFLAGS` value that was not shared by the cargo cli version, causing unneccessary rebuilds between `cargo build` and an editor save.
1 parent 280d7a0 commit 6a00c7f

File tree

16 files changed

+514
-3089
lines changed

16 files changed

+514
-3089
lines changed

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
rustflags = ["--cfg", "codspeed"]

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"rust-analyzer.cargo.extraEnv": {
3-
"RUSTFLAGS": "--cfg codspeed"
4-
},
52
"rust-analyzer.cargo.features": "all",
63
"editor.formatOnSave": true,
74
"rust-analyzer.checkOnSave": true,

0 commit comments

Comments
 (0)