08354f7651
* Move client-core to common dir * Factor out socks5-client in its own crate * Possible sdk-socks5 integration * Update changelog * Remove socks5 client lib * Rename crate to include nym- prefix * Trim the socks5 wrapped message so that it's printable * Fix intellij auto refactoring * Post merge fixes
24 lines
432 B
Rust
24 lines
432 B
Rust
use std::future::Future;
|
|
|
|
pub mod client;
|
|
pub mod config;
|
|
pub mod error;
|
|
pub mod init;
|
|
|
|
#[cfg(target_arch = "wasm32")]
|
|
pub(crate) fn spawn_future<F>(future: F)
|
|
where
|
|
F: Future<Output = ()> + 'static,
|
|
{
|
|
wasm_bindgen_futures::spawn_local(future);
|
|
}
|
|
|
|
#[cfg(not(target_arch = "wasm32"))]
|
|
pub(crate) fn spawn_future<F>(future: F)
|
|
where
|
|
F: Future + Send + 'static,
|
|
F::Output: Send + 'static,
|
|
{
|
|
tokio::spawn(future);
|
|
}
|