Debian Codegraph @

debian/patches/replace-attohttpc.patch

raw
1 Index: numbat-exchange-rates/Cargo.toml
2 ===================================================================
3 --- numbat-exchange-rates.orig/Cargo.toml
4 +++ numbat-exchange-rates/Cargo.toml
5 @@ -20,9 +20,9 @@ homepage = "https://numbat.dev/"
6 license = "MIT OR Apache-2.0"
7 repository = "https://github.com/sharkdp/numbat"
8
9 -[dependencies.attohttpc]
10 -version = "0.27.0"
11 -features = ["tls-rustls-webpki-roots"]
12 +[dependencies.reqwest]
13 +version = "0.13"
14 +features = ["rustls", "blocking"]
15 optional = true
16 default-features = false
17
18 @@ -32,2 +32,2 @@
19 [features]
20 -fetch-exchangerates = ["dep:attohttpc"]
21 +fetch-exchangerates = ["dep:reqwest"]
22 Index: numbat-exchange-rates/src/lib.rs
23 ===================================================================
24 --- numbat-exchange-rates.orig/src/lib.rs
25 +++ numbat-exchange-rates/src/lib.rs
26 @@ -38,7 +38,7 @@ const ECB_XML_URL: &str = "https://www.e
27
28 #[cfg(feature = "fetch-exchangerates")]
29 fn fetch_ecb_xml() -> Option<String> {
30 - attohttpc::get(ECB_XML_URL).send().ok()?.text().ok()
31 + reqwest::blocking::get(ECB_XML_URL).ok()?.text().ok()
32 }
33
34 #[cfg(feature = "fetch-exchangerates")]