Update to version 0.1.4; Fixes RHBZ#2243072

epel10
Fabio Valentini 1 year ago
parent 0474aac424
commit 140dd2e357
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

1
.gitignore vendored

@ -1,2 +1,3 @@
/regex-lite-0.1.0.crate /regex-lite-0.1.0.crate
/regex-lite-0.1.2.crate /regex-lite-0.1.2.crate
/regex-lite-0.1.4.crate

@ -1,34 +0,0 @@
From abe3ca24e1b5849372cf3638d13e3f5cf1763faa Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Tue, 10 Oct 2023 11:45:42 +0200
Subject: [PATCH] Fix doctest compilation failures on 32-bit architectures
---
src/string.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/string.rs b/src/string.rs
index af0a5b6..ad3e1ba 100644
--- a/src/string.rs
+++ b/src/string.rs
@@ -2063,7 +2063,6 @@ impl<'h, 'n> core::ops::Index<&'n str> for Captures<'h> {
/// This example shows how to create and use `CaptureLocations` in a search.
///
/// ```
-/// # if !cfg!(target_pointer_width = "64") { return; } // see #1041
/// use regex_lite::Regex;
///
/// let re = Regex::new(r"(?<first>\w+)\s+(?<last>\w+)").unwrap();
@@ -2076,7 +2075,9 @@ impl<'h, 'n> core::ops::Index<&'n str> for Captures<'h> {
///
/// // Asking for an invalid capture group always returns None.
/// assert_eq!(None, locs.get(3));
+/// # #[cfg(target_pointer_width = "64")]
/// assert_eq!(None, locs.get(34973498648));
+/// # #[cfg(target_pointer_width = "64")]
/// assert_eq!(None, locs.get(9944060567225171988));
/// ```
#[derive(Clone, Debug)]
--
2.41.0

@ -5,14 +5,13 @@
%global crate regex-lite %global crate regex-lite
Name: rust-regex-lite Name: rust-regex-lite
Version: 0.1.2 Version: 0.1.4
Release: %autorelease Release: %autorelease
Summary: Lightweight regex engine that optimizes for binary size and compilation time Summary: Lightweight regex engine that optimizes for binary size and compilation time
License: MIT OR Apache-2.0 License: MIT OR Apache-2.0
URL: https://crates.io/crates/regex-lite URL: https://crates.io/crates/regex-lite
Source: %{crates_source} Source: %{crates_source}
Patch: 0001-Fix-doctest-compilation-failures-on-32-bit-architect.patch
BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo-rpm-macros >= 24

@ -1 +1 @@
SHA512 (regex-lite-0.1.2.crate) = 6b7bf950234691c10975600bc82fc3ab423706db8a9ecbf750226bac94251ae71b8ad2020763b910a80ecaf5c6bcdb1ee6c019ee7b8ef638129488b9a3a8957e SHA512 (regex-lite-0.1.4.crate) = 358b389d69b44f4dd1f8b3453ce36cf181dd1f7076e69c75c35772198a907d0887119e59d41322dafae83229a2a50df7ffd7410470e41fe91bad078f256286f6

Loading…
Cancel
Save