]> git.proxmox.com Git - debcargo-conf.git/commitdiff
reqwest - new upstream release and drop patches.
authorPeter Michael Green <plugwash@debian.org>
Tue, 19 Apr 2022 16:37:13 +0000 (16:37 +0000)
committerPeter Michael Green <plugwash@debian.org>
Tue, 19 Apr 2022 18:52:49 +0000 (18:52 +0000)
src/reqwest/debian/changelog
src/reqwest/debian/copyright
src/reqwest/debian/copyright.debcargo.hint
src/reqwest/debian/patches/bump-base64.diff [deleted file]
src/reqwest/debian/patches/fix-deps.patch [deleted file]
src/reqwest/debian/patches/series [deleted file]
src/reqwest/debian/patches/update-base64.patch [deleted file]

index d8be4a6fde5d26ec2fade3ce6be3cef1658fafea..18b5bd1b5ca04b158ff22f770c8c06d9f9748f98 100644 (file)
@@ -1,3 +1,11 @@
+rust-reqwest (0.11.10-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
+
+  * Team upload.
+  * Package reqwest 0.11.10 from crates.io using debcargo 2.5.0
+  * Drop old patches, no longer relavent.
+
+ -- Peter Michael Green <plugwash@debian.org>  Tue, 19 Apr 2022 16:36:20 +0000
+
 rust-reqwest (0.9.19-5) unstable; urgency=medium
 
   * Team upload.
index a00e942787c88fad03801d986f5eeb969331991e..bbbf7ab64186cd521dd98717e7e1cdf3863870ad 100644 (file)
@@ -4,12 +4,12 @@ Upstream-Contact: Sean McArthur <sean@seanmonstar.com>
 Source: https://github.com/seanmonstar/reqwest
 
 Files: *
-Copyright: 2016—2019 Sean McArthur <sean@seanmonstar.com>
+Copyright: 2016—2022 Sean McArthur <sean@seanmonstar.com>
 License: MIT or Apache-2.0
 
 Files: debian/*
 Copyright:
- 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
  2019 Andrej Shadura <andrewsh@debian.org>
 License: MIT or Apache-2.0
 
index 401b935b92618f4180e27a0c0c0d8848a8c58e93..1d139e68749072ec55777fc83d714f1ba16fec08 100644 (file)
@@ -21,8 +21,8 @@ Comment:
 
 Files: debian/*
 Copyright:
- 2019-2021 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
- 2019-2021 Andrej Shadura <andrewsh@debian.org>
+ 2019-2022 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
+ 2019-2022 Andrej Shadura <andrewsh@debian.org>
 License: MIT or Apache-2.0
 
 License: Apache-2.0
diff --git a/src/reqwest/debian/patches/bump-base64.diff b/src/reqwest/debian/patches/bump-base64.diff
deleted file mode 100644 (file)
index 5a9dae4..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-Index: reqwest/Cargo.toml
-===================================================================
---- reqwest.orig/Cargo.toml
-+++ reqwest/Cargo.toml
-@@ -24,7 +24,7 @@ repository = "https://github.com/seanmon
- [package.metadata.docs.rs]
- all-features = true
- [dependencies.base64]
--version = "0.11"
-+version = "0.13"
- [dependencies.bytes]
- version = "0.4"
-@@ -108,7 +108,7 @@ features = ["rt-full", "tcp"]
- default-features = false
- [dependencies.tokio-executor]
--version = "0.1.4"
-+version = "0.1"
- [dependencies.tokio-io]
- version = "0.1"
diff --git a/src/reqwest/debian/patches/fix-deps.patch b/src/reqwest/debian/patches/fix-deps.patch
deleted file mode 100644 (file)
index 67eeb34..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-From 0990b7914b589758ffab805854c5ef996b4ba316 Mon Sep 17 00:00:00 2001
-From: Nikhil Benesch <nikhil.benesch@gmail.com>
-Date: Tue, 30 Jul 2019 14:52:39 -0400
-Subject: [PATCH] Upgrade to url v2.0
-
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -33,7 +33,7 @@
- version = "0.12.0"
- [dependencies.cookie_store]
--version = "0.7.0"
-+version = "0.8"
- [dependencies.encoding_rs]
- version = "0.8"
-@@ -72,12 +72,15 @@
- version = "0.3.7"
- [dependencies.mime_guess]
--version = "2.0.0-alpha.6"
-+version = "2.0.0"
- [dependencies.native-tls]
- version = "0.2"
- optional = true
-+[dependencies.percent-encoding]
-+version = "2"
-+
- [dependencies.rustls]
- version = "0.15"
- features = ["dangerous_configuration"]
-@@ -90,7 +93,7 @@
- version = "1.0"
- [dependencies.serde_urlencoded]
--version = "0.5"
-+version = "0.6"
- [dependencies.socks]
- version = "0.3.2"
-@@ -125,10 +128,10 @@
- optional = true
- [dependencies.url]
--version = "1.2"
-+version = "2"
- [dependencies.uuid]
--version = "0.7"
-+version = "0.8"
- features = ["v4"]
- [dependencies.webpki-roots]
---- a/src/async_impl/multipart.rs
-+++ b/src/async_impl/multipart.rs
-@@ -3,7 +3,7 @@
- use std::fmt;
- use mime_guess::Mime;
--use url::percent_encoding::{self, EncodeSet, PATH_SEGMENT_ENCODE_SET};
-+use percent_encoding::{self, AsciiSet};
- use uuid::Uuid;
- use http::HeaderMap;
-@@ -371,31 +371,39 @@
-     }
- }
--#[derive(Debug, Clone)]
--pub(crate) struct AttrCharEncodeSet;
-+/// https://url.spec.whatwg.org/#fragment-percent-encode-set
-+const FRAGMENT_ENCODE_SET: &AsciiSet = &percent_encoding::CONTROLS.add(b' ').add(b'"').add(b'<').add(b'>').add(b'`');
--impl EncodeSet for AttrCharEncodeSet {
--    fn contains(&self, ch: u8) -> bool {
--        match ch as char {
--             '!'  => false,
--             '#'  => false,
--             '$'  => false,
--             '&'  => false,
--             '+'  => false,
--             '-'  => false,
--             '.' => false,
--             '^'  => false,
--             '_'  => false,
--             '`'  => false,
--             '|'  => false,
--             '~' => false,
--              _ => {
--                  let is_alpha_numeric = ch >= 0x41 && ch <= 0x5a || ch >= 0x61 && ch <= 0x7a || ch >= 0x30 && ch <= 0x39;
--                  !is_alpha_numeric
--              }
--        }
--    }
--}
-+/// https://url.spec.whatwg.org/#path-percent-encode-set
-+const PATH_ENCODE_SET: &AsciiSet = &FRAGMENT_ENCODE_SET.add(b'#').add(b'?').add(b'{').add(b'}');
-+
-+const PATH_SEGMENT_ENCODE_SET: &AsciiSet = &PATH_ENCODE_SET.add(b'/').add(b'%');
-+
-+// This will be a bit shorter to express when AsciiSet.remove lands:
-+// https://github.com/servo/rust-url/pull/528.
-+/// https://tools.ietf.org/html/rfc8187#section-3.2.1
-+const ATTR_CHAR_ENCODE_SET: &AsciiSet = &percent_encoding::CONTROLS
-+    .add(b' ')
-+    .add(b'"')
-+    .add(b'%')
-+    .add(b'\'')
-+    .add(b'(')
-+    .add(b')')
-+    .add(b'*')
-+    .add(b',')
-+    .add(b'/')
-+    .add(b':')
-+    .add(b';')
-+    .add(b'<')
-+    .add(b'=')
-+    .add(b'>')
-+    .add(b'?')
-+    .add(b'@')
-+    .add(b'[')
-+    .add(b'\\')
-+    .add(b']')
-+    .add(b'{')
-+    .add(b'}');
- pub(crate) enum PercentEncoding {
-     PathSegment,
-@@ -443,7 +451,7 @@
-                     .to_string()
-             },
-             PercentEncoding::AttrChar => {
--                percent_encoding::utf8_percent_encode(value, AttrCharEncodeSet)
-+                percent_encoding::utf8_percent_encode(value, ATTR_CHAR_ENCODE_SET)
-                     .to_string()
-             },
-             PercentEncoding::NoOp => { value.to_string() },
---- a/src/lib.rs
-+++ b/src/lib.rs
-@@ -193,6 +193,7 @@
- extern crate mime_guess;
- #[cfg(feature = "default-tls")]
- extern crate native_tls;
-+extern crate percent_encoding;
- extern crate serde;
- extern crate serde_json;
- extern crate serde_urlencoded;
---- a/src/proxy.rs
-+++ b/src/proxy.rs
-@@ -5,10 +5,12 @@
- use http::{header::HeaderValue, Uri};
- use hyper::client::connect::Destination;
--use url::percent_encoding::percent_decode;
-+use percent_encoding::percent_decode;
- use {IntoUrl, Url};
- use std::collections::HashMap;
- use std::env;
-+#[cfg(feature = "socks")]
-+use std::io;
- #[cfg(target_os = "windows")]
- use std::error::Error;
- #[cfg(target_os = "windows")]
-@@ -330,11 +332,15 @@
-         // Resolve URL to a host and port
-         #[cfg(feature = "socks")]
-         let to_addr = || {
--            let host_and_port = try_!(url.with_default_port(|url| match url.scheme() {
--                "socks5" | "socks5h" => Ok(1080),
--                _ => Err(())
--            }));
--            let mut addr = try_!(host_and_port.to_socket_addrs());
-+            let host = try_!(url.host_str().ok_or_else(|| io::Error::new(io::ErrorKind::InvalidData, "URL has no host")));
-+            let port = try_!(match url.port_or_known_default() {
-+                Some(port) => Ok(port),
-+                None => match url.scheme() {
-+                    "socks5" | "socks5h" => Ok(1080),
-+                    _ => Err(io::Error::new(io::ErrorKind::InvalidData, "URL has no port")),
-+                }
-+            });
-+            let mut addr = try_!(format!("{}:{}", host, port).to_socket_addrs());
-             addr
-                 .next()
-                 .ok_or_else(::error::unknown_proxy_scheme)
diff --git a/src/reqwest/debian/patches/series b/src/reqwest/debian/patches/series
deleted file mode 100644 (file)
index 7c993ae..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-fix-deps.patch
-update-base64.patch
-bump-base64.diff
diff --git a/src/reqwest/debian/patches/update-base64.patch b/src/reqwest/debian/patches/update-base64.patch
deleted file mode 100644 (file)
index 43f6872..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/Cargo.toml
-+++ b/Cargo.toml
-@@ -24,7 +24,7 @@
- [package.metadata.docs.rs]
- all-features = true
- [dependencies.base64]
--version = "0.10"
-+version = "0.11"
- [dependencies.bytes]
- version = "0.4"