Skip to content

Commit

Permalink
Update reqwest to v0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnavion committed Apr 16, 2024
1 parent 85befcb commit 2e65e92
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion k8s-openapi-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ k8s-openapi-codegen-common = { path = "../k8s-openapi-codegen-common", features
"serde", # to parse OpenAPI specs from JSON files
] }
log = { version = "0.4", default-features = false }
reqwest = { version = "0.11", default-features = false, features = [
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls", # for TLS support
"json", # for reqwest::Response::json
] }
Expand Down
2 changes: 1 addition & 1 deletion k8s-openapi-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ k8s-openapi = { path = "..", features = [
k8s-openapi-derive = { path = "../k8s-openapi-derive" }
percent-encoding = { version = "2", default-features = false }
pin-project = { version = "1", default-features = false }
reqwest = { version = "0.11.2", default-features = false, features = [
reqwest = { version = "0.12", default-features = false, features = [
"rustls-tls-manual-roots", # for TLS support
"stream", # for reqwest::Response::bytes_stream
] }
Expand Down
3 changes: 0 additions & 3 deletions k8s-openapi-tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,6 @@ impl Client {
url.path_and_query = Some(path);
let url = http::Uri::from_parts(url).expect("couldn't parse URL from parts");

// TODO(rustup): Remove this when reqwest updates to http v1 so that `reqwest::Method` == `http::Method`
let method = method.as_str().parse().expect("http::Method -> reqwest::Method");

let request = inner.request(method, url.to_string());
let request =
if let Some(content_type) = content_type {
Expand Down

0 comments on commit 2e65e92

Please sign in to comment.