#rtp #protocol #parser

discortp

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

7 unstable releases (3 breaking)

0.4.0 May 17, 2021
0.3.0 Mar 22, 2021
0.2.2 Feb 13, 2021
0.2.1 Jun 4, 2020
0.1.1 May 4, 2020

#10 in Encoding

Download history 234/week @ 2021-02-26 189/week @ 2021-03-05 195/week @ 2021-03-12 341/week @ 2021-03-19 217/week @ 2021-03-26 251/week @ 2021-04-02 501/week @ 2021-04-09 266/week @ 2021-04-16 206/week @ 2021-04-23 215/week @ 2021-04-30 281/week @ 2021-05-07 473/week @ 2021-05-14 282/week @ 2021-05-21 308/week @ 2021-05-28 390/week @ 2021-06-04 405/week @ 2021-06-11

1,085 downloads per month
Used in songbird

ISC license

33KB
630 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

~1.5–2.3MB
~61K SLoC