Compare commits

...

5 Commits

3
.gitignore vendored

@ -5,3 +5,6 @@
/smol_str-0.1.23.crate /smol_str-0.1.23.crate
/smol_str-0.1.24.crate /smol_str-0.1.24.crate
/smol_str-0.2.0.crate /smol_str-0.2.0.crate
/smol_str-0.2.1.crate
/smol_str-0.2.2.crate
/smol_str-0.3.2.crate

@ -1,17 +1,20 @@
# Generated by rust2rpm 24 # Generated by rust2rpm 27
%bcond_without check %bcond check 1
%global debug_package %{nil} %global debug_package %{nil}
%global crate smol_str %global crate smol_str
Name: rust-smol_str Name: rust-smol_str
Version: 0.2.0 Version: 0.3.2
Release: %autorelease Release: %autorelease
Summary: Small-string optimized string type with O(1) clone Summary: Small-string optimized string type with O(1) clone
License: MIT OR Apache-2.0 License: MIT OR Apache-2.0
URL: https://crates.io/crates/smol_str URL: https://crates.io/crates/smol_str
Source: %{crates_source} Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop unused optional support for borsh
Patch: smol_str-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo-rpm-macros >= 24
@ -32,6 +35,7 @@ use the "%{crate}" crate.
%files devel %files devel
%license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-APACHE
%license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/LICENSE-MIT
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/README.md %doc %{crate_instdir}/README.md
%{crate_instdir}/ %{crate_instdir}/
@ -84,7 +88,7 @@ use the "std" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml %ghost %{crate_instdir}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 %autosetup -n %{crate}-%{version} -p1
%cargo_prep %cargo_prep
%generate_buildrequires %generate_buildrequires
@ -99,7 +103,7 @@ use the "std" feature of the "%{crate}" crate.
%if %{with check} %if %{with check}
%check %check
# * skip a test that requires running rustfmt # * skip a test that requires running rustfmt
%cargo_test -- -- --skip check_code_formatting %cargo_test -- -- --exact --skip check_code_formatting
%endif %endif
%changelog %changelog

@ -0,0 +1,10 @@
[package]
cargo-toml-patch-comments = [
"drop unused optional support for borsh",
]
[tests]
skip = ["check_code_formatting"]
skip-exact = true
comments = ["skip a test that requires running rustfmt"]

@ -0,0 +1,20 @@
--- smol_str-0.3.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ smol_str-0.3.2/Cargo.toml 2024-12-02T17:27:50.402886+00:00
@@ -50,11 +50,6 @@
version = "1.3"
optional = true
-[dependencies.borsh]
-version = "1.4.0"
-optional = true
-default-features = false
-
[dependencies.serde]
version = "1.0"
optional = true
@@ -74,5 +69,4 @@
default = ["std"]
std = [
"serde?/std",
- "borsh?/std",
]

@ -1 +1 @@
SHA512 (smol_str-0.2.0.crate) = a0cc82d782c0fcbf3fec89dd7644bfcbe88a59c715f31e214712dce8baee0294f9200accb3e7a56deb284b746ead7fc716a8534cd8c445fbb3c3269a27f6bc42 SHA512 (smol_str-0.3.2.crate) = 37c4f37d13f20175fc2d0d437c00c4c47581770ceb9bbb0966398686f8723ce0aee7a3a6bad97f76644f12174a2ceffe2b9c8f13fac05c46a7584585ac88b474

Loading…
Cancel
Save