Skip to content

Fix Windows Compilation by Adding Missing winapi Dependency#3

Merged
sukeesh merged 1 commit intosukeesh:mainfrom
RAvgCoder:main
Mar 4, 2025
Merged

Fix Windows Compilation by Adding Missing winapi Dependency#3
sukeesh merged 1 commit intosukeesh:mainfrom
RAvgCoder:main

Conversation

@RAvgCoder
Copy link
Contributor

Description

This PR fixes a compilation issue on Windows by adding the winapi crate with the winuser feature.

Issue

  • The function fn set_app_icon_windows(icon_data: &IconData) -> AppIconStatus in app_icon.rs (within eframe native) depends on winapi::um::winuser.
  • However, winapi was missing as a dependency, causing the build to fail on Windows.

Solution

  • Added winapi with the winuser feature to Cargo.toml to ensure the necessary symbols are available at compile time.
  • Updated Cargo.lock accordingly.

…inapi` with feature `winuser` because, the function `fn set_app_icon_windows(icon_data: &IconData) -> AppIconStatus` in the app_icon.rs file in eframe native depends on `winapi::um::winuser` as an external crate which is needed at compile time
Copy link
Owner

@sukeesh sukeesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@sukeesh sukeesh mentioned this pull request Mar 3, 2025
@sukeesh sukeesh merged commit e75d5d4 into sukeesh:main Mar 4, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants