You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[package]
name = "scratch"version = "0.1.0"edition = "2021"
[dependencies.windows]
version = "0.58.0"default-features = falsefeatures = []
Crate code
# build.rsfnmain(){println!("cargo:rustc-link-arg=/SubSystem:Console");println!("cargo:rustc-link-arg=/ENTRY:main");}
# main.rs#![no_std]#![no_main]#[no_mangle]extern"C"fnmain(){// result incorrectly re-imports std into a no-std projectlet _ = windows::core::HRESULT(0);}// found duplicate lang item `panic_impl`#[cfg_attr(not(test), panic_handler)]fn_panic(_:&core::panic::PanicInfo) -> ! {loop{}}
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue! Testing revealed that there was a bit more involved in fixing this problem. #3180 provides the fix as well as the test repro and verification.
Summary
Windows-core always enables the std feature on Windows-strings and Windows-results
Crate manifest
Crate code
The text was updated successfully, but these errors were encountered: