mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
16 lines
372 B
Rust
16 lines
372 B
Rust
use protocol::{
|
|
wire::{self, dgram},
|
|
Parcel,
|
|
};
|
|
|
|
#[cfg(feature = "client")] pub mod client;
|
|
pub mod proto;
|
|
#[cfg(feature = "server")] pub mod server;
|
|
|
|
fn create_pipeline<T: Parcel>() -> dgram::Pipeline<T, wire::middleware::pipeline::Default> {
|
|
dgram::Pipeline::new(
|
|
wire::middleware::pipeline::default(),
|
|
protocol::Settings::default(),
|
|
)
|
|
}
|