client: Rename tls feature to tls-native

This commit is contained in:
Jonas Platte 2020-12-24 01:28:56 +01:00
parent 325b3eea34
commit 1129520290
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 4 additions and 4 deletions

View File

@ -37,6 +37,6 @@ ruma = { version = "0.0.1", path = "../ruma", features = ["client-api"] }
tokio = { version = "0.2.22", features = ["macros"] }
[features]
default = ["tls"]
tls = ["hyper-tls"]
default = ["tls-native"]
tls-native = ["hyper-tls"]
unstable-synapse-quirks = ["ruma-events/unstable-synapse-quirks"]

View File

@ -127,10 +127,10 @@ pub use self::{
session::{Identification, Session},
};
#[cfg(not(feature = "tls"))]
#[cfg(not(feature = "tls-native"))]
type Connector = HttpConnector;
#[cfg(feature = "tls")]
#[cfg(feature = "tls-native")]
type Connector = hyper_tls::HttpsConnector<HttpConnector>;
/// A client for the Matrix client-server API.