Skip to content

Application build: the icon's resource compiler built on Windows alone - #1667

Merged
vmillet-dev merged 1 commit into
mainfrom
windows-only-build-deps
Nov 27, 2026
Merged

vmillet-dev merged 1 commit into
mainfrom
windows-only-build-deps

Conversation

@vmillet-dev

@vmillet-dev vmillet-dev commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Context — #1666 adds winresource and toml as build dependencies of crates/app, for every system: Linux and macOS compiled them to skip the step at once. Asked by Valentin: « la dep winresource ne sert à rien pour linux/macos ».

Change — they move to [target.'cfg(windows)'.build-dependencies], and the build script's Windows part is #[cfg(windows)]. For a build dependency the condition is the host's; each system builds its own packages (release.yml, packages.yml), so the host is the target. Nothing changes in any binary: a build dependency never reaches one.

The other dependencies tied to a system already were: winreg (Windows), gtk and zbus (Linux), winit (Linux and macOS); the cross-platform crates (tray-icon, rfd, arboard, notify-rust, …) choose their own per system.

Checked

  • Windows: cargo clippy -p app --all-targets --all-features -- -D warnings, cargo fmt --all --check, cargo test -p app --test windows_resources (the icon and the version still embedded).
  • Linux and macOS: compiled by this pull request's CI, not here.

@vmillet-dev vmillet-dev added the refactor Restructuring without behaviour change label Nov 27, 2026
@vmillet-dev
vmillet-dev force-pushed the windows-only-build-deps branch from 4e798b9 to f828030 Compare November 27, 2026 07:11
@vmillet-dev
vmillet-dev merged commit 171db9d into main Nov 27, 2026
16 checks passed
@vmillet-dev
vmillet-dev deleted the windows-only-build-deps branch November 27, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant