Make criterion a dev dependency

It's much less risky than making it an optional dependency, even if it does
mean that everyone working on chrono has to compile it.
This commit is contained in:
Brandon W Maister 2019-12-23 12:51:11 -05:00
parent a5e2796931
commit 4f73f9423b
1 changed files with 1 additions and 3 deletions

View File

@ -29,7 +29,6 @@ alloc = []
std = [] std = []
clock = ["time", "std"] clock = ["time", "std"]
wasmbind = ["wasm-bindgen", "js-sys"] wasmbind = ["wasm-bindgen", "js-sys"]
__internal_bench = ["criterion"]
[dependencies] [dependencies]
time = { version = "0.1.39", optional = true } time = { version = "0.1.39", optional = true }
@ -37,8 +36,6 @@ num-integer = { version = "0.1.36", default-features = false }
num-traits = { version = "0.2", default-features = false } num-traits = { version = "0.2", default-features = false }
rustc-serialize = { version = "0.3.20", optional = true } rustc-serialize = { version = "0.3.20", optional = true }
serde = { version = "1.0.99", default-features = false, optional = true } serde = { version = "1.0.99", default-features = false, optional = true }
# technically a dev-dependency, but they can't be optional
criterion = { version = "0.3", optional = true}
[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies] [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dependencies]
wasm-bindgen = { version = "0.2", optional = true } wasm-bindgen = { version = "0.2", optional = true }
@ -49,6 +46,7 @@ serde_json = { version = "1", default-features = false }
serde_derive = { version = "1", default-features = false } serde_derive = { version = "1", default-features = false }
bincode = { version = "0.8.0" } bincode = { version = "0.8.0" }
num-iter = { version = "0.1.35", default-features = false } num-iter = { version = "0.1.35", default-features = false }
criterion = { version = "0.3" }
doc-comment = "0.3" doc-comment = "0.3"
[target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies] [target.'cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies]