#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

#1721 in Encoding

Download history 1035/week @ 2024-06-16 930/week @ 2024-06-23 552/week @ 2024-06-30 795/week @ 2024-07-07 1097/week @ 2024-07-14 931/week @ 2024-07-21 1023/week @ 2024-07-28 930/week @ 2024-08-04 1406/week @ 2024-08-11 930/week @ 2024-08-18 1051/week @ 2024-08-25 1039/week @ 2024-09-01 814/week @ 2024-09-08 759/week @ 2024-09-15 1040/week @ 2024-09-22 677/week @ 2024-09-29

3,528 downloads per month
Used in 3 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
~75K SLoC