#rtp #protocol #parser

discortp

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

8 releases (4 breaking)

0.5.0 Jun 10, 2022
0.4.0 May 17, 2021
0.3.0 Mar 22, 2021
0.2.2 Feb 13, 2021
0.1.1 May 4, 2020

#610 in Encoding

Download history 362/week @ 2022-12-02 767/week @ 2022-12-09 391/week @ 2022-12-16 608/week @ 2022-12-23 288/week @ 2022-12-30 598/week @ 2023-01-06 298/week @ 2023-01-13 531/week @ 2023-01-20 477/week @ 2023-01-27 573/week @ 2023-02-03 458/week @ 2023-02-10 589/week @ 2023-02-17 489/week @ 2023-02-24 587/week @ 2023-03-03 562/week @ 2023-03-10 589/week @ 2023-03-17

2,285 downloads per month
Used in songbird

ISC license

34KB
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

~1.8–2.6MB
~67K SLoC