{"id":15373037,"url":"https://github.com/vi/rust-turnclient","last_synced_at":"2025-09-04T15:44:49.563Z","repository":{"id":57670795,"uuid":"169174994","full_name":"vi/rust-turnclient","owner":"vi","description":"Simple TURN client library for Rust, also a general-purpose TURN proxy.","archived":false,"fork":false,"pushed_at":"2023-03-27T00:01:46.000Z","size":47,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-25T01:48:29.290Z","etag":null,"topics":["async","nat","nat-traversal","networking","rfc5766","rust-library","turn-client","udp"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-02-05T01:18:25.000Z","updated_at":"2025-08-13T06:13:37.000Z","dependencies_parsed_at":"2024-10-16T13:01:07.978Z","dependency_job_id":"7586e8de-fe57-4f0e-868b-d1e96c44a964","html_url":"https://github.com/vi/rust-turnclient","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"ec7c1e8c2a711fa144ef36aeb0f1b2ba42eba22d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vi/rust-turnclient","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Frust-turnclient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Frust-turnclient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Frust-turnclient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Frust-turnclient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vi","download_url":"https://codeload.github.com/vi/rust-turnclient/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vi%2Frust-turnclient/sbom","scorecard":{"id":919759,"data":{"date":"2025-08-11","repo":{"name":"github.com/vi/rust-turnclient","commit":"ec7c1e8c2a711fa144ef36aeb0f1b2ba42eba22d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/vi/rust-turnclient/releases/15363746","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/vi/rust-turnclient/releases/15363746"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-25T00:40:37.261Z","repository_id":57670795,"created_at":"2025-08-25T00:40:37.262Z","updated_at":"2025-08-25T00:40:37.262Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273632910,"owners_count":25140772,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["async","nat","nat-traversal","networking","rfc5766","rust-library","turn-client","udp"],"created_at":"2024-10-01T13:54:08.859Z","updated_at":"2025-09-04T15:44:49.526Z","avatar_url":"https://github.com/vi.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple Rust TURN (RFC 5766) client for UDP - traverse even strict NAT; async only currently\n\n`\u003cbonus\u003e` A general-purpose TURN client/proxy, allowing to use TURN for custom things (you provide the scripts for signaling). There is a pre-built executable at Github releases.`\u003c/bonus\u003e`.\n\nCleaned-up echo example snippet:\n\n```rust\nlet udp : tokio::net::UdpSocket; \nlet c = turnclient::TurnClientBuilder::new(turn_server, username, password);\nlet (turnsink, turnstream) = c.build_and_send_request(udp).split();\nturnstream.map(move |event| {\n    Ok(match event {\n        MessageFromTurnServer::AllocationGranted{ relay_address, ..} =\u003e {\n            MessageToTurnServer::AddPermission(peer_addr, ChannelUsage::WithChannel)\n        },\n        MessageFromTurnServer::RecvFrom(sa,data) =\u003e {\n            MessageToTurnServer::SendTo(sa, data)\n        },\n        _ =\u003e MessageToTurnServer::Noop,\n    })\n}).forward(turnsink).await;\n```\n\nSee crate-level docs for further instructions.\n\nNot implemented / TODO / cons:\n\n* Removing permissions. They keep on getting refreshed until you close the entire allocation.\n* Quadratical complexity, linear number of UDP datagrams in case of N actibe permissions.\n* TCP or TLS transport.\n* Using short-term credentials instead of long-term.\n* \"Don't fragment\" specifier on sent datagrams\n* Even/odd port allocation\n* Error handling is ad-hoc `Box\u003cdyn std::error::Error\u003e`, with just a text strings.\n* Message-integrity is not checked for server replies.\n* Allocation-heavy, uses `Vec\u003cu8\u003e` for byte buffers.\n\nExamples:\n\n* `echo.rs` - Connect to specified TURN server, authorize specified peer and act as an echo server for it (snippet depicted above)\n* `proxy.rs` - Exchange packets between a local UDP peer and TURN-mediated peer. Executes a script when allocation becomes available.\n\n---\n\nThere is old `0.1.0` version of the crate for old Rust and Tokio `0.1`. This may perform better or worse than current version, I haven't really checked yet.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Frust-turnclient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvi%2Frust-turnclient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvi%2Frust-turnclient/lists"}