Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Syncing with upstream

We follow rustdesk/rustdesk-server by release tag, one tag at a time (see ADR 0002).

scripts/sync-upstream.sh 1.1.17   # creates sync/upstream-1.1.17, merges, builds, tests

The script fetches upstream tags into refs/upstream-tags/* (our own tags are never overwritten), merges without committing, and stops on conflicts. It never pushes.

Conflict policy

FileResolution
Cargo.tomlkeep our version and authors; take upstream’s dependency changes. Upstream’s target-specific reqwest replaces any plain one. Keep our [target.'cfg(target_env = "musl")'.dependencies] block (vendored OpenSSL, needed by the static musl builds because hbb_common pulls native-tls).
Cargo.locknever hand-merge: take ours, then cargo build and commit the result
debian/changelog, README*.mdkeep ours
.github/workflows/* deleted on our sidestay deleted (our CI is ci.yml)
libs/hbb_commona submodule on rustdesk/hbb_common; take upstream’s pin, or bump it deliberately (the key exchange needs at least edefa08)
src/main.rs, src/rendezvous_server.rsour code (API server, TCP key exchange) on top of upstream’s; keep the diff small

What is ours in upstream files

  • src/main.rs: API server start-up, API_PORT; check_software_update() is deliberately not called (it queries RustDesk’s version endpoint).
  • src/rendezvous_server.rs: TCP key exchange (versions 0 and 1) and its tests.

After a sync, run the real check against a recent client: hbbs must complete the key exchange and answer an encrypted request.