From 011bf38d25afcfaaa3ad6dbd3bf0de50db8958ac Mon Sep 17 00:00:00 2001 From: Taylor Thomas Date: Fri, 7 Jan 2022 17:39:33 -0700 Subject: [PATCH] fix(codegen): Uses rustls over native-tls We discovered that in certain situations (particularly with cross compiling) when including an interface using a path, the build would fail. This was due to codegen using native-tls. Still not sure exactly _why_ this happened only during build.rs stuff, but it did. Seeing as including a directory from a path could be common in private monorepos, we switched out our dependencies so they no longer used native-tls. Once merged, this will need to be released as a patch fix Signed-off-by: Taylor Thomas --- codegen/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index 2e77f7a..d4d61eb 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "weld-codegen" -version = "0.2.3" +version = "0.2.4" edition = "2021" authors = [ "wasmcloud Team" ] license = "Apache-2.0" @@ -29,13 +29,13 @@ atelier_smithy = "0.2" bytes = "1.0" cfg-if = "1.0" directories = "4.0" -downloader = "0.2" +downloader = { version = "0.2", features = ["rustls-tls"], default-features = false } handlebars = "4.0" Inflector = "0.11" lazy_static = "1.4" lexical-sort = "0.3" minicbor = { version = "0.11", features = ["derive", "std", "half" ] } -reqwest = { version = "0.11", features = [ "blocking" ] } +reqwest = { version = "0.11", default-features = false, features = [ "blocking", "rustls-tls" ] } rustc-hash = { version = "1.1", default_features = false } serde_json = "1.0" serde = { version = "1.0", features = ["derive"] }