From 94ec710894ecd548b4fe174ef781eca5c1a318c0 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 25 Sep 2026 16:30:59 +0800 Subject: [PATCH] Build the webrtc feature standalone against the rustdesk-org fork src/webrtc.rs calls fork-only APIs (set_ice_max_binding_requests, set_no_congestion_control), which only rustdesk's root [patch] supplied, so building this crate on its own with --features webrtc failed with E0425/E0599. Mirror the root patch here; it applies only when this crate is the root. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019aokqJuhjvB3kijXtAg5Ns --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e8a722802..9c4424ac2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,3 +90,10 @@ webrtc = "0.13.0" # keep in lockstep with [dependencies] webrtc (rustc 1.75 pin, [target.'cfg(target_os = "linux")'.dependencies] users = { version = "0.11" } x11 = "2.21" + +# Only takes effect when this crate is built on its own (tests, examples); a consumer's own +# [patch] governs its build. Keep the rev in lockstep with rustdesk's root Cargo.toml. +[patch.crates-io] +webrtc = { git = "https://github.com/rustdesk-org/webrtc", rev = "49c89bd8d30e6e62e4c1a96cee38fdc11f79ef63" } +webrtc-util = { git = "https://github.com/rustdesk-org/webrtc", rev = "49c89bd8d30e6e62e4c1a96cee38fdc11f79ef63" } +webrtc-sctp = { git = "https://github.com/rustdesk-org/webrtc", rev = "49c89bd8d30e6e62e4c1a96cee38fdc11f79ef63" }