Skip to content

Conversation

@ramnivas
Copy link
Contributor

This change enables additional windows-sys features (beyond those declared in the workspace Cargo.toml) needed by each member.

Due to workspace feature unification, enabling a feature of windows-sys in any workspace member enabled it for all. However, this doesn't help projects that depend on Deno crates for embedding purposes. For example, Exograph needed to add an explicit windows-sys dependency only to make Deno dependencies compile.

For deno_subprocess_windows, process.rs refers to GetSystemDirectoryW, which is behind the Win32_System_SystemInformation feature.

For deno_node, dns.rs refers to WinSock, which is behind the Win32_Networking_WinSock feature.

Fixes #31678

Due to workspace feature unification, enabling a feature of `windows-sys` in any workspace member enabled it for all. However, this doesn't help projects that depend on Deno crates for embedding purposes. For example, [Exograph](https://github.com/exograph/exograph) needed to add an [explicit `windows-sys` dependency](https://github.com/exograph/exograph/blob/e6981bbfba9328abb0f2c6edfcc06b3537f1ee81/libs/exo-deno/Cargo.toml#L49) only to make Deno dependencies compile.

This change enables additional `windows-sys` features (beyond those declared in the workspace Cargo.toml) needed by each member.

For `deno_subprocess_windows`, process.rs refers to `GetSystemDirectoryW`, which is behind the `Win32_System_SystemInformation` feature.

For `deno_node`, dns.rs refers to `WinSock`, which is behind the `Win32_Networking_WinSock` feature.
@CLAassistant
Copy link

CLAassistant commented Dec 19, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bartlomieju bartlomieju changed the title chore: Enable windows-sys features in specific members chore: enable windows-sys features in specific members Jan 7, 2026
@bartlomieju bartlomieju merged commit ad4d064 into denoland:main Jan 7, 2026
20 checks passed
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

Successfully merging this pull request may close these issues.

Missing feature enabling of windows-sys dependencies

3 participants