2020-06-21 07:17:11 +00:00
|
|
|
mod common;
|
|
|
|
|
2021-08-28 21:06:29 +00:00
|
|
|
// only used with WS
|
|
|
|
#[cfg(feature = "ws")]
|
2021-08-23 09:56:44 +00:00
|
|
|
macro_rules! if_wasm {
|
|
|
|
($($item:item)*) => {$(
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
|
|
$item
|
|
|
|
)*}
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! if_not_wasm {
|
|
|
|
($($item:item)*) => {$(
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
|
|
$item
|
|
|
|
)*}
|
|
|
|
}
|
|
|
|
|
|
|
|
if_not_wasm! {
|
|
|
|
#[cfg(feature = "ipc")]
|
|
|
|
mod ipc;
|
|
|
|
#[cfg(feature = "ipc")]
|
|
|
|
pub use ipc::Ipc;
|
|
|
|
}
|
2020-06-21 07:17:11 +00:00
|
|
|
|
2021-08-23 22:28:05 +00:00
|
|
|
mod http;
|
|
|
|
pub use http::Provider as Http;
|
|
|
|
|
2020-07-02 15:33:16 +00:00
|
|
|
#[cfg(feature = "ws")]
|
2020-06-21 07:17:11 +00:00
|
|
|
mod ws;
|
2020-07-02 15:33:16 +00:00
|
|
|
#[cfg(feature = "ws")]
|
2020-11-30 09:33:06 +00:00
|
|
|
pub use ws::Ws;
|
2020-11-27 12:57:44 +00:00
|
|
|
|
2021-08-29 11:03:53 +00:00
|
|
|
mod quorum;
|
|
|
|
pub(crate) use quorum::JsonRpcClientWrapper;
|
|
|
|
pub use quorum::{Quorum, QuorumProvider, WeightedProvider};
|
|
|
|
|
2020-11-27 12:57:44 +00:00
|
|
|
mod mock;
|
|
|
|
pub use mock::{MockError, MockProvider};
|