From 4bb43b92f20dae455efafd3230cf95cf79dbcffe Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 25 Apr 2024 14:37:12 +0200 Subject: [PATCH] Update to version 1.35.0; Fixes RHBZ#2271712 --- .gitignore | 1 + rust-rust_decimal.spec | 5 +++-- rust2rpm.toml | 6 +++++ rust_decimal-fix-metadata.diff | 40 +++++++++++++++++++++++++--------- sources | 2 +- 5 files changed, 41 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index a8d0c36..9650b58 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ /rust_decimal-1.32.0.crate /rust_decimal-1.33.1.crate /rust_decimal-1.34.3.crate +/rust_decimal-1.35.0.crate diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec index d8e06c8..20757cc 100644 --- a/rust-rust_decimal.spec +++ b/rust-rust_decimal.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate rust_decimal Name: rust-rust_decimal -Version: 1.34.3 +Version: 1.35.0 Release: %autorelease Summary: Decimal number implementation written in pure Rust @@ -13,6 +13,7 @@ License: MIT URL: https://crates.io/crates/rust_decimal Source: %{crates_source} # Manually created patch for downstream crate metadata changes +# * drop unused postgres and tokio-postgres dev-dependencies # * drop unused, benchmark-only criterion dev-dependency # * drop unused features with missing dependencies Patch: rust_decimal-fix-metadata.diff diff --git a/rust2rpm.toml b/rust2rpm.toml index d295189..b0074c1 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,5 +1,10 @@ [package] summary = "Decimal number implementation written in pure Rust" +cargo-toml-patch-comments = [ + "drop unused postgres and tokio-postgres dev-dependencies", + "drop unused, benchmark-only criterion dev-dependency", + "drop unused features with missing dependencies", +] [features] hide = [ @@ -17,6 +22,7 @@ hide = [ "rocket-traits", "rust-fuzz", "tokio-pg", + "tokio-postgres", ] [tests] diff --git a/rust_decimal-fix-metadata.diff b/rust_decimal-fix-metadata.diff index e4e99af..d876481 100644 --- a/rust_decimal-fix-metadata.diff +++ b/rust_decimal-fix-metadata.diff @@ -1,5 +1,5 @@ ---- rust_decimal-1.34.3/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rust_decimal-1.34.3/Cargo.toml 2024-02-19T19:38:15.907992+00:00 +--- rust_decimal-1.35.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ rust_decimal-1.35.0/Cargo.toml 2024-04-25T12:34:09.798404+00:00 @@ -56,15 +56,6 @@ version = "0.7" default-features = false @@ -16,18 +16,38 @@ [dependencies.bytes] version = "1.0" optional = true -@@ -143,10 +134,6 @@ - - [dev-dependencies.bytes] +@@ -145,19 +136,11 @@ version = "1.0" --default-features = false -- + default-features = false + -[dev-dependencies.criterion] -version = "0.5" +-default-features = false +- + [dev-dependencies.csv] + version = "1" + + [dev-dependencies.futures] + version = "0.3" +-default-features = false +- +-[dev-dependencies.postgres] +-version = "0.19" default-features = false - [dev-dependencies.csv] -@@ -191,10 +178,6 @@ + [dev-dependencies.rand] +@@ -184,10 +167,6 @@ + "rt-multi-thread", + "test-util", + ] +-default-features = false +- +-[dev-dependencies.tokio-postgres] +-version = "0.7" + default-features = false + + [dev-dependencies.version-sync] +@@ -199,10 +178,6 @@ default-features = false [features] @@ -38,7 +58,7 @@ c-repr = [] db-diesel-mysql = ["db-diesel1-mysql"] db-diesel-postgres = ["db-diesel1-postgres"] -@@ -253,7 +236,6 @@ +@@ -260,7 +235,6 @@ serde-with-str = ["serde"] std = [ "arrayvec/std", diff --git a/sources b/sources index dff51a8..2e37197 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rust_decimal-1.34.3.crate) = db0704d4692078cd7a4699e6ab155b196a7c3adad152a1eae50cec8cdf00eaed0bb5f8f6abf8fd9ff5e0b6033b949b96be07ec733d52f514a82fd902689a05c5 +SHA512 (rust_decimal-1.35.0.crate) = 17ffd08f67305e428820d0e64ee06a381eb026f1ef1903da48f26c079505365c122d3159ebbd7566261ba3abb5360b8e80b51efc6ca5d182a8d68646aeaa9dcd