{"id":16987709,"url":"https://github.com/russelltg/srt-rs","last_synced_at":"2025-05-16T14:08:06.067Z","repository":{"id":30718539,"uuid":"122903838","full_name":"russelltg/srt-rs","owner":"russelltg","description":"SRT implementation in Rust","archived":false,"fork":false,"pushed_at":"2024-05-31T17:37:10.000Z","size":1679,"stargazers_count":256,"open_issues_count":21,"forks_count":39,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-13T02:58:05.943Z","etag":null,"topics":["livestream","rust","srt","video"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/russelltg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-26T02:51:30.000Z","updated_at":"2025-05-02T15:40:33.000Z","dependencies_parsed_at":"2024-02-25T04:19:33.879Z","dependency_job_id":"5aba2ad9-7a1e-4e6a-8b07-8d05632fb505","html_url":"https://github.com/russelltg/srt-rs","commit_stats":{"total_commits":580,"total_committers":21,"mean_commits":27.61904761904762,"dds":"0.24310344827586206","last_synced_commit":"d4c08ac4714297e25042e3ab5fe5dbd1515b7bbd"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/russelltg%2Fsrt-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/russelltg%2Fsrt-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/russelltg%2Fsrt-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/russelltg%2Fsrt-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/russelltg","download_url":"https://codeload.github.com/russelltg/srt-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"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":["livestream","rust","srt","video"],"created_at":"2024-10-14T02:50:35.093Z","updated_at":"2025-05-16T14:08:02.334Z","avatar_url":"https://github.com/russelltg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# srt-rs\n\n[![codecov][codecov badge]][codecov] [![Rust](https://github.com/russelltg/srt-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/russelltg/srt-rs/actions/workflows/rust.yml)\n\n\n\u003e NOTE: THIS IS NOT PRODUCTION READY.\n\nPure rust implementation of SRT (Secure Reliable Transport), without unsafe code.\n\nReference implementation is available at https://github.com/haivision/srt\n\n# Features\n\n- Fast (heap allocations are rare, uses async IO)\n- Full safety guarantees of rust\n\n# What works\n\n- [x] Listen server connecting\n- [x] Client (connect) connecting\n- [x] Rendezvous connecting\n- [x] Receiving\n- [x] Sending\n- [x] Special SRT packets (partial)\n- [x] Actual SRT (TSBPD)\n- [x] Timestamp drift recovery (not throughly tested)\n- [x] Congestion control\n- [x] Encryption\n- [x] Bidirectional\n\n# Thread Efficiency\n\nThe reference implementation of SRT requires 3 threads per sender and 5 threads per receiver. \n\nWith srt-rs, you can assign as many connections to exactly as many threads as you want (usually as many as you have cores) using\n[tokio's][tokio] futures scheduling. This should allow for handing of many more connections.\n\n# Examples\n\n## Generate and send SRT packets\n\n```\ncargo run --example sender\n```\n\n## Receive SRT packets\n\n```\ncargo run --example receiver\n```\n\n# Structure\n\nThis repository is structured into 5 crates:\n* `srt-protocol`: State machines for the SRT protocol, with no dependencies on futures or tokio. Someday, I would like this to be a no-std crate. I expect this to have frequent breaking changes.\n* `srt-tokio`: Tokio elements written on top of the protocol, expected to be a relatively stable API.\n* `srt-transmit`: A srt-live-tranmsit replacement written ontop of `srt-tokio`\n* `srt-c`: Experimental C bindings to this crate, intended to be both API and ABI compatiable with the reference implementation\n* `srt-c-unittests`: The unit tests from the reference implementation that are ran against `srt-c`. Many of these do not pass yet.\n\n[codecov]: https://codecov.io/gh/russelltg/srt-rs\n[codecov badge]: https://codecov.io/gh/russelltg/srt-rs/branch/main/graph/badge.svg\n[tokio]: https://tokio.rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusselltg%2Fsrt-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusselltg%2Fsrt-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusselltg%2Fsrt-rs/lists"}