Rust 1.95: rust-toolchain.toml, the workspace rust-version and the gateway image; the lints 1.95 adds

gpui-kit (every gpui-pre 0.3.x) calls std::hint::cold_path, stable since
1.95.0, so the client moves from 1.94 to 1.95 before the GPUI front end
can build (docs/design/gpui-spikes.md, "Rust 1.95 or newer"). rustc 1.95.0
(59807616e 2026-04-14), cargo 1.95.0, clippy and rustfmt of the same
release were used.

rust-toolchain.toml and the workspace's rust-version say 1.95;
crates/voelin-gateway/Dockerfile builds from rust:1.95-bookworm (cargo
refuses a 1.94 image once rust-version is 1.95). docs/building.md names
the Rust version for a local build; docs/ci.md says a channel change in
rust-toolchain.toml is all the runner needs (they named no version
before).

Clippy of 1.95 adds `collapsible_match` for an `if` that is a match arm's
only statement, `unnecessary_sort_by` and `manual_checked_ops`; they
flagged seven spots in four crates, none a behaviour change:
- voelin-media capture::forward: a let-else instead of a match whose arm
  holds one `if`;
- voelin-media ffmpeg::sys: `sort_by_key` with `Reverse` (two places);
- voelin-media studio:📷 `checked_div` for the frame interval;
- voelin-stream peer and session: the condition in a local before the
  `if` (a guard would carry a side effect: `remove`);
- voelinctl engine and session: the same.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-27 06:00:40 +03:00
1 parent 296664ffa9
commit 5ce5c0db82
13 files changed
+35 -21

No files matched your search

+5
View File
@@ -119,6 +119,11 @@ the proxy is on localhost. If the proxy inspects TLS, set
## Locally without Docker
- **Rust:** 1.95, the channel `rust-toolchain.toml` pins; `rustup` installs it
on the first `cargo` run in the checkout. The workspace's `rust-version` is
1.95 too, the oldest Rust the GPUI front end's libraries build with (they
call `std::hint::cold_path`, stable since 1.95.0), so a distribution's older
`rustc` does not build the workspace.
- **Linux:** the packages from the table above need
`sudo apt install libasound2-dev libfontconfig1-dev libxkbcommon-dev libvpx-dev libdav1d-dev libpipewire-0.3-dev libspa-0.2-dev libclang-dev cmake dpkg-dev patchelf`,
then `cargo build --release --locked -p voelin-ui -p voelin-gateway`
+3 -3
View File
@@ -89,9 +89,9 @@ the separate `release.yml` workflow below.
The workflow shares the repository's local system-dependencies action with
GitHub CI and bootstraps rustup if absent, then installs the toolchain and
components pinned in `rust-toolchain.toml`. Checkout uses a fully qualified
GitHub action URL rather than depending on the instance's action-source
configuration.
components pinned in `rust-toolchain.toml` (1.95: a channel change there is all
the runner needs). Checkout uses a fully qualified GitHub action URL rather
than depending on the instance's action-source configuration.
No GitHub cache/artifact service or reusable-workflow support is required.
The job does not need a Docker socket mounted inside its container; the