Skip to content

Commit

Permalink
Patch release of reqwest to be used
Browse files Browse the repository at this point in the history
This is required to include the fix merged upstream inside of seanmonstar/reqwest#1526

Thanks to this fix, krew-wasm can cannot to kubernetes clients that are
using elliptic curve keys to authenticate users (such as k3s and k3d).

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
  • Loading branch information
flavio committed Apr 20, 2022
1 parent 8d1b9f0 commit 7f761c2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
27 changes: 5 additions & 22 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions Cargo.toml
Expand Up @@ -3,7 +3,11 @@ name = "krew-wasm"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["rustls-tls"]
native-tls = ["wasi-outbound-http-wasmtime/native-tls"]
rustls-tls = ["wasi-outbound-http-wasmtime/rustls-tls"]


[dependencies]
anyhow = "1.0.56"
Expand All @@ -24,4 +28,9 @@ wasmtime = "0.34"
wasmtime-wasi = "0.34"
wasi-common = "0.34"
wasi-cap-std-sync = "0.34"
wasi-outbound-http-wasmtime = { git = "https://github.com/flavio/wasi-experimental-toolkit", branch = "wasi-outbount-http-add-request-config"}
#wasi-outbound-http-wasmtime = { git = "https://github.com/flavio/wasi-experimental-toolkit", branch = "wasi-outbount-http-add-request-config", default_features = false }
wasi-outbound-http-wasmtime = { path = "../../wasm/wasi-experimental-toolkit/crates/http-wasmtime", default_features = false }

[patch.crates-io]
# need a upstream to tag a new release with this patch https://github.com/seanmonstar/reqwest/pull/1526
reqwest = { git = "https://github.com/seanmonstar/reqwest.git", rev = "2e5debe24832d4a28a90dbe0eb092eea27386d41" }

0 comments on commit 7f761c2

Please sign in to comment.