Implement Rust and Slint native client migration and fix desktop startup
ci / linux-arm64-cross (push) Successful in 4m7s
ci / linux-x64 (push) Successful in 4m42s

This commit is contained in:
omar committed 2026-11-10 15:45:24 +03:00
1 parent 0d11f8f99d
commit eb24965076
1303 files changed
+732670 -2375

No files matched your search

+16 -2
View File
@@ -5,6 +5,20 @@ Contract between the Electron **main** process and the native protocol core
to the core directly: main forwards only the commands listed here, after checking
`cmd` against this allowlist and argument shapes.
The Rust library also exposes `runtime::spawn(CoreConfig)` for native hosts. It owns a dedicated
current-thread runtime per session; `CoreHandle::request(Command)` applies the same semantic validation
as this JSON adapter. The returned control events and bounded playback PCM are separate channels;
native capture uses `CapturedFrame` with original timestamp, generation and privacy epoch. Explicit
`shutdown()` joins the worker and releases profile/slot locks; Drop requests cancellation without
blocking the UI. Control-consumer loss/overflow ends the session rather than silently dropping state.
The desktop reference still uses this stdio protocol until the full native cutover is verified.
Capture invalidation also guards the actual deferred UDP socket send through the pinned vendored
transport. Old/expired frames cannot become valid merely by remaining in a transport retry queue.
Control events carry the emitting connection generation; playback carries it in its native envelope.
Standalone identity improvement, application-audio and hotkey APIs have explicit cancellation/ownership
boundaries; callers must not perform their blocking joins or capture work on the UI thread.
## 1. Process model
```
@@ -23,8 +37,8 @@ teamspeach-core --data-dir <ABSOLUTE_DIR> [--connection-dir <ABSOLUTE_DIR>]
`TEAMSPEACH_LOG` (`error|warn|info|debug|trace`, tracing filter syntax), default `info`.
- **stdin EOF** or `shutdown` command → graceful disconnect (if connected), then exit 0.
- Exit codes: `0` clean, `2` bad CLI arguments, `3` data dir locked/unusable, `1` fatal internal error.
- Windows dev binary: `core/target/release/teamspeach-core.exe`
(debug: `core/target/debug/teamspeach-core.exe`). Packaged: `resources/core/teamspeach-core[.exe]`.
- Windows dev binary: `target/release/teamspeach-core.exe`
(debug: `target/debug/teamspeach-core.exe`, or explicit `CARGO_TARGET_DIR`). Packaged: `resources/core/teamspeach-core[.exe]`.
The first stdout line is always: