just_webrtc_signalling/
lib.rs

1#![doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/README.md"))]
2#![warn(missing_docs)]
3#![warn(missing_debug_implementations)]
4#![warn(dead_code)]
5#![cfg_attr(not(test), warn(unused_crate_dependencies))]
6
7#[cfg(all(target_arch = "wasm32", feature = "server"))]
8compile_error!("feature \"server\" is not compatible with target \"wasm32\"");
9
10extern crate alloc;
11
12use prost as _;
13
14#[cfg(any(feature = "client", feature = "server"))]
15pub(crate) mod pb {
16    tonic::include_proto!("main_pb");
17}
18
19#[cfg(feature = "client")]
20pub mod client;
21
22#[cfg(feature = "server")]
23pub mod server;
24
25/// Default native server address
26pub const DEFAULT_NATIVE_SERVER_ADDR: &str = "[::1]:10000";
27/// Default web server address
28pub const DEFAULT_WEB_SERVER_ADDR: &str = "[::1]:10001";