2021-01-04 15:23:44 +00:00
|
|
|
pub use async_trait::async_trait;
|
2020-05-12 12:28:01 +00:00
|
|
|
pub use instant;
|
2020-06-20 21:18:20 +00:00
|
|
|
pub use ruma::{
|
|
|
|
api::{
|
|
|
|
client as api,
|
|
|
|
error::{FromHttpRequestError, FromHttpResponseError, IntoHttpError, ServerError},
|
2021-04-16 10:45:21 +00:00
|
|
|
AuthScheme, EndpointError, IncomingResponse, OutgoingRequest,
|
2020-06-20 21:18:20 +00:00
|
|
|
},
|
2021-01-04 14:29:49 +00:00
|
|
|
assign, directory, encryption, events, identifiers, int, presence, push,
|
2020-12-08 15:01:42 +00:00
|
|
|
serde::{CanonicalJsonValue, Raw},
|
2021-01-04 14:29:49 +00:00
|
|
|
thirdparty, uint, Int, Outgoing, UInt,
|
2020-04-29 08:40:27 +00:00
|
|
|
};
|
2020-05-08 14:12:21 +00:00
|
|
|
|
|
|
|
pub use uuid;
|
|
|
|
|
2021-01-19 11:29:46 +00:00
|
|
|
pub mod deserialized_responses;
|
2021-03-22 19:23:15 +00:00
|
|
|
pub mod executor;
|
2020-05-08 14:12:21 +00:00
|
|
|
pub mod locks;
|
2021-01-04 15:23:44 +00:00
|
|
|
|
|
|
|
/// Super trait that is used for our store traits, this trait will differ if
|
|
|
|
/// it's used on WASM. WASM targets will not require `Send` and `Sync` to have
|
|
|
|
/// implemented, while other targets will.
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
|
|
pub trait AsyncTraitDeps: std::fmt::Debug + Send + Sync {}
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
|
|
impl<T: std::fmt::Debug + Send + Sync> AsyncTraitDeps for T {}
|
|
|
|
|
|
|
|
/// Super trait that is used for our store traits, this trait will differ if
|
|
|
|
/// it's used on WASM. WASM targets will not require `Send` and `Sync` to have
|
|
|
|
/// implemented, while other targets will.
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
|
|
pub trait AsyncTraitDeps: std::fmt::Debug + Send + Sync {}
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
|
|
impl<T: std::fmt::Debug + Send + Sync> AsyncTraitDeps for T {}
|