skeleton for network shim

This commit is contained in:
Christien Rioux 2024-10-26 09:17:29 -07:00
parent 0495afb3c6
commit 8608269f75
10 changed files with 20 additions and 2 deletions

1
Cargo.lock generated
View File

@ -6236,6 +6236,7 @@ dependencies = [
"wasm-logger",
"wee_alloc",
"winapi",
"ws_stream_wasm",
]
[[package]]

View File

@ -32,7 +32,11 @@ rt-tokio = [
"async_executors/tokio_io",
"async_executors/tokio_timer",
]
rt-wasm-bindgen = ["async_executors/bindgen", "async_executors/timer"]
rt-wasm-bindgen = [
"async_executors/bindgen",
"async_executors/timer",
"ws_stream_wasm",
]
veilid_tools_android_tests = ["dep:paranoid-android"]
veilid_tools_ios_tests = ["dep:tracing", "dep:oslog", "dep:tracing-oslog"]
@ -91,7 +95,7 @@ js-sys = "0.3.70"
wasm-bindgen-futures = "0.4.42"
async_executors = { version = "0.7.0", default-features = false }
getrandom = { version = "0.2", features = ["js"] }
ws_stream_wasm = { version = "0.7.4", optional = true }
send_wrapper = { version = "0.6.0", features = ["futures"] }
# Dependencies for Linux or Android

View File

@ -48,3 +48,16 @@
//! * `veilid-core`'s network `native` and `wasm` modules
//! * This crate's `network_interfaces` module
//! * This crate's `dns_lookup` module
mod router_client;
mod router_server;
#[cfg(feature = "async-std")]
mod async_std;
mod std;
#[cfg(feature = "tokio")]
mod tokio;
#[cfg(feature = "tokio-stream")]
mod tokio_stream;
#[cfg(feature = "ws_stream_wasm")]
mod ws_stream_wasm;

View File

View File