Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build on Windows #18

Open
dacobo opened this issue Sep 30, 2024 · 1 comment
Open

Fails to build on Windows #18

dacobo opened this issue Sep 30, 2024 · 1 comment

Comments

@dacobo
Copy link

dacobo commented Sep 30, 2024

My team is currently getting the following build error when trying to attach this plugin:

error[E0433]: failed to resolve: could not find `Graphics` in `Win32`
  --> ...\tauri-plugin-theme-2.1.1\src\platform\windows.rs:52:13
   |
52 |             Graphics::Dwm::{DwmSetWindowAttribute, DWMWA_USE_IMMERSIVE_DARK_MODE},
   |             ^^^^^^^^ could not find `Graphics` in `Win32`
   |
note: found an item that was configured out
  --> ...\windows-0.58.0\src\Windows\Win32\mod.rs:14:9
   |
14 | pub mod Graphics;
   |         ^^^^^^^^
   = note: the item is gated behind the `Win32_Graphics` feature

Environment info:
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 Build 22631
RustC / Cargo version: 1.78.0

@wyhaya
Copy link
Owner

wyhaya commented Sep 30, 2024

Try cargo update and see if that fixes it

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

No branches or pull requests

2 participants