Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixmcfelix/discortp
Lightweight, multipurpose rust library for handling RTP streams.
https://github.com/felixmcfelix/discortp
discord protocol-parser rtp rust zero-copy
Last synced: about 2 months ago
JSON representation
Lightweight, multipurpose rust library for handling RTP streams.
- Host: GitHub
- URL: https://github.com/felixmcfelix/discortp
- Owner: FelixMcFelix
- License: isc
- Created: 2020-04-01T15:16:09.000Z (over 4 years ago)
- Default Branch: stable
- Last Pushed: 2023-11-17T10:57:36.000Z (about 1 year ago)
- Last Synced: 2024-10-14T10:58:42.563Z (2 months ago)
- Topics: discord, protocol-parser, rtp, rust, zero-copy
- Language: Rust
- Size: 38.1 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![docs-badge][]][docs] [![crates.io version][]][crates.io link] [![crates.io downloads][]][crates.io link] [![license][]][license link] [![rust version badge]][rust version link]
# 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:
```toml
[dependencies]
discortp = "0.3"
```[Real-time Transport Protocol]: https://tools.ietf.org/html/rfc3550
[Discord]: discord.gg
[Serenity]: https://github.com/serenity-rs/serenity[docs-badge]: https://img.shields.io/badge/docs-online-4d76ae.svg?style=flat-square
[docs]: https://docs.rs/discortp[crates.io link]: https://crates.io/crates/discortp
[crates.io version]: https://img.shields.io/crates/v/discortp.svg?style=flat-square
[crates.io downloads]: https://img.shields.io/crates/d/discortp.svg?style=flat-square[license]: https://img.shields.io/crates/l/discortp?style=flat-square
[license link]: https://opensource.org/licenses/ISC[rust version badge]: https://img.shields.io/badge/rust-1.65.0+-93450a.svg?style=flat-square
[rust version link]: https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html