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-digest] f44: Update to version 0.11.3; Fixes RHBZ#2439655
Date: Tue, 09 Jun 2026 09:17:38 GMT [thread overview]
Message-ID: <178099665898.1.2854149105040926452.rpms-rust-digest-5183b7700eda@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-digest
Branch : f44
Commit : 5183b7700eda8e1c31efd048b9c4746fbc8e134f
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-07T19:14:32+01:00
Stats : +94/-46 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-digest/c/5183b7700eda8e1c31efd048b9c4746fbc8e134f?branch=f44
Log:
Update to version 0.11.3; Fixes RHBZ#2439655
---
diff --git a/.gitignore b/.gitignore
index cdb8255..d998963 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/digest-0.10.5.crate
/digest-0.10.6.crate
/digest-0.10.7.crate
+/digest-0.11.3.crate
diff --git a/digest-0.11.3-ignore-sha2-doctests.patch b/digest-0.11.3-ignore-sha2-doctests.patch
new file mode 100644
index 0000000..3b069e3
--- /dev/null
+++ b/digest-0.11.3-ignore-sha2-doctests.patch
@@ -0,0 +1,39 @@
+diff -Naur digest-0.11.3-original/README.md digest-0.11.3/README.md
+--- digest-0.11.3-original/README.md 2006-07-24 02:21:28.000000000 +0100
++++ digest-0.11.3/README.md 2026-06-07 19:13:43.140443904 +0100
+@@ -29,7 +29,7 @@
+
+ Now you can write the following code:
+
+-```rust
++```rust,ignore
+ use sha2::{Sha256, Digest};
+
+ let mut hasher = Sha256::new();
+@@ -48,7 +48,7 @@
+ Alternatively you can use chained approach, which is equivalent to the previous
+ example:
+
+-```rust
++```rust,ignore
+ use sha2::{Sha256, Digest};
+
+ let hash = Sha256::new()
+@@ -61,7 +61,7 @@
+
+ If the whole message is available you also can use convenience `digest` method:
+
+-```rust
++```rust,ignore
+ use sha2::{Sha256, Digest};
+
+ let hash = Sha256::digest(b"my message");
+@@ -73,7 +73,7 @@
+ You can write generic code over `Digest` (or other traits from `digest` crate)
+ trait which will work over different hash functions:
+
+-```rust
++```rust,ignore
+ use digest::Digest;
+
+ // Toy example, do not use it in practice!
diff --git a/digest-fix-metadata.diff b/digest-fix-metadata.diff
new file mode 100644
index 0000000..6f7abb7
--- /dev/null
+++ b/digest-fix-metadata.diff
@@ -0,0 +1,12 @@
+--- digest-0.11.3/Cargo.toml 2006-07-24T01:21:28+00:00
++++ digest-0.11.3/Cargo.toml 2026-06-07T18:10:40.602905+00:00
+@@ -89,9 +89,6 @@
+ optional = true
+ default-features = false
+
+-[dev-dependencies.sha2]
+-version = "0.11"
+-
+ [lints.clippy]
+ borrow_as_ptr = "warn"
+ cast_lossless = "warn"
diff --git a/rust-digest.spec b/rust-digest.spec
index 126750b..6247fc0 100644
--- a/rust-digest.spec
+++ b/rust-digest.spec
@@ -1,19 +1,25 @@
-# Generated by rust2rpm 24
-%bcond_without check
+# Generated by rust2rpm 28
+%bcond check 1
%global debug_package %{nil}
%global crate digest
Name: rust-digest
-Version: 0.10.7
+Version: 0.11.3
Release: %autorelease
Summary: Traits for cryptographic hash functions and message authentication codes
License: MIT OR Apache-2.0
URL: https://crates.io/crates/digest
Source: %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * Drop sha2 dev-dependency to avoid a dependency cycle
+Patch: digest-fix-metadata.diff
+# * Downstream-only: ignore (do not compile) doctests that would have required
+# the circular dev-dependency on the sha2 crate.
+Patch10: digest-0.11.3-ignore-sha2-doctests.patch
-BuildRequires: rust-packaging >= 21
+BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Traits for cryptographic hash functions and message authentication
@@ -73,52 +79,40 @@ use the "blobby" feature of the "%{crate}" crate.
%files -n %{name}+blobby-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+block-buffer-devel
+%package -n %{name}+block-api-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+block-buffer-devel %{_description}
+%description -n %{name}+block-api-devel %{_description}
This package contains library source intended for building other packages which
-use the "block-buffer" feature of the "%{crate}" crate.
+use the "block-api" feature of the "%{crate}" crate.
-%files -n %{name}+block-buffer-devel
+%files -n %{name}+block-api-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+const-oid-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+const-oid-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "const-oid" feature of the "%{crate}" crate.
-
-%files -n %{name}+const-oid-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+core-api-devel
+%package -n %{name}+dev-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+core-api-devel %{_description}
+%description -n %{name}+dev-devel %{_description}
This package contains library source intended for building other packages which
-use the "core-api" feature of the "%{crate}" crate.
+use the "dev" feature of the "%{crate}" crate.
-%files -n %{name}+core-api-devel
+%files -n %{name}+dev-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+dev-devel
+%package -n %{name}+getrandom-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+dev-devel %{_description}
+%description -n %{name}+getrandom-devel %{_description}
This package contains library source intended for building other packages which
-use the "dev" feature of the "%{crate}" crate.
+use the "getrandom" feature of the "%{crate}" crate.
-%files -n %{name}+dev-devel
+%files -n %{name}+getrandom-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+mac-devel
@@ -157,32 +151,20 @@ use the "rand_core" feature of the "%{crate}" crate.
%files -n %{name}+rand_core-devel
%ghost %{crate_instdir}/Cargo.toml
-%package -n %{name}+std-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+std-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "std" feature of the "%{crate}" crate.
-
-%files -n %{name}+std-devel
-%ghost %{crate_instdir}/Cargo.toml
-
-%package -n %{name}+subtle-devel
+%package -n %{name}+zeroize-devel
Summary: %{summary}
BuildArch: noarch
-%description -n %{name}+subtle-devel %{_description}
+%description -n %{name}+zeroize-devel %{_description}
This package contains library source intended for building other packages which
-use the "subtle" feature of the "%{crate}" crate.
+use the "zeroize" feature of the "%{crate}" crate.
-%files -n %{name}+subtle-devel
+%files -n %{name}+zeroize-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
+%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..0fb5dbe
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,14 @@
+[package]
+cargo-toml-patch-comments = [
+ "Drop sha2 dev-dependency to avoid a dependency cycle",
+]
+
+[[package.extra-patches]]
+number = 10
+file = "digest-0.11.3-ignore-sha2-doctests.patch"
+comments = [
+ """\
+Downstream-only: ignore (do not compile) doctests that would have required the \
+circular dev-dependency on the sha2 crate.\
+""",
+]
diff --git a/sources b/sources
index f72e03a..7232830 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (digest-0.10.7.crate) = 0dd8c012468ab9011b89413ea4d3647d95b1f683b020a0e6274c95ed5148638b56fef19cd9044c837ad53715b582b88eed277fe96e917c27c5d7abdbf7c3794c
+SHA512 (digest-0.11.3.crate) = 08bc962230512385963bfc17167d84fb329735b29b06998075ac8e1e0b66131d243dbb3ecd7fec2637c0a55a4b37c4cdb1553599ccd8ac34dfe164eee1c147f5
reply other threads:[~2026-06-09 9:17 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=178099665898.1.2854149105040926452.rpms-rust-digest-5183b7700eda@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