Skip to content

Commit f7a92ac

Browse files
committed
Exclude /benches from package
1 parent 4621fb9 commit f7a92ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ keywords = ["web-audio-api", "audio", "sound", "dsp"]
1010
license = "MIT"
1111
categories = ["multimedia::audio"]
1212
include = [
13-
"/benches",
1413
"/resources",
1514
"/src",
1615
"LICENSE",
@@ -63,6 +62,9 @@ paste = "1.0.14"
6362

6463
[[bench]]
6564
name = "my_benchmark"
65+
# The path is required for excluding /benches from the package.
66+
# See also: https://users.rust-lang.org/t/cargo-publish-with-excluded-benchmark-fails-validation/53444/2
67+
path = "benches/my_benchmark.rs"
6668
harness = false
6769

6870
[features]

0 commit comments

Comments
 (0)