Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26938e1

Browse files
committedDec 15, 2021
Name bin target differently from lib
This avoids file collisions, which lead to spurious rebuilds and errors from Cargo (recently added by rust-lang/cargo#10172).
1 parent 9fe2dff commit 26938e1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
 

‎collector/benchmarks/token-stream-stress/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ edition = "2018"
55
publish = false
66

77
[lib]
8+
# Documenting the library means that we try to rebuild it after src/main.rs
9+
# changes, as of rust-lang/cargo#10172. Since our benchmarks don't actually care
10+
# about it being built, disable that.
11+
doc = false
812
path = "src/lib.rs"
913
proc-macro = true
1014

1115
[[bin]]
12-
name = "token-stream-stress"
16+
name = "token-stream-stress-bin"
1317
path = "src/main.rs"
1418

15-
[workspace]
19+
[workspace]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"cargo_opts": "--bin token-stream-stress",
2+
"cargo_opts": "--bin token-stream-stress-bin",
33
"touch_file": "src/main.rs"
44
}

0 commit comments

Comments
 (0)
Please sign in to comment.