Skip to content

Commit

Permalink
Replace openssl package into native-tls (#3511)
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Jul 10, 2023
1 parent 67a3c2f commit e192469
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
[#3480](https://github.com/rustwasm/wasm-bindgen/pull/3480)

* Replaced `curl` with `ureq`. By default we now use Rustls instead of OpenSSL.
The `openssl` is now out of the dependencies in `wasm-bindgen-cli` crates, so that
the `vendored-openssl` feature is now out of supported features.
[#3511](https://github.com/rustwasm/wasm-bindgen/pull/3511)

### Fixed
Expand Down
17 changes: 9 additions & 8 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ docopt = "1.0"
env_logger = "0.8"
anyhow = "1.0"
log = "0.4"
openssl = { version = '0.10.11', optional = true }
native-tls = { version = "0.2", default-features = false, optional = true }
rouille = { version = "3.0.0", default-features = false }
serde = { version = "1.0", features = ['derive'] }
serde_derive = "1.0"
serde_json = "1.0"
ureq = { version = "2.7", default-features = false, features = ["brotli", "gzip"] }
ureq = { version = "2.7", default-features = false, features = [
"brotli",
"gzip",
] }
walrus = { version = "0.19.0", features = ['parallel'] }
wasm-bindgen-cli-support = { path = "../cli-support", version = "=0.2.87" }
wasm-bindgen-shared = { path = "../shared", version = "=0.2.87" }
Expand All @@ -46,11 +49,9 @@ harness = false
[features]
default = ["rustls-tls"]

rustls-tls = ["ureq/tls"]

# Enables native-tls specific functionality not available by default.
native-tls = ["ureq/native-tls"]
native-tls-vendored = ["native-tls", "native-tls/vendored"]
native-tls = ["dep:native-tls", "ureq/native-tls"]
rustls-tls = ["ureq/tls"] # ureq uses rustls by default.

# Legacy support
vendored-openssl = ['native-tls-vendored']
openssl = ["native-tls"]
vendored-openssl = ["openssl", "native-tls/vendored"]

0 comments on commit e192469

Please sign in to comment.