Skip to main content

Crate bevy_slinet

Crate bevy_slinet 

Source
Expand description

§bevy_slinet

TCP/UDP networking for Bevy with configurable packet types, serializers and custom transports.

docs.rs Crates.io Crates.io

Enable the features you need: client, server, protocol_tcp, protocol_udp, serializer_bitcode or serializer_bitcode_serde. See Cargo.toml. Bincode serializers remain for compatibility; prefer bitcode for new code.

Browser WASM support is preliminary and requires a custom transport; the built-in TCP/UDP transports are native-only. See the configuration guide.

§Bevy compatibility

Plugin VersionBevy Version
0.90.13
0.100.13
0.110.14
0.120.14
0.130.15
0.140.16
0.150.17
0.160.17
0.170.18
0.180.19
0.190.19
0.200.20
main0.20

Re-exports§

pub use protocols::protocol;
pub use serializers::packet_length_serializer;
pub use serializers::serializer;

Modules§

client
Client part of the plugin. You can enable it by adding client feature.
connection
Connects ECS packet queues to transport tasks.
protocols
Protocol traits and implemented protocols:
runtime
Tokio execution shared by the network endpoints in one Bevy app.
serializers
Packet serialization traits, stream length prefixes, and implemented serializers:
server
Server part of the plugin. You can enable it by adding server feature.

Structs§

NetworkSystems
Scheduling phases for one endpoint (role and config).

Enums§

SystemSets
Exposes networking phases so application systems can order their work around packet events.

Traits§

ClientConfig
A client plugin config.
ServerConfig
A server plugin config.