esp-rs / espup

Tool for installing and maintaining Espressif Rust ecosystem.
Apache License 2.0
232 stars 24 forks source link

Build fails on windows #448

Closed Niproblema closed 1 month ago

Niproblema commented 1 month ago

Bug description

To Reproduce

Steps to reproduce the behavior:

  1. cargo install espup

Expected behavior

Successful build

Screenshots

Environment

Additional context

   Compiling hmac v0.12.1
error[E0432]: unresolved import `windows_sys::Win32::System::SystemInformation`
    |
181 |     use windows_sys::Win32::System::SystemInformation::OSVERSIONINFOW;
    |                                     ^^^^^^^^^^^^^^^^^ could not find `SystemInformation` in `System`
    |
note: found an item that was configured out
   --> C:\Users\x\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-sys-0.59.0\src\Windows\Win32\System\mod.rs:114:9
    |
114 | pub mod SystemInformation;
    |         ^^^^^^^^^^^^^^^^^
note: the item is gated behind the `Win32_System_SystemInformation` feature
   --> C:\Users\x\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-sys-0.59.0\src\Windows\Win32\System\mod.rs:113:7
    |
113 | #[cfg(feature = "Win32_System_SystemInformation")]
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   Compiling webpki-roots v0.26.6
   Compiling simd-adler32 v0.3.7
   Compiling smawk v0.3.2
   Compiling num-conv v0.1.0
   Compiling unicode-width v0.1.14
For more information about this error, try `rustc --explain E0432`.
error: could not compile `schannel` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `espup v0.12.1`,