bevy_rtc 0.3.1

A client-server library designed over WebRTC for Bevy
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(all(target_arch = "wasm32", feature = "server"))]
compile_error!("The 'server' feature is not supported on the wasm32 target architecture.");

pub(crate) mod events;
pub(crate) mod latency;
pub mod protocol;
pub(crate) mod socket;

// Re-exports
pub use bevy_matchbox;

pub mod prelude {
    #[cfg(feature = "client")]
    pub use crate::client::*;
    pub use crate::protocol::Protocol;
    #[cfg(feature = "server")]
    pub use crate::server::*;
}

#[cfg(feature = "server")]
#[cfg_attr(docsrs, doc(cfg(feature = "server")))]
pub mod server;

#[cfg(feature = "client")]
#[cfg_attr(docsrs, doc(cfg(feature = "client")))]
pub mod client;