From 732450b21021f29e4ae7e8fba8811861dbe8dca0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Mon, 6 Nov 2023 12:16:02 +0100 Subject: [PATCH] Enable features for HTTP/3 (QUIC) support --- reqwest-fix-metadata-auto.diff | 2 +- rust-reqwest.spec | 60 ++++++++++++++++++++++++++++++++++ rust2rpm.toml | 5 --- 3 files changed, 61 insertions(+), 6 deletions(-) diff --git a/reqwest-fix-metadata-auto.diff b/reqwest-fix-metadata-auto.diff index e4067fb..fabf04d 100644 --- a/reqwest-fix-metadata-auto.diff +++ b/reqwest-fix-metadata-auto.diff @@ -1,5 +1,5 @@ --- reqwest-0.11.22/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ reqwest-0.11.22/Cargo.toml 2023-10-28T00:08:11.596301+00:00 ++++ reqwest-0.11.22/Cargo.toml 2023-11-06T11:15:47.342691+00:00 @@ -221,7 +221,6 @@ stream = [ "tokio/fs", diff --git a/rust-reqwest.spec b/rust-reqwest.spec index 37c76e0..d1d0895 100644 --- a/rust-reqwest.spec +++ b/rust-reqwest.spec @@ -182,6 +182,18 @@ use the "deflate" feature of the "%{crate}" crate. %files -n %{name}+deflate-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+futures-channel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+futures-channel-devel %{_description} + +This package contains library source intended for building other packages which +use the "futures-channel" feature of the "%{crate}" crate. + +%files -n %{name}+futures-channel-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+gzip-devel Summary: %{summary} BuildArch: noarch @@ -194,6 +206,42 @@ use the "gzip" feature of the "%{crate}" crate. %files -n %{name}+gzip-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+h3-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+h3-devel %{_description} + +This package contains library source intended for building other packages which +use the "h3" feature of the "%{crate}" crate. + +%files -n %{name}+h3-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+h3-quinn-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+h3-quinn-devel %{_description} + +This package contains library source intended for building other packages which +use the "h3-quinn" feature of the "%{crate}" crate. + +%files -n %{name}+h3-quinn-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+http3-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+http3-devel %{_description} + +This package contains library source intended for building other packages which +use the "http3" feature of the "%{crate}" crate. + +%files -n %{name}+http3-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+hyper-rustls-devel Summary: %{summary} BuildArch: noarch @@ -290,6 +338,18 @@ use the "native-tls-crate" feature of the "%{crate}" crate. %files -n %{name}+native-tls-crate-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+quinn-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+quinn-devel %{_description} + +This package contains library source intended for building other packages which +use the "quinn" feature of the "%{crate}" crate. + +%files -n %{name}+quinn-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+rustls-devel Summary: %{summary} BuildArch: noarch diff --git a/rust2rpm.toml b/rust2rpm.toml index 1ae2e80..da6d422 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,11 +1,6 @@ [features] hide = [ - "futures-channel", - "h3", - "h3-quinn", - "http3", "native-tls-vendored", - "quinn", ] [tests]