From 2294ed061156344c70ed00c25a889ef246e5f7e8 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Thu, 21 Mar 2024 14:04:54 +0100 Subject: [PATCH] Make criterion a regular dev-dependency (#519) This avoids compilation failing for the benchmark targets. --- html5ever/Cargo.toml | 4 +--- xml5ever/Cargo.toml | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/html5ever/Cargo.toml b/html5ever/Cargo.toml index 6e608a67..0a1c6077 100644 --- a/html5ever/Cargo.toml +++ b/html5ever/Cargo.toml @@ -17,10 +17,8 @@ mac = "0.1" markup5ever = { version = "0.12", path = "../markup5ever" } [dev-dependencies] -typed-arena = "2.0.2" - -[target.'cfg(bench)'.dev-dependencies] criterion = "0.3" +typed-arena = "2.0.2" [build-dependencies] quote = "1" diff --git a/xml5ever/Cargo.toml b/xml5ever/Cargo.toml index dcbbacaa..41a27fc3 100644 --- a/xml5ever/Cargo.toml +++ b/xml5ever/Cargo.toml @@ -21,10 +21,8 @@ mac = "0.1" markup5ever = {version = "0.12", path = "../markup5ever" } [dev-dependencies] -rustc-test = "0.3" - -[target.'cfg(bench)'.dev-dependencies] criterion = "0.3" +rustc-test = "0.3" [[bench]] name = "xml5ever"