From 8c1f9d998dade7fc32029fbd402b2b33f2297136 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sat, 30 Nov 2024 17:30:28 +0100 Subject: [PATCH 1/2] git dep for no-std ureq-proto --- Cargo.lock | 3 +-- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a480d8db..da403be9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1236,8 +1236,7 @@ dependencies = [ [[package]] name = "ureq-proto" version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcec9cbfbf05a7feef00db0295c6183f468635c7adb12a31e941f3660b071bff" +source = "git+https://github.com/algesten/ureq-proto.git?rev=baf0cd4#baf0cd408bdcb08be481008bc2b688c0fa984ecc" dependencies = [ "http", "httparse", diff --git a/Cargo.toml b/Cargo.toml index 2f814bf5..74f03d92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ _test = [] [dependencies] base64 = "0.22.1" -ureq-proto = "0.2.0" +ureq-proto = { git = "https://github.com/algesten/ureq-proto.git", rev = "baf0cd4" } # ureq-proto = { path = "../ureq-proto" } log = "0.4.22" once_cell = "1.19.0" From 4a8c74f7b97d65053017dad4977d966260d42bee Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Sat, 30 Nov 2024 17:32:14 +0100 Subject: [PATCH 2/2] std feature flag --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 74f03d92..875446b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ rust-version = "1.71.1" features = ["rustls", "platform-verifier", "native-tls", "socks-proxy", "cookies", "gzip", "brotli", "charset", "json", "_test"] [features] +#default = ["rustls", "gzip", "json", "std"] default = ["rustls", "gzip", "json"] rustls = ["dep:rustls", "_tls", "dep:webpki-roots"] platform-verifier = ["dep:rustls-platform-verifier"] @@ -30,6 +31,7 @@ brotli = ["dep:brotli-decompressor"] charset = ["dep:encoding_rs"] json = ["dep:serde", "dep:serde_json", "cookie_store?/serde_json"] vendored = ["native-tls?/vendored"] +std = ["ureq-proto/std"] # Underscore prefixed features are internal _url = ["dep:url"] @@ -38,7 +40,7 @@ _test = [] [dependencies] base64 = "0.22.1" -ureq-proto = { git = "https://github.com/algesten/ureq-proto.git", rev = "baf0cd4" } +ureq-proto = { git = "https://github.com/algesten/ureq-proto.git", rev = "baf0cd4", default-features = false } # ureq-proto = { path = "../ureq-proto" } log = "0.4.22" once_cell = "1.19.0"