Skip to content

Commit 41b9743

Browse files
committed
Enable small_rng feature requirement for each benchmark
Not ideal but seems to work; see: rust-lang/cargo#6945
1 parent b7abfb6 commit 41b9743

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Cargo.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ keywords = ["random", "rng"]
1414
categories = ["algorithms", "no-std"]
1515
build = "build.rs"
1616
exclude = ["/utils/*", "/.travis.yml", "/appveyor.yml", ".gitignore"]
17+
autobenches = true
1718

1819
[badges]
1920
travis-ci = { repository = "rust-random/rand" }
@@ -83,6 +84,26 @@ rand_distr = { path = "rand_distr", version = "0.1" }
8384
[build-dependencies]
8485
autocfg = "0.1"
8586

87+
[[bench]]
88+
name = "distributions"
89+
path = "benches/distributions.rs"
90+
required-features = ["small_rng"]
91+
92+
[[bench]]
93+
name = "generators"
94+
path = "benches/generators.rs"
95+
required-features = ["small_rng"]
96+
97+
[[bench]]
98+
name = "misc"
99+
path = "benches/misc.rs"
100+
required-features = ["small_rng"]
101+
102+
[[bench]]
103+
name = "seq"
104+
path = "benches/seq.rs"
105+
required-features = ["small_rng"]
106+
86107
[package.metadata.docs.rs]
87108
all-features = true
88109

0 commit comments

Comments
 (0)