#rtp #protocol #parser

discortp

Lightweight, flexible Real-time Transport Protocol (RTP) parsing library

9 releases (5 breaking)

0.6.0 Nov 17, 2023
0.5.0 Jun 10, 2022
0.4.0 May 17, 2021
0.3.0 Mar 22, 2021
0.1.1 May 4, 2020

#250 in Multimedia

Download history 804/week @ 2023-10-31 1182/week @ 2023-11-07 899/week @ 2023-11-14 1036/week @ 2023-11-21 970/week @ 2023-11-28 753/week @ 2023-12-05 827/week @ 2023-12-12 867/week @ 2023-12-19 901/week @ 2023-12-26 666/week @ 2024-01-02 770/week @ 2024-01-09 969/week @ 2024-01-16 740/week @ 2024-01-23 661/week @ 2024-01-30 726/week @ 2024-02-06 969/week @ 2024-02-13

3,256 downloads per month
Used in 2 crates

ISC license

35KB
648 lines

docs-badge crates.io version crates.io downloads license rust version badge

DiscoRTP

DiscoRTP is a lightweight, flexible Real-time Transport Protocol parsing library designed for use in non-standards compliant environments, such as Discord.

DiscoRTP differs from other Rust RTP libraries in that packet construction should never fail, unless there are too few bytes. Not all implementations treat fields as they should (i.e., length), and so DiscoRTP's philosophy is that the user knows best. Packet parsers are building blocks to be manually assembled, and validation mechanisms exist but are manual.

DiscoRTP was originally developed for use in Serenity.

Installation

Add the following to your cargo.toml:

[dependencies]
discortp = "0.3"

Dependencies

~2.7–4MB
~76K SLoC