Skip to content
Permalink
Browse files

use tempfile and criterion only for bench builds

  • Loading branch information
eugene-babichenko committed Jan 14, 2020
1 parent 728d756 commit e4115d230425e997ebd77fc60ef601258120f5fa
Showing with 11 additions and 9 deletions.
  1. +11 −9 chain-storage-sqlite-old/Cargo.toml
@@ -13,19 +13,21 @@ license = "MIT OR Apache-2.0"
[dependencies]
chain-core = { path = "../chain-core" }
chain-storage = { path = "../chain-storage" }
r2d2 = { version = "0.8" }
r2d2_sqlite = { version = "0.8" }
r2d2 = "0.8"
r2d2_sqlite = "0.8"
rusqlite = { version = "0.16.0", features = ["bundled"] }

[dependencies.rusqlite]
version = "0.16.0"
features = ["bundled"]
criterion = { version = "0.3.0", optional = true }
tempfile = { version = "3.1.0", optional = true }

[features]
with-bench = ["criterion", "tempfile"]

[dev-dependencies]
criterion = "0.3.0"
chain-storage = { path = "../chain-storage", features=["test-api"] }
rand_core = "0.5"
tempfile = "3.1.0"
chain-storage = { path = "../chain-storage", features = ["test-api"] }
rand_core = { version = "0.5", features = ["getrandom"] }

[[bench]]
harness = false
name = "storage"
required-features = ["with-bench"]

0 comments on commit e4115d2

Please sign in to comment.
You can’t perform that action at this time.