#packets #framing #protocols #byte #networking #data-encoding

framous

A library sending and receiving packets to and from a Reader/Writer

4 releases

0.1.3 Sep 14, 2023
0.1.2 Jul 12, 2023
0.1.1 Jul 11, 2023
0.1.0 Jul 11, 2023

#1328 in Encoding

Download history 8/week @ 2024-02-18 10/week @ 2024-02-25 1/week @ 2024-03-03 7/week @ 2024-03-10 1/week @ 2024-03-17 1/week @ 2024-03-24 78/week @ 2024-03-31

87 downloads per month
Used in 2 crates (via slimproto)

MIT license

16KB
266 lines

Framous

This package is inspired by the codec module from tokio::util but, unlike tokio, is designed to work with non-async code.

The intended use case for this crate is when you need to send and receive frames of data via some add-hoc byte-orientated protocol, usually but not necessarily, over TCP.

  • It supports the sending of user-defined message structures by encoding them to a byte-orientated frame through a user-defined Encoder.

  • Conversely, it supports the receiving of byte-oriented frames and decoding them through a user-defined Decoder into messages as understood by the application.

This is a low-dependency, light-weight crate.

MIT licensed Crate GitHub last commit Build Status

Dependencies

~170KB