public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-dialoguer] f43: Update to version 0.12.0; Fixes RHBZ#2390524
@ 2026-07-10 5:41 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-07-10 5:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-dialoguer
Branch : f43
Commit : c15819704f1f6c3edbba0154d8fe9e34c7ff249d
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-07-08T14:29:52+01:00
Stats : +121/-34 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-dialoguer/c/c15819704f1f6c3edbba0154d8fe9e34c7ff249d?branch=f43
Log:
Update to version 0.12.0; Fixes RHBZ#2390524
---
diff --git a/.gitignore b/.gitignore
index fe9d841..f0e561c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/dialoguer-0.10.3.crate
/dialoguer-0.10.4.crate
/dialoguer-0.11.0.crate
+/dialoguer-0.12.0.crate
diff --git a/357.patch b/357.patch
new file mode 100644
index 0000000..e23dda4
--- /dev/null
+++ b/357.patch
@@ -0,0 +1,102 @@
+From 2d029582cadc9c9bec03aebee442aca83888101c Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Wed, 8 Jul 2026 14:20:31 +0100
+Subject: [PATCH] Convert examples/fuzzy_select.rs from CRLF to LF line
+ terminators
+
+Match the other source files in the project.
+---
+ examples/fuzzy_select.rs | 86 ++++++++++++++++++++--------------------
+ 1 file changed, 43 insertions(+), 43 deletions(-)
+
+diff --git a/examples/fuzzy_select.rs b/examples/fuzzy_select.rs
+index a00fb6b1..144d8b66 100644
+--- a/examples/fuzzy_select.rs
++++ b/examples/fuzzy_select.rs
+@@ -1,43 +1,43 @@
+-use dialoguer::{theme::ColorfulTheme, FuzzySelect};
+-
+-fn main() {
+- let selections = &[
+- "Ice Cream",
+- "Vanilla Cupcake",
+- "Chocolate Muffin",
+- "A Pile of sweet, sweet mustard",
+- "Carrots",
+- "Peas",
+- "Pistacio",
+- "Mustard",
+- "Cream",
+- "Banana",
+- "Chocolate",
+- "Flakes",
+- "Corn",
+- "Cake",
+- "Tarte",
+- "Cheddar",
+- "Vanilla",
+- "Hazelnut",
+- "Flour",
+- "Sugar",
+- "Salt",
+- "Potato",
+- "French Fries",
+- "Pizza",
+- "Mousse au chocolat",
+- "Brown sugar",
+- "Blueberry",
+- "Burger",
+- ];
+-
+- let selection = FuzzySelect::with_theme(&ColorfulTheme::default())
+- .with_prompt("Pick your flavor")
+- .default(0)
+- .items(&selections[..])
+- .interact()
+- .unwrap();
+-
+- println!("Enjoy your {}!", selections[selection]);
+-}
++use dialoguer::{theme::ColorfulTheme, FuzzySelect};
++
++fn main() {
++ let selections = &[
++ "Ice Cream",
++ "Vanilla Cupcake",
++ "Chocolate Muffin",
++ "A Pile of sweet, sweet mustard",
++ "Carrots",
++ "Peas",
++ "Pistacio",
++ "Mustard",
++ "Cream",
++ "Banana",
++ "Chocolate",
++ "Flakes",
++ "Corn",
++ "Cake",
++ "Tarte",
++ "Cheddar",
++ "Vanilla",
++ "Hazelnut",
++ "Flour",
++ "Sugar",
++ "Salt",
++ "Potato",
++ "French Fries",
++ "Pizza",
++ "Mousse au chocolat",
++ "Brown sugar",
++ "Blueberry",
++ "Burger",
++ ];
++
++ let selection = FuzzySelect::with_theme(&ColorfulTheme::default())
++ .with_prompt("Pick your flavor")
++ .default(0)
++ .items(&selections[..])
++ .interact()
++ .unwrap();
++
++ println!("Enjoy your {}!", selections[selection]);
++}
diff --git a/dialoguer-fix-metadata.diff b/dialoguer-fix-metadata.diff
deleted file mode 100644
index 93dd4d6..0000000
--- a/dialoguer-fix-metadata.diff
+++ /dev/null
@@ -1,19 +0,0 @@
---- dialoguer-0.11.0/Cargo.toml 1970-01-01T00:00:01+00:00
-+++ dialoguer-0.11.0/Cargo.toml 2025-07-22T19:39:13.120762+00:00
-@@ -51,11 +51,15 @@
- required-features = ["history"]
-
- [[example]]
-+name = "history_custom"
-+required-features = ["history"]
-+
-+[[example]]
- name = "completion"
- required-features = ["completion"]
-
- [dependencies.console]
--version = "0.15.0"
-+version = ">=0.15.0, <0.17.0"
-
- [dependencies.fuzzy-matcher]
- version = "0.3.7"
diff --git a/rust-dialoguer.spec b/rust-dialoguer.spec
index fc340d6..5261075 100644
--- a/rust-dialoguer.spec
+++ b/rust-dialoguer.spec
@@ -1,21 +1,19 @@
-# Generated by rust2rpm 27
+# Generated by rust2rpm 28
%bcond check 1
%global debug_package %{nil}
%global crate dialoguer
Name: rust-dialoguer
-Version: 0.11.0
+Version: 0.12.0
Release: %autorelease
Summary: Command line prompting library
License: MIT
URL: https://crates.io/crates/dialoguer
Source: %{crates_source}
-# Manually created patch for downstream crate metadata changes
-# * specify required features for examples to fix compilation failures
-# * allow console 0.16
-Patch: dialoguer-fix-metadata.diff
+# * Convert examples/fuzzy_select.rs from CRLF to LF line terminators
+Patch10: https://github.com/console-rs/dialoguer/pull/357.patch
BuildRequires: cargo-rpm-macros >= 24
@@ -152,17 +150,17 @@ use the "zeroize" feature of the "%{crate}" crate.
%cargo_prep
%generate_buildrequires
-%cargo_generate_buildrequires
+%cargo_generate_buildrequires -a
%build
-%cargo_build
+%cargo_build -a
%install
-%cargo_install
+%cargo_install -a
%if %{with check}
%check
-%cargo_test
+%cargo_test -a
%endif
%changelog
diff --git a/rust2rpm.toml b/rust2rpm.toml
index eeaaca7..5b4057b 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -1,5 +1,10 @@
-[package]
-cargo-toml-patch-comments = [
- "specify required features for examples to fix compilation failures",
- "allow console 0.16",
+[[package.extra-patches]]
+number = 10
+file = "https://github.com/console-rs/dialoguer/pull/357.patch"
+comments = [
+ "Convert examples/fuzzy_select.rs from CRLF to LF line terminators",
]
+
+[features]
+# Examples appear to exercise all of the features.
+enable-all = true
diff --git a/sources b/sources
index 362df74..9ba29ba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (dialoguer-0.11.0.crate) = 7124e9943dd4fd4403200357b7d26683e7ea709ad9b0251af5d6db4dc8da2a476c6b89e7413df3a90e4279498bd54b67d8d0b161b0e5ae8ebd0bb5b5276cd612
+SHA512 (dialoguer-0.12.0.crate) = 618e04485a1ff2ae10c4ca5fc45d51e95df47bdc567d45e635ecefe0cc5061ad30ed08b429af99b9ede95d6b468dde075b1eee18b8985755dbf30ed8462f102f
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-10 5:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-10 5:41 [rpms/rust-dialoguer] f43: Update to version 0.12.0; Fixes RHBZ#2390524 Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox