Update dependencies
This commit is contained in:
parent
413f489f0c
commit
721dc6f413
12
Cargo.toml
12
Cargo.toml
@ -15,17 +15,17 @@ version = "0.2.0"
|
||||
[dependencies]
|
||||
futures-preview = "0.3.0-alpha.17"
|
||||
http = "0.1.18"
|
||||
hyper = { git = "https://github.com/hyperium/hyper" }
|
||||
hyper = "0.13.0-alpha.1"
|
||||
ruma-api = "0.10.0"
|
||||
ruma-client-api = { git = "https://github.com/ruma/ruma-client-api" }
|
||||
ruma-identifiers = "0.14.0"
|
||||
serde_json = "1.0.40"
|
||||
serde_urlencoded = "0.6.1"
|
||||
url = "2.0.0"
|
||||
url = "2.1.0"
|
||||
|
||||
[dependencies.hyper-tls]
|
||||
optional = true
|
||||
git = "https://github.com/hyperium/hyper-tls"
|
||||
version = "0.4.0-alpha.1"
|
||||
|
||||
[dependencies.native-tls]
|
||||
optional = true
|
||||
@ -36,11 +36,11 @@ git = "https://github.com/ruma/ruma-events"
|
||||
rev = "1b0be0d0e7fa1040fc51b748256b290e24677b19"
|
||||
|
||||
[dependencies.serde]
|
||||
version = "1.0.98"
|
||||
version = "1.0.99"
|
||||
features = ["derive"]
|
||||
|
||||
[dev-dependencies.tokio]
|
||||
git = "https://github.com/tokio-rs/tokio"
|
||||
[dev-dependencies]
|
||||
tokio = "0.2.0-alpha.4"
|
||||
|
||||
[features]
|
||||
default = ["tls"]
|
||||
|
@ -83,7 +83,6 @@
|
||||
//! # ;
|
||||
//! ```
|
||||
|
||||
#![feature(async_await, async_closure)]
|
||||
#![deny(
|
||||
missing_copy_implementations,
|
||||
missing_debug_implementations,
|
||||
@ -194,7 +193,7 @@ pub type HttpsClient = Client<HttpsConnector<HttpConnector>>;
|
||||
impl HttpsClient {
|
||||
/// Creates a new client for making HTTPS requests to the given homeserver.
|
||||
pub fn https(homeserver_url: Url, session: Option<Session>) -> Result<Self, NativeTlsError> {
|
||||
let connector = HttpsConnector::new(4)?;
|
||||
let connector = HttpsConnector::new()?;
|
||||
|
||||
Ok(Self(Arc::new(ClientData {
|
||||
homeserver_url,
|
||||
|
Loading…
x
Reference in New Issue
Block a user