Commit Graph
18 Commits
Author SHA1 Message Date
rustdeskandClaude Opus 5 e6fe9c3332 move the modules only rustdesk uses out to the base crate
hbb_common is shared with the server, but `fs`, `platform`, `keyboard`,
`message.proto` and most of `config::keys` are reached only from the client.
Keeping them here means every change to them costs a submodule round-trip.

They move to the new `base` crate in the rustdesk tree. What stays is
what the server actually names: `rendezvous.proto`, the socket/stream layer, the
`Config` core, and the 32 option keys this crate reads itself. Those 32 are
re-exported from `base::config::keys`, so callers still see one set.

`IdPk` moves from message.proto to rendezvous.proto. It is register-pk handshake
business, the server is its only other user, and the field numbers are unchanged
so the wire format is identical.

`config::patch()` resolves a home directory through the shell lookup that lived
in `platform::linux`, so `find_cmd_path`, `CMD_*` and `run_cmds_trim_newline`
stay behind in a new `sh` module. `base::platform::linux` re-exports
them, leaving every existing `platform::linux::CMD_SH` path working.

backtrace, filetime, osascript, smithay-client-toolkit and winapi go with the
code that used them, so the server no longer builds a Wayland client toolkit and
a Windows API crate it never calls.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZ49AbZJYfm8NTp5yDPMab
2026-09-08 08:53:58 +08:00
rustdeskandClaude Fable 5.1 98d256d1b9 webrtc: add an answerer example for the web client's e2e
Reads a `webrtc://` offer from stdin, answers it, bridges ICE candidates
as JSON lines over stdin/stdout and echoes every message. rustdesk-web-js
drives it from Chrome (js/e2e/webrtc) to check that the browser transport
and WebRTCStream still agree on the envelope, the signed fingerprint, the
candidate JSON and the fragment framing.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JXJJGEGdgu26wgCppvUXdZ
2026-09-04 23:34:08 +08:00
lc 4e16783824 remove dummy webrtc stream,
add api to get webrtc stream
2025-11-20 14:58:10 +08:00
lichonandCopilot 652f68fd54 Update examples/webrtc_dummy.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-17 15:01:47 +08:00
lichonandCopilot 13ef3411d9 Update examples/webrtc.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-17 14:45:51 +08:00
lc 0da5d379fc support turn relay config, and force_relay option 2025-11-16 04:04:25 +08:00
lichonandCopilot b10a96b7bc Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-15 16:04:59 +08:00
lc 3a919aef54 minor change 2025-11-15 00:27:09 +08:00
lc 955e49dc4b use webrtc sdp fingerprint as session key 2025-11-14 20:32:49 +08:00
lichonandCopilot 6463ba0e52 Update examples/webrtc_dummy.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-14 16:05:38 +08:00
lc 5dcfea1ee4 support send_timeout 2025-11-14 16:03:02 +08:00
lc f8d1d4207d move out dummy webrtc mod 2025-11-14 01:09:08 +08:00
lc 67ad83a2b2 fix webrtc example when webrtc disabled 2025-11-13 23:25:53 +08:00
lc f5f78c84d5 remove unwraps 2025-11-13 23:07:01 +08:00
lc 4cea3a7769 better example support local dc stream
fix read/write issue
clear sessions after close
2025-11-13 20:59:32 +08:00
lc 8ae4651bc7 make webrtc-rs optional feature 2025-11-13 16:53:07 +08:00
lc 442160d704 add webrtc stream 2025-11-12 19:46:55 +08:00
21pages 49c6b24a7a init
Signed-off-by: 21pages <sunboeasy@gmail.com>
2025-01-20 16:06:27 +08:00