client: Rename tls feature to tls-native
This commit is contained in:
parent
325b3eea34
commit
1129520290
@ -37,6 +37,6 @@ ruma = { version = "0.0.1", path = "../ruma", features = ["client-api"] }
|
|||||||
tokio = { version = "0.2.22", features = ["macros"] }
|
tokio = { version = "0.2.22", features = ["macros"] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["tls"]
|
default = ["tls-native"]
|
||||||
tls = ["hyper-tls"]
|
tls-native = ["hyper-tls"]
|
||||||
unstable-synapse-quirks = ["ruma-events/unstable-synapse-quirks"]
|
unstable-synapse-quirks = ["ruma-events/unstable-synapse-quirks"]
|
||||||
|
@ -127,10 +127,10 @@ pub use self::{
|
|||||||
session::{Identification, Session},
|
session::{Identification, Session},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(not(feature = "tls"))]
|
#[cfg(not(feature = "tls-native"))]
|
||||||
type Connector = HttpConnector;
|
type Connector = HttpConnector;
|
||||||
|
|
||||||
#[cfg(feature = "tls")]
|
#[cfg(feature = "tls-native")]
|
||||||
type Connector = hyper_tls::HttpsConnector<HttpConnector>;
|
type Connector = hyper_tls::HttpsConnector<HttpConnector>;
|
||||||
|
|
||||||
/// A client for the Matrix client-server API.
|
/// A client for the Matrix client-server API.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user