public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-postcard] f44: Update to version 1.2.0; Fixes RHBZ#2580696
Date: Sat, 21 Nov 2026 20:29:52 GMT	[thread overview]
Message-ID: <179529299259.1.7115898478918322333.rpms-rust-postcard-20ddc89872fd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-postcard
Branch : f44
Commit : 20ddc89872fdf009dc714d080519fe3e69663b15
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-11-21T20:27:38+00:00
Stats  : +65/-11 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-postcard/c/20ddc89872fdf009dc714d080519fe3e69663b15?branch=f44

Log:
Update to version 1.2.0; Fixes RHBZ#2580696

---
diff --git a/postcard-fix-metadata.diff b/postcard-fix-metadata.diff
index 0f8fbc2..064aeb0 100644
--- a/postcard-fix-metadata.diff
+++ b/postcard-fix-metadata.diff
@@ -1,12 +1,13 @@
---- postcard-1.1.3/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ postcard-1.1.3/Cargo.toml	2026-02-23T17:20:26.974939+00:00
-@@ -45,16 +45,10 @@
+--- postcard-1.2.0/Cargo.toml	2006-07-24T01:21:28+00:00
++++ postcard-1.2.0/Cargo.toml	2026-11-21T20:23:08.480743+00:00
+@@ -46,17 +46,11 @@
  [features]
  alloc = [
      "serde/alloc",
 -    "embedded-io-04?/alloc",
 -    "embedded-io-06?/alloc",
  ]
+ bench_private = []
  core-num-saturating = []
  crc = ["dep:crc"]
  default = ["heapless-cas"]
@@ -14,10 +15,10 @@
 -embedded-io = ["dep:embedded-io-04"]
 -embedded-io-04 = ["dep:embedded-io-04"]
 -embedded-io-06 = ["dep:embedded-io-06"]
+ enum-map-v3_0 = ["dep:enum-map-v3_0"]
  experimental-derive = ["postcard-derive"]
  heapless = ["dep:heapless"]
- heapless-cas = [
-@@ -66,7 +60,6 @@
+@@ -71,7 +65,6 @@
  paste = []
  postcard-derive = ["dep:postcard-derive"]
  use-crc = ["crc"]
@@ -25,7 +26,7 @@
  use-std = [
      "serde/std",
      "alloc",
-@@ -100,20 +93,6 @@
+@@ -114,20 +107,6 @@
  version = "3.0.1"
  optional = true
  
@@ -43,6 +44,17 @@
 -optional = true
 -package = "embedded-io"
 -
- [dependencies.heapless]
- version = "0.7.0"
- features = ["serde"]
+ [dependencies.enum-map-v3_0]
+ version = "3.0.0"
+ optional = true
+@@ -168,10 +147,6 @@
+ version = "1.0.100"
+ default-features = false
+ 
+-[dev-dependencies.criterion]
+-version = "0.7"
+-features = ["html_reports"]
+-
+ [dev-dependencies.serde]
+ version = "1.0.100"
+ features = ["derive"]

diff --git a/rust-postcard.rpmlintrc b/rust-postcard.rpmlintrc
index 37b7451..e1a92b0 100644
--- a/rust-postcard.rpmlintrc
+++ b/rust-postcard.rpmlintrc
@@ -1,2 +1,8 @@
 # Not a real spelling error:
 addFilter(r" spelling-error \('serde',")
+# There really is no documentation to package as such; the README would be, but
+# it is included as a (documentation) string in the library, so compilation
+# fails if it is not present. It therefore must not be marked as documentation,
+# because packages should be equally useful when their documentation is not
+# installed.
+addFilter(r"-devel\.noarch: W: no-documentation")

diff --git a/rust-postcard.spec b/rust-postcard.spec
index e58110d..fdc3a0f 100644
--- a/rust-postcard.spec
+++ b/rust-postcard.spec
@@ -5,7 +5,7 @@
 %global crate postcard
 
 Name:           rust-postcard
-Version:        1.1.3
+Version:        1.2.0
 Release:        %autorelease
 Summary:        No_std + serde compatible message library for Rust
 
@@ -13,6 +13,7 @@ License:        MIT OR Apache-2.0
 URL:            https://crates.io/crates/postcard
 Source:         %{crates_source}
 # Manually created patch for downstream crate metadata changes
+# * Omit unused, benchmark-only dev-dependency on criterion
 # * Patch out features that would require embedded-io or defmt
 Patch:          postcard-fix-metadata.diff
 
@@ -85,6 +86,18 @@ use the "crc" feature of the "%{crate}" crate.
 %files       -n %{name}+crc-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+enum-map-v3_0-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+enum-map-v3_0-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "enum-map-v3_0" feature of the "%{crate}" crate.
+
+%files       -n %{name}+enum-map-v3_0-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+experimental-derive-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -121,6 +134,18 @@ use the "heapless-cas" feature of the "%{crate}" crate.
 %files       -n %{name}+heapless-cas-devel
 %ghost %{crate_instdir}/Cargo.toml
 
+%package     -n %{name}+heapless-v0_8-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+heapless-v0_8-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "heapless-v0_8" feature of the "%{crate}" crate.
+
+%files       -n %{name}+heapless-v0_8-devel
+%ghost %{crate_instdir}/Cargo.toml
+
 %package     -n %{name}+nalgebra-v0_33-devel
 Summary:        %{summary}
 BuildArch:      noarch

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 0d5a962..0173c72 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,6 @@
 [package]
 cargo-toml-patch-comments = [
+    "Omit unused, benchmark-only dev-dependency on criterion",
     "Patch out features that would require embedded-io or defmt",
 ]
 doc-files.exclude = [
@@ -9,3 +10,13 @@ doc-files.exclude = [
     # documentation is not installed.
     "README.md",
 ]
+
+[features]
+hide = [
+    # Only for benchmarks:
+    "bench_private",
+    # Needs heapless 0.9.4,
+    # https://bugzilla.redhat.com/show_bug.cgi?id=2575977, but see
+    # https://github.com/rust-embedded/heapless/issues/718.
+    "heapless-v0_9",
+]

diff --git a/sources b/sources
index ccd0647..6d63e9b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (postcard-1.1.3.crate) = 6711f032e4b1a8bf946f1df7b87ba3b6644a5dcdbed8f378b7ca765f0a162da7ff1122d2c78e28277f6022e341b62ee48c3318936355411cb15a1d7fe73f4392
+SHA512 (postcard-1.2.0.crate) = a64281c5af51e9a92e262c34fde4f4ba71f5b27dfd95f6599f337d4989ab4b7f40e729bf2ffffebfe8b1f9b73faeff1ab912ead2940d4f308ce4395226f9886e

                 reply	other threads:[~2026-11-21 20:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179529299259.1.7115898478918322333.rpms-rust-postcard-20ddc89872fd@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox