Skip to content

Commit

Permalink
Enable small_rng feature requirement for each benchmark
Browse files Browse the repository at this point in the history
Not ideal but seems to work; see: rust-lang/cargo#6945
  • Loading branch information
dhardy committed Jun 3, 2019
1 parent b7abfb6 commit 41b9743
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ keywords = ["random", "rng"]
categories = ["algorithms", "no-std"]
build = "build.rs"
exclude = ["/utils/*", "/.travis.yml", "/appveyor.yml", ".gitignore"]
autobenches = true

[badges]
travis-ci = { repository = "rust-random/rand" }
Expand Down Expand Up @@ -83,6 +84,26 @@ rand_distr = { path = "rand_distr", version = "0.1" }
[build-dependencies]
autocfg = "0.1"

[[bench]]
name = "distributions"
path = "benches/distributions.rs"
required-features = ["small_rng"]

[[bench]]
name = "generators"
path = "benches/generators.rs"
required-features = ["small_rng"]

[[bench]]
name = "misc"
path = "benches/misc.rs"
required-features = ["small_rng"]

[[bench]]
name = "seq"
path = "benches/seq.rs"
required-features = ["small_rng"]

[package.metadata.docs.rs]
all-features = true

Expand Down

0 comments on commit 41b9743

Please sign in to comment.