{"id":18993850,"url":"https://github.com/televiska/sdp-rs","last_synced_at":"2025-04-22T12:46:19.475Z","repository":{"id":57679424,"uuid":"492274417","full_name":"Televiska/sdp-rs","owner":"Televiska","description":"SDP Rust library (generator \u0026 parser), supports RFC8866 and RFC4566.","archived":false,"fork":false,"pushed_at":"2022-06-19T12:06:51.000Z","size":93,"stargazers_count":8,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-15T10:57:59.509Z","etag":null,"topics":["ice","sdp","sip","voip","webrtc"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Televiska.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-14T16:52:37.000Z","updated_at":"2024-04-15T20:20:33.000Z","dependencies_parsed_at":"2022-09-14T03:00:20.922Z","dependency_job_id":null,"html_url":"https://github.com/Televiska/sdp-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Televiska%2Fsdp-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Televiska%2Fsdp-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Televiska%2Fsdp-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Televiska%2Fsdp-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Televiska","download_url":"https://codeload.github.com/Televiska/sdp-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250243232,"owners_count":21398307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ice","sdp","sip","voip","webrtc"],"created_at":"2024-11-08T17:23:15.335Z","updated_at":"2025-04-22T12:46:19.454Z","avatar_url":"https://github.com/Televiska.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sdp-rs\n\n[![Crates.io Version](https://img.shields.io/crates/v/sdp-rs.svg)](https://crates.io/crates/sdp-rs)\n[![Released API docs](https://docs.rs/sdp-rs/badge.svg)](https://docs.rs/sdp-rs)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Minimum rustc version](https://img.shields.io/badge/rustc-1.44.0+-lightgray.svg)](#rust-version-requirements)\n\nA common general purpose library for SDP. It can parse and generate all SDP\nstructures. Supports both [RFC8866](https://www.rfc-editor.org/rfc/rfc8866.html) and\n[RFC4566](https://www.rfc-editor.org/rfc/rfc4566.html).\n\nLike [rsip](https://github.com/vasilakisfil/rsip), this crate is a general purpose library for\ncommon types found when working with the SDP protocol.\nYou will find high level types like the `SessionDescription`, `MediaDescription` and `Time` but you\nwill also find line-level types like `Connection` or even types found inside a line, like `Bwtype`\netc.\n\n`sdp-rs` is capable of parsing messages from \u0026str or String using [nom](https://github.com/Geal/nom)\nparser and can also generate SDP messages using the main `SessionDescription` struct. Each type\n(high level type, line type or sub-line type) can be parsed or be displayed as it would,\nso you can work with part of an SDP message, if that's useful for you.\n\nIf you need parsing raw bytes (`\u0026[u8]`) ping us. It is possible but we avoided doing that in the\nfirst place because a) it requires tons of traits/generics which will increase complexity and\ncompile times b) SDP specification highly recommends that the input is UTF-8 c) performance of\nconverting the bytes to UTF-8 should be negligible.\n\n## Features\n* This thing is _fast_, uses nom for basic message parsing.\n* Strong (new)types in most cases. Whenever for a type there is a strict specification, we opt for\n  a strict (newtype) definition.\n* Very simple code structure make it super easy to extend and add new SDP lines and attributes\n  As long as you can do [nom](https://github.com/Geal/nom) stuff, it's straightforward.\n  If you find dealing with nom difficult, you can always open an issue for the desired (missing)\n  type. The goal is to add as many typed SDP attributes as possible.\n\n## Architecture\nEach type in `sdp-rs` has a related tokenizer.\nThis is not enforced by the type system yet, however very soon this will be the case.\nIn brief, for every `sdp-rs` type we have: \n* Tokenizing: in the lowest level we have the `Tokenizer` which is capable of tokenizing the input.\nAll common tokenizers accept the `\u0026str` input. You shouldn't have to work directly with the\ntokenizers, these are being used indirectly in the parsing level.\n* Parsing: once the input has been tokenized into tokens, then there are `TryFrom` impls from the\nrelevant type tokenizer to the actual type. This is the parsing step where tokens (in the form of\n`\u0026str`) are transformed to integers, strings or `sdp-rs` types.\n* each `sdp-rs` type implements the `Display` trait and hence has a representation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteleviska%2Fsdp-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteleviska%2Fsdp-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteleviska%2Fsdp-rs/lists"}