Skip to content

Commit

Permalink
Merge pull request #345 from mlemesle/fix/webpki-error-variant
Browse files Browse the repository at this point in the history
Fix not compiling features rustls-tls-native-roots and rustls-tls-webpki-roots
  • Loading branch information
daniel-abramov committed Apr 7, 2023
2 parents 92d65e1 + 1f6c62d commit a873bef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Expand Up @@ -55,6 +55,7 @@ version = "0.6.0"
[dependencies.webpki]
optional = true
version = "0.22"
features = ["std"]

[dependencies.webpki-roots]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion src/tls.rs
Expand Up @@ -107,7 +107,7 @@ mod encryption {
for cert in rustls_native_certs::load_native_certs()? {
root_store
.add(&rustls::Certificate(cert.0))
.map_err(TlsError::Webpki)?;
.map_err(TlsError::Rustls)?;
}
}
#[cfg(feature = "rustls-tls-webpki-roots")]
Expand Down

1 comment on commit a873bef

@ssrlive
Copy link
Contributor

@ssrlive ssrlive commented on a873bef Apr 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please release a new version on https://crates.io/crates/tungstenite, thanks a lot.

Please sign in to comment.