#![warn(clippy::all)]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
pub mod error;
mod client;
mod message;
mod server;
mod transport;
#[cfg(feature = "bevy-tokio-rt")]
mod runtime;
pub use client::{ClientEvent, ClientTransport};
pub use message::{Message, TryFromBytes, TryIntoBytes};
pub use server::{ClientId, ServerEvent, ServerTransport};
pub use transport::{RecvError, RemoteAddr, Rtt, SessionError};
#[cfg(feature = "bevy")]
pub use client::plugin::{
client_connected, ClientTransportPlugin, ClientTransportSet, FromServer, LocalClientConnected,
LocalClientConnecting, LocalClientDisconnected, ToServer,
};
#[cfg(feature = "bevy")]
pub use server::plugin::{
DisconnectClient, FromClient, RemoteClientConnected, RemoteClientConnecting,
RemoteClientDisconnected, ServerTransportPlugin, ServerTransportSet, ToClient,
};
#[cfg(feature = "bevy-tokio-rt")]
pub use runtime::AsyncRuntime;