Merge pull request #204 from snapview/tls-features

Change default TLS features
pull/207/head
Daniel Abramov 4 years ago committed by GitHub
commit 141a03df0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Cargo.toml
  2. 3
      README.md

@ -16,7 +16,7 @@ edition = "2018"
all-features = true all-features = true
[features] [features]
default = ["native-tls"] default = []
native-tls = ["native-tls-crate"] native-tls = ["native-tls-crate"]
native-tls-vendored = ["native-tls", "native-tls-crate/vendored"] native-tls-vendored = ["native-tls", "native-tls-crate/vendored"]
rustls-tls = ["rustls", "webpki", "webpki-roots"] rustls-tls = ["rustls", "webpki", "webpki-roots"]

@ -60,7 +60,8 @@ Features
Tungstenite provides a complete implementation of the WebSocket specification. Tungstenite provides a complete implementation of the WebSocket specification.
TLS is supported on all platforms using native-tls or rustls available through the `native-tls` TLS is supported on all platforms using native-tls or rustls available through the `native-tls`
and `rustls-tls` feature flags. and `rustls-tls` feature flags. By default **no TLS feature is activated**, so make sure you
use `native-tls` or `rustls-tls` feature if you need support of the TLS.
There is no support for permessage-deflate at the moment. It's planned. There is no support for permessage-deflate at the moment. It's planned.

Loading…
Cancel
Save