Skip to content

Commit

Permalink
Ensure Win32 extensions compile with no_std (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennykerr authored Jan 31, 2025
1 parent ae0a840 commit e135ae6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/libs/windows/src/extensions/Win32/Networking.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#[cfg(feature = "Win32_Networking_WinSock")]
#[cfg(all(feature = "std", feature = "Win32_Networking_WinSock"))]
mod WinSock;
6 changes: 6 additions & 0 deletions crates/tests/misc/no_std/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ path = "../../../libs/windows"
default-features = false
features = [
"Foundation_Collections",
"Foundation_Numerics",
"Win32_Graphics_Direct3D",
"Win32_Networking_WinSock",
"Win32_System_Com_StructuredStorage",
"Win32_System_Ole",
"Win32_System_Rpc",
"Win32_System_Variant",
]

[lints]
Expand Down

0 comments on commit e135ae6

Please sign in to comment.