Update dependencies
This commit is contained in:
parent
4a221a3bfb
commit
19219dea6b
@ -16,16 +16,15 @@ version = "0.3.0-beta.2"
|
|||||||
futures-core = "0.3.1"
|
futures-core = "0.3.1"
|
||||||
futures-util = "0.3.1"
|
futures-util = "0.3.1"
|
||||||
http = "0.2.0"
|
http = "0.2.0"
|
||||||
hyper = "0.13.0"
|
hyper = "0.13.1"
|
||||||
hyper-tls = { version = "0.4.0", optional = true }
|
hyper-tls = { version = "0.4.0", optional = true }
|
||||||
ruma-api = "0.12.0"
|
ruma-api = "0.12.0"
|
||||||
ruma-client-api = "0.5.0"
|
ruma-client-api = "0.5.0"
|
||||||
ruma-events = "0.15.1"
|
ruma-events = "0.15.1"
|
||||||
ruma-identifiers = "0.14.0"
|
ruma-identifiers = "0.14.1"
|
||||||
serde = { version = "1.0.103", features = ["derive"] }
|
serde = { version = "1.0.103", features = ["derive"] }
|
||||||
serde_json = "1.0.44"
|
serde_json = "1.0.44"
|
||||||
serde_urlencoded = "0.6.1"
|
serde_urlencoded = "0.6.1"
|
||||||
tokio = "0.2.4"
|
|
||||||
url = "2.1.0"
|
url = "2.1.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
11
src/lib.rs
11
src/lib.rs
@ -94,14 +94,10 @@ use futures_core::{
|
|||||||
};
|
};
|
||||||
use futures_util::stream;
|
use futures_util::stream;
|
||||||
use http::Response as HttpResponse;
|
use http::Response as HttpResponse;
|
||||||
use hyper::{
|
use hyper::{client::HttpConnector, Client as HyperClient, Uri};
|
||||||
client::connect::Connection, client::HttpConnector, service::Service, Client as HyperClient,
|
|
||||||
Uri,
|
|
||||||
};
|
|
||||||
#[cfg(feature = "hyper-tls")]
|
#[cfg(feature = "hyper-tls")]
|
||||||
use hyper_tls::HttpsConnector;
|
use hyper_tls::HttpsConnector;
|
||||||
use ruma_api::{Endpoint, Outgoing};
|
use ruma_api::{Endpoint, Outgoing};
|
||||||
use tokio::io::{AsyncRead, AsyncWrite};
|
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
use crate::error::InnerError;
|
use crate::error::InnerError;
|
||||||
@ -176,10 +172,7 @@ impl HttpsClient {
|
|||||||
|
|
||||||
impl<C> Client<C>
|
impl<C> Client<C>
|
||||||
where
|
where
|
||||||
C: Service<Uri> + Clone + Send + Sync + 'static,
|
C: hyper::client::connect::Connect,
|
||||||
C::Response: Connection + AsyncRead + AsyncWrite + Send + Unpin + 'static,
|
|
||||||
C::Future: Send + Unpin + 'static,
|
|
||||||
C::Error: Into<Box<dyn std::error::Error + Send + Sync + 'static>>,
|
|
||||||
{
|
{
|
||||||
/// Creates a new client using the given `hyper::Client`.
|
/// Creates a new client using the given `hyper::Client`.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user