Drop unused, benchmark-only criterion dev-dependency

epel9
Fabio Valentini 2 years ago
parent 0a365d8016
commit 320ef7699e
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,6 +1,38 @@
--- chrono-0.4.22/Cargo.toml 1970-01-01T00:00:01+00:00
+++ chrono-0.4.22/Cargo.toml 2022-08-18T23:08:52.520479+00:00
@@ -121,7 +121,6 @@
+++ chrono-0.4.22/Cargo.toml 2022-11-04T17:26:18.225342+00:00
@@ -40,23 +40,6 @@
[lib]
name = "chrono"
-
-[[bench]]
-name = "chrono"
-harness = false
-required-features = ["__internal_bench"]
-
-[[bench]]
-name = "serde"
-harness = false
-required-features = [
- "__internal_bench",
- "serde",
-]
-
-[dependencies.criterion]
-version = "0.3"
-optional = true
[dependencies.iana-time-zone]
version = "0.1.44"
@@ -111,7 +94,6 @@
[features]
__doctest = []
-__internal_bench = ["criterion"]
alloc = []
clock = [
"std",
@@ -121,7 +103,6 @@
"clock",
"std",
"oldtime",
@ -8,7 +40,7 @@
]
libc = []
oldtime = ["time"]
@@ -130,8 +129,6 @@
@@ -130,8 +111,6 @@
"pure-rust-locales",
"alloc",
]

@ -1,4 +1,4 @@
# Generated by rust2rpm 22
# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
@ -17,10 +17,9 @@ Source: %{crates_source}
Patch: chrono-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * remove wasm-specific features
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
Patch: chrono-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%global _description %{expand:

@ -1,6 +1,4 @@
[DEFAULT]
all-features = true
unwanted-features =
criterion
__doctest
__internal_bench

Loading…
Cancel
Save