carrier-pigeon

Crates.iocarrier-pigeon
lib.rscarrier-pigeon
version0.3.0
sourcesrc
created_at2022-03-08 22:27:50.175261
updated_at2022-05-12 23:53:37.661851
descriptionA rusty networking library for games.
homepage
repositoryhttps://github.com/MitchellMarinoDev/carrier-pigeon/
max_upload_size
id546618
size151,872
Mitchell Marino (MitchellMarinoDev)

documentation

README

carrier-pigeon

crates.io docs.rs

A rusty networking library for games.

Carrier pigeon builds on the standard library's TcpStream and UdpSocket types and handles all the serialization, sending, receiving, and deserialization. This way you can worry about what to send, and pigeon will worry about how to send it. This also allows you to send and receive different types of messages independently.

Add carrier-pigeon to your Cargo.toml:

carrier-pigeon = "0.3.0"

Also check out the Bevy plugin.

bevy-pigeon.

Documentation

The documentation can be found on Docs.rs

Quickstart

A quickstart guide that goes in more detail is found at /quickstart.md

Examples

There is a simple chat program example in the examples/ directory. This contains a client and server command line programs.

Features

  • Connection, response, disconnect messages built in and extremely flexible.
  • Configuration for buffer size, timeouts and more.
  • Send/Recv calls take an immutable reference allowing for parallelism.
  • Independent message sending.
  • TCP and UDP connections.
  • Client and Server types.
  • Built in serialization/deserialization.
  • Bevy integration (bevy-pigeon).

Planned Features

  • Server discovery.
  • Query support for server. (Optionally listen on another port and respond to query requests).
  • Optional buffering of TCP messages (Buffer all tcp messages sent, then write them all when a send_tcp method is called).
  • Compile messages into MsgTable using macros.

Contributing

To contribute, fork the repo and make a PR. If you find a bug, feel free to open an issue. If you have any questions, concerns or suggestions you can shoot me an email (found in Cargo.toml) or DM me on discord @TheHourGlass34#0459.

By contributing, you agree that your changes are subject to the license found in /LICENSE.

Commit count: 140

cargo fmt