puffin icon indicating copy to clipboard operation
puffin copied to clipboard

puffin_viewer (v0.19) `cargo install` fails building on windows

Open Wumpf opened this issue 1 year ago • 5 comments

Describe the bug

cargo install puffin_viewer currently fails building on windows:

error[E0432]: unresolved import `winapi::um::winuser`
   --> C:\Users\Andreas\.cargo\registry\src\index.crates.io-6f17d22bba15001f\eframe-0.25.0\src\native\app_icon.rs:83:9
    |
83  |     use winapi::um::winuser;
    |         ^^^^^^^^^^^^^^^^^^^ no `winuser` in `um`
    |
note: found an item that was configured out
   --> C:\Users\Andreas\.cargo\registry\src\index.crates.io-6f17d22bba15001f\winapi-0.3.9\src\um\mod.rs:290:37
    |
290 | #[cfg(feature = "winuser")] pub mod winuser;
    |                                     ^^^^^^^
    = note: the item is gated behind the `winuser` feature

Device:

  • OS: Windows 11

Active toolchain:

stable-x86_64-pc-windows-msvc (default)
rustc 1.76.0 (07dca489a 2024-02-04)

Wumpf avatar Feb 14 '24 08:02 Wumpf

luckily cargo binstall still works

Wumpf avatar Feb 14 '24 09:02 Wumpf

Fix coming in egui 0.26.2: https://github.com/emilk/egui/pull/4037

In the meantime try cargo install --locked puffin_viewer

emilk avatar Feb 14 '24 09:02 emilk

eframe 0.26.2 released - please verify cargo install puffin_viewer now works on Windows @Wumpf

emilk avatar Feb 14 '24 09:02 emilk

Does not work. Puffin 0.19 is on eframe 0.25:

 Compiling puffin_egui v0.25.0
 Compiling eframe v0.25.0

Wumpf avatar Feb 14 '24 10:02 Wumpf

oh and as suspected, --locked works

Wumpf avatar Feb 14 '24 12:02 Wumpf

This should be fixed now. New puffin release coming shortly.

emilk avatar Jul 31 '24 16:07 emilk