Skip to content

Commit 9d8903f

Browse files
Merge pull request #1122 from Mark-Simulacrum/fix-bench
Name bin target differently from lib
2 parents 1d8a268 + 26938e1 commit 9d8903f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

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

+6-2
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]
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)