#protocols #framing #networking #packets #byte #codec #send-receive

framous

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

8 releases

0.1.7 Feb 1, 2025
0.1.6 Nov 4, 2024
0.1.5 Oct 1, 2024
0.1.4 Jun 5, 2024
0.1.2 Jul 12, 2023

#1692 in Encoding

Download history 6/week @ 2024-11-13 7/week @ 2024-11-20 11/week @ 2024-12-04 15/week @ 2024-12-11 1/week @ 2024-12-18 272/week @ 2025-01-29 36/week @ 2025-02-05 3/week @ 2025-02-12 6/week @ 2025-02-19 8/week @ 2025-02-26

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

MIT license

16KB
259 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

~220KB