Feature lock DefaultGateway+Handle for non-wasm32
This commit is contained in:
parent
b93b3690da
commit
10eafe46cc
10
src/lib.rs
10
src/lib.rs
|
@ -17,11 +17,13 @@
|
||||||
#[cfg(all(feature = "rt", feature = "rt_multi_thread"))]
|
#[cfg(all(feature = "rt", feature = "rt_multi_thread"))]
|
||||||
compile_error!("feature \"rt\" and feature \"rt_multi_thread\" cannot be enabled at the same time");
|
compile_error!("feature \"rt\" and feature \"rt_multi_thread\" cannot be enabled at the same time");
|
||||||
|
|
||||||
pub type Gateway = WebsocketGateway;
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub type GatewayHandle = WebsocketGatewayHandle;
|
pub type Gateway = DefaultGateway;
|
||||||
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
|
pub type GatewayHandle = DefaultGatewayHandle;
|
||||||
|
|
||||||
use gateway::DefaultGateway as WebsocketGateway;
|
use gateway::DefaultGateway;
|
||||||
use gateway::DefaultGatewayHandle as WebsocketGatewayHandle;
|
use gateway::DefaultGatewayHandle;
|
||||||
use url::{ParseError, Url};
|
use url::{ParseError, Url};
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
|
|
Loading…
Reference in New Issue