diff --git a/.gitignore b/.gitignore index ab91f1b..a8d0c36 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ /rust_decimal-1.31.0.crate /rust_decimal-1.32.0.crate /rust_decimal-1.33.1.crate +/rust_decimal-1.34.3.crate diff --git a/rust-rust_decimal.spec b/rust-rust_decimal.spec index 01e3469..d8e06c8 100644 --- a/rust-rust_decimal.spec +++ b/rust-rust_decimal.spec @@ -5,7 +5,7 @@ %global crate rust_decimal Name: rust-rust_decimal -Version: 1.33.1 +Version: 1.34.3 Release: %autorelease Summary: Decimal number implementation written in pure Rust @@ -55,18 +55,6 @@ use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+bytes-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+bytes-devel %{_description} - -This package contains library source intended for building other packages which -use the "bytes" feature of the "%{crate}" crate. - -%files -n %{name}+bytes-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+c-repr-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.toml b/rust2rpm.toml index 996062e..d295189 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,6 +1,24 @@ [package] summary = "Decimal number implementation written in pure Rust" +[features] +hide = [ + "db-diesel-mysql", + "db-diesel-postgres", + "db-diesel1-mysql", + "db-diesel1-postgres", + "db-diesel2-mysql", + "db-diesel2-postgres", + "db-postgres", + "db-tokio-postgres", + "diesel1", + "diesel2", + "ndarray", + "rocket-traits", + "rust-fuzz", + "tokio-pg", +] + [tests] run = ["lib"] comments = [ diff --git a/rust_decimal-fix-metadata.diff b/rust_decimal-fix-metadata.diff index 8cc807b..e4e99af 100644 --- a/rust_decimal-fix-metadata.diff +++ b/rust_decimal-fix-metadata.diff @@ -1,84 +1,22 @@ ---- rust_decimal-1.33.1/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ rust_decimal-1.33.1/Cargo.toml 2023-11-17T22:56:09.752403+00:00 -@@ -43,22 +43,8 @@ - path = "benches/comparison.rs" - harness = false - --[dependencies.arbitrary] --version = "1.0" --optional = true --default-features = false -- - [dependencies.arrayvec] +--- 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 +@@ -56,15 +56,6 @@ version = "0.7" --default-features = false -- + default-features = false + -[dependencies.borsh] -version = "1.1.1" -features = [ - "derive", - "unstable__schema", -] --optional = true - default-features = false - - [dependencies.bytes] -@@ -66,31 +52,9 @@ - optional = true - default-features = false - --[dependencies.diesel1] --version = "1.0" --optional = true --default-features = false --package = "diesel" -- --[dependencies.diesel2] --version = "2.1" --optional = true --default-features = false --package = "diesel" -- --[dependencies.ndarray] --version = "0.15.6" -optional = true -default-features = false - - [dependencies.num-traits] - version = "0.2" - features = ["i128"] --default-features = false -- --[dependencies.postgres] --version = "0.19" --optional = true - default-features = false - - [dependencies.proptest] -@@ -113,11 +77,6 @@ - optional = true - default-features = false - --[dependencies.rocket] --version = "0.5.0-rc.3" --optional = true --default-features = false -- - [dependencies.serde] + [dependencies.bytes] version = "1.0" optional = true -@@ -128,21 +87,12 @@ - optional = true - default-features = false - --[dependencies.tokio-postgres] --version = "0.7" --optional = true --default-features = false -- - [dev-dependencies.bincode] - version = "1.0" - default-features = false +@@ -143,10 +134,6 @@ [dev-dependencies.bytes] version = "1.0" @@ -89,7 +27,7 @@ default-features = false [dev-dependencies.csv] -@@ -183,40 +133,7 @@ +@@ -191,10 +178,6 @@ default-features = false [features] @@ -98,53 +36,9 @@ - "std", -] c-repr = [] --db-diesel-mysql = ["db-diesel1-mysql"] --db-diesel-postgres = ["db-diesel1-postgres"] --db-diesel1-mysql = [ -- "diesel1/mysql", -- "std", --] --db-diesel1-postgres = [ -- "diesel1/postgres", -- "std", --] --db-diesel2-mysql = [ -- "diesel2/mysql", -- "std", --] --db-diesel2-postgres = [ -- "diesel2/postgres", -- "std", --] --db-postgres = [ -- "dep:bytes", -- "dep:postgres", -- "std", --] --db-tokio-postgres = [ -- "dep:bytes", -- "dep:postgres", -- "std", -- "dep:tokio-postgres", --] - default = [ - "serde", - "std", -@@ -224,13 +141,10 @@ - legacy-ops = [] - maths = [] - maths-nopanic = ["maths"] --ndarray = ["dep:ndarray"] - proptest = ["dep:proptest"] - rand = ["dep:rand"] - rkyv = ["dep:rkyv"] - rkyv-safe = ["rkyv/validation"] --rocket-traits = ["dep:rocket"] --rust-fuzz = ["dep:arbitrary"] - serde = ["dep:serde"] - serde-arbitrary-precision = ["serde-with-arbitrary-precision"] - serde-bincode = ["serde-str"] -@@ -245,11 +159,9 @@ + db-diesel-mysql = ["db-diesel1-mysql"] + db-diesel-postgres = ["db-diesel1-postgres"] +@@ -253,7 +236,6 @@ serde-with-str = ["serde"] std = [ "arrayvec/std", @@ -152,7 +46,3 @@ "bytes?/std", "rand?/std", "rkyv?/std", - "serde?/std", - "serde_json?/std", - ] --tokio-pg = ["db-tokio-postgres"] diff --git a/sources b/sources index 7d668a4..dff51a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rust_decimal-1.33.1.crate) = 838ff1298b2db7ae4a43c4771024b50237827a508ecefa18984b5b2dec140b4595b34d26d873f7badf1cbc7880e553e1a92e15d026304a2cb393c07eadbb325c +SHA512 (rust_decimal-1.34.3.crate) = db0704d4692078cd7a4699e6ab155b196a7c3adad152a1eae50cec8cdf00eaed0bb5f8f6abf8fd9ff5e0b6033b949b96be07ec733d52f514a82fd902689a05c5