Compare commits

..

3 Commits

@ -0,0 +1,26 @@
From 932b112a853367fe9f67824c7eb9d1ed24ec9569 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Thu, 8 Aug 2024 16:36:43 +0200
Subject: [PATCH] Fix typo in code block attribute to fix issues with Rust
1.80+
---
src/lib.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib.rs b/src/lib.rs
index 1ea51ef..0d5b9d8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -184,7 +184,7 @@
//! To ensure this library had zero dependencies, randomness was moved to the _random_ feature,
//! which requires the `rand` crate. You can enable this feature by including the
//! following in your `Cargo.toml`.
-//! ```{toml}
+//! ```toml
//! [dependencies]
//! convert_case = { version = "^0.3.0", features = ["random"] }
//! ```
--
2.46.0

@ -1,18 +1,6 @@
--- convert_case-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ convert_case-0.6.0/Cargo.toml 2023-12-15T19:51:16.271406+00:00
@@ -25,11 +25,6 @@
license = "MIT"
repository = "https://github.com/rutrum/convert-case"
-[profile.release]
-lto = true
-codegen-units = 1
-panic = "abort"
-
[dependencies.rand]
version = "^0.7"
optional = true
@@ -38,10 +33,10 @@
+++ convert_case-0.6.0/Cargo.toml 2024-08-08T14:32:47.327257+00:00
@@ -38,10 +38,10 @@
version = "1.9.0"
[dev-dependencies.strum]

@ -1,4 +1,4 @@
# Generated by rust2rpm 25
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
@ -15,9 +15,9 @@ Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * bump strum and strum_macros from 0.18 to 0.21.0:
# https://github.com/rutrum/convert-case/pull/3
# * disable LTO to work around LLVM crashes on ppc64le:
# https://bugzilla.redhat.com/show_bug.cgi?id=2142648
Patch: convert_case-fix-metadata.diff
# * fix typo in code block attribute to fix issues with Rust 1.80+
Patch: 0001-Fix-typo-in-code-block-attribute-to-fix-issues-with-.patch
BuildRequires: cargo-rpm-macros >= 24
@ -81,18 +81,17 @@ use the "random" feature of the "%{crate}" crate.
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%cargo_generate_buildrequires -f random
%build
%cargo_build
%cargo_build -f random
%install
%cargo_install
%cargo_install -f random
%if %{with check}
%check
# these tests depend on the `random` feature
%cargo_test -- -- --skip case::Case::PseudoRandom --skip case::Case::Random --skip pattern::Pattern::PseudoRandom
%cargo_test -f random
%endif
%changelog

Loading…
Cancel
Save