From f21e54807b6f2a1bcf777d3b3a4224165fa808dd Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Wed, 14 Aug 2024 11:10:17 -0700 Subject: [PATCH] Remove unnecessary feature dependencies (#3201) --- crates/samples/components/json_validator/Cargo.toml | 1 - crates/samples/components/json_validator_winrt/Cargo.toml | 1 - crates/tests/agile_reference/Cargo.toml | 1 - crates/tests/alternate_success_code/Cargo.toml | 1 - crates/tests/bcrypt/Cargo.toml | 2 -- crates/tests/calling_convention/Cargo.toml | 2 -- crates/tests/component/Cargo.toml | 1 - crates/tests/const_fields/Cargo.toml | 2 -- crates/tests/const_params/Cargo.toml | 2 -- crates/tests/const_ptrs/Cargo.toml | 1 - crates/tests/core/Cargo.toml | 1 - crates/tests/debugger_visualizer/Cargo.toml | 1 - crates/tests/dispatch/Cargo.toml | 1 - crates/tests/enums/Cargo.toml | 2 -- crates/tests/error/Cargo.toml | 1 - crates/tests/extensions/Cargo.toml | 1 - crates/tests/handles/Cargo.toml | 2 -- crates/tests/implement/Cargo.toml | 1 - crates/tests/interface/Cargo.toml | 1 - crates/tests/lib/Cargo.toml | 2 -- crates/tests/metadata/Cargo.toml | 2 -- crates/tests/msrv/Cargo.toml | 2 -- crates/tests/not_dll/Cargo.toml | 2 -- crates/tests/readme/Cargo.toml | 2 -- crates/tests/reserved/Cargo.toml | 2 -- crates/tests/resources/Cargo.toml | 2 -- crates/tests/return_handle/Cargo.toml | 1 - crates/tests/string_param/Cargo.toml | 1 - crates/tests/structs/Cargo.toml | 1 - crates/tests/sys/Cargo.toml | 1 - crates/tests/targets/Cargo.toml | 4 ++-- crates/tests/unions/Cargo.toml | 2 -- crates/tests/variant/Cargo.toml | 1 - crates/tests/wdk/Cargo.toml | 2 -- crates/tests/win32/Cargo.toml | 1 - crates/tests/win32_arrays/Cargo.toml | 1 - crates/tests/window_long/Cargo.toml | 2 -- 37 files changed, 2 insertions(+), 54 deletions(-) diff --git a/crates/samples/components/json_validator/Cargo.toml b/crates/samples/components/json_validator/Cargo.toml index 1b820a3337..525f6c7f19 100644 --- a/crates/samples/components/json_validator/Cargo.toml +++ b/crates/samples/components/json_validator/Cargo.toml @@ -14,6 +14,5 @@ serde_json = {version = "1.0", default-features = false } [dependencies.windows] path = "../../../libs/windows" features = [ - "Win32_Foundation", "Win32_System_Com", ] diff --git a/crates/samples/components/json_validator_winrt/Cargo.toml b/crates/samples/components/json_validator_winrt/Cargo.toml index 39936db62f..64ab5edfc1 100644 --- a/crates/samples/components/json_validator_winrt/Cargo.toml +++ b/crates/samples/components/json_validator_winrt/Cargo.toml @@ -16,7 +16,6 @@ serde_json = {version = "1.0", default-features = false } path = "../../../libs/windows" features = [ "implement", - "Win32_Foundation", "Win32_System_WinRT", ] diff --git a/crates/tests/agile_reference/Cargo.toml b/crates/tests/agile_reference/Cargo.toml index 3df0e5aac3..d204e05d1a 100644 --- a/crates/tests/agile_reference/Cargo.toml +++ b/crates/tests/agile_reference/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Foundation", "Media_Control", "Foundation_Collections" ] diff --git a/crates/tests/alternate_success_code/Cargo.toml b/crates/tests/alternate_success_code/Cargo.toml index b9bc359689..32a459442e 100644 --- a/crates/tests/alternate_success_code/Cargo.toml +++ b/crates/tests/alternate_success_code/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_System_Ole", "Win32_System_Com", ] diff --git a/crates/tests/bcrypt/Cargo.toml b/crates/tests/bcrypt/Cargo.toml index 30e5ff12f5..ef67f65db5 100644 --- a/crates/tests/bcrypt/Cargo.toml +++ b/crates/tests/bcrypt/Cargo.toml @@ -11,13 +11,11 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Security_Cryptography", ] [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Security_Cryptography", ] diff --git a/crates/tests/calling_convention/Cargo.toml b/crates/tests/calling_convention/Cargo.toml index 70a9feae22..e35f5bac29 100644 --- a/crates/tests/calling_convention/Cargo.toml +++ b/crates/tests/calling_convention/Cargo.toml @@ -14,7 +14,6 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(windows_raw_dylib)'] } [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Networking_Ldap", "Win32_System_SystemInformation", ] @@ -22,7 +21,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Networking_Ldap", "Win32_System_SystemInformation", "Win32_UI_WindowsAndMessaging", diff --git a/crates/tests/component/Cargo.toml b/crates/tests/component/Cargo.toml index ecfc6b1b08..b2facd19e9 100644 --- a/crates/tests/component/Cargo.toml +++ b/crates/tests/component/Cargo.toml @@ -17,7 +17,6 @@ path = "../../libs/windows" features = [ "implement", "Foundation", - "Win32_Foundation", "Win32_System_WinRT", ] diff --git a/crates/tests/const_fields/Cargo.toml b/crates/tests/const_fields/Cargo.toml index a57adb43f7..e3d4a27057 100644 --- a/crates/tests/const_fields/Cargo.toml +++ b/crates/tests/const_fields/Cargo.toml @@ -12,7 +12,6 @@ doctest = false path = "../../libs/windows" features = [ "Win32_Storage_CloudFilters", - "Win32_Foundation", "Win32_System_CorrelationVector", ] @@ -20,6 +19,5 @@ features = [ path = "../../libs/sys" features = [ "Win32_Storage_CloudFilters", - "Win32_Foundation", "Win32_System_CorrelationVector", ] diff --git a/crates/tests/const_params/Cargo.toml b/crates/tests/const_params/Cargo.toml index 116c2d1d36..d56327ba87 100644 --- a/crates/tests/const_params/Cargo.toml +++ b/crates/tests/const_params/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_UI_Shell", "Win32_System_WinRT", "Win32_System_Com", @@ -20,6 +19,5 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_UI_Shell", ] diff --git a/crates/tests/const_ptrs/Cargo.toml b/crates/tests/const_ptrs/Cargo.toml index 04d442bd33..c019ffc598 100644 --- a/crates/tests/const_ptrs/Cargo.toml +++ b/crates/tests/const_ptrs/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_System_Com_StructuredStorage", "Win32_System_Variant", "Win32_UI_Shell_PropertiesSystem", diff --git a/crates/tests/core/Cargo.toml b/crates/tests/core/Cargo.toml index 93c5abee97..7f6e14bdb4 100644 --- a/crates/tests/core/Cargo.toml +++ b/crates/tests/core/Cargo.toml @@ -12,7 +12,6 @@ doctest = false path = "../../libs/windows" features = [ "implement", - "Win32_Foundation", "Win32_System_WinRT", "Win32_System_Ole", "Win32_System_Com", diff --git a/crates/tests/debugger_visualizer/Cargo.toml b/crates/tests/debugger_visualizer/Cargo.toml index 73b67d5370..ae8ce92be9 100644 --- a/crates/tests/debugger_visualizer/Cargo.toml +++ b/crates/tests/debugger_visualizer/Cargo.toml @@ -16,7 +16,6 @@ path = "../../libs/windows" features = [ "implement", "Win32_System_Com", - "Win32_Foundation", ] [dependencies.windows-core] diff --git a/crates/tests/dispatch/Cargo.toml b/crates/tests/dispatch/Cargo.toml index 52040acd4c..2655b04417 100644 --- a/crates/tests/dispatch/Cargo.toml +++ b/crates/tests/dispatch/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_System_Com", "Win32_System_Ole", "Win32_System_RemoteManagement", diff --git a/crates/tests/enums/Cargo.toml b/crates/tests/enums/Cargo.toml index 78477b5b70..722da2c38b 100644 --- a/crates/tests/enums/Cargo.toml +++ b/crates/tests/enums/Cargo.toml @@ -12,14 +12,12 @@ doctest = false path = "../../libs/windows" features = [ "Storage_Streams", - "Win32_Foundation", "Win32_UI_WindowsAndMessaging", ] [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_UI_WindowsAndMessaging", ] diff --git a/crates/tests/error/Cargo.toml b/crates/tests/error/Cargo.toml index 41d8867d7f..792682f409 100644 --- a/crates/tests/error/Cargo.toml +++ b/crates/tests/error/Cargo.toml @@ -13,7 +13,6 @@ path = "../../libs/windows" features = [ "implement", "Foundation", - "Win32_Foundation", "Win32_System_Rpc", ] diff --git a/crates/tests/extensions/Cargo.toml b/crates/tests/extensions/Cargo.toml index 1cd473b9b1..2eac8e32d9 100644 --- a/crates/tests/extensions/Cargo.toml +++ b/crates/tests/extensions/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Security_Cryptography", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", diff --git a/crates/tests/handles/Cargo.toml b/crates/tests/handles/Cargo.toml index 84c4e58d1c..e00344efcf 100644 --- a/crates/tests/handles/Cargo.toml +++ b/crates/tests/handles/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_System_Registry", "Win32_Devices_Bluetooth", @@ -22,6 +21,5 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Graphics_Gdi", ] diff --git a/crates/tests/implement/Cargo.toml b/crates/tests/implement/Cargo.toml index c1948c69dd..159c013c33 100644 --- a/crates/tests/implement/Cargo.toml +++ b/crates/tests/implement/Cargo.toml @@ -16,7 +16,6 @@ features = [ "ApplicationModel_Background", "Foundation_Collections", "Storage_Streams", - "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_System_Com_StructuredStorage", "Win32_System_Ole", diff --git a/crates/tests/interface/Cargo.toml b/crates/tests/interface/Cargo.toml index 5d06acd650..10381cb1f5 100644 --- a/crates/tests/interface/Cargo.toml +++ b/crates/tests/interface/Cargo.toml @@ -12,7 +12,6 @@ doctest = false path = "../../libs/windows" features = [ "implement", - "Win32_Foundation", "Win32_Graphics_Direct3D", "Win32_Graphics_Direct3D10", "Win32_Graphics_Direct3D12", diff --git a/crates/tests/lib/Cargo.toml b/crates/tests/lib/Cargo.toml index 54d98f0a77..a213883ec0 100644 --- a/crates/tests/lib/Cargo.toml +++ b/crates/tests/lib/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Graphics_Direct3D_Fxc", "Win32_Graphics_Direct3D11", "Win32_Graphics_Gdi", @@ -22,7 +21,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Security", "Win32_System_ProcessStatus", diff --git a/crates/tests/metadata/Cargo.toml b/crates/tests/metadata/Cargo.toml index 7ac6459823..b028067277 100644 --- a/crates/tests/metadata/Cargo.toml +++ b/crates/tests/metadata/Cargo.toml @@ -16,7 +16,6 @@ path = "../../libs/windows" features = [ "Win32_Graphics_Gdi", "Win32_System_SystemServices", - "Win32_Foundation", ] [dependencies.windows-sys] @@ -24,7 +23,6 @@ path = "../../libs/sys" features = [ "Win32_Graphics_Gdi", "Win32_System_SystemServices", - "Win32_Foundation", ] [dependencies.tool_lib] diff --git a/crates/tests/msrv/Cargo.toml b/crates/tests/msrv/Cargo.toml index f7e5a75ee7..4d08c5886f 100644 --- a/crates/tests/msrv/Cargo.toml +++ b/crates/tests/msrv/Cargo.toml @@ -11,8 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Foundation", "Globalization", - "Win32_Foundation", "Win32_Graphics_Direct2D", ] diff --git a/crates/tests/not_dll/Cargo.toml b/crates/tests/not_dll/Cargo.toml index 4b3360bfe9..8d9708b577 100644 --- a/crates/tests/not_dll/Cargo.toml +++ b/crates/tests/not_dll/Cargo.toml @@ -12,7 +12,6 @@ doctest = false path = "../../libs/windows" features = [ "Win32_Graphics_Printing", - "Win32_Foundation", "Win32_Graphics_Gdi", ] @@ -20,6 +19,5 @@ features = [ path = "../../libs/sys" features = [ "Win32_Graphics_Printing", - "Win32_Foundation", "Win32_Graphics_Gdi", ] diff --git a/crates/tests/readme/Cargo.toml b/crates/tests/readme/Cargo.toml index c450375600..4bf2c16b15 100644 --- a/crates/tests/readme/Cargo.toml +++ b/crates/tests/readme/Cargo.toml @@ -8,7 +8,6 @@ publish = false path = "../../libs/windows" features = [ "Data_Xml_Dom", - "Win32_Foundation", "Win32_Security", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging", @@ -17,7 +16,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Security", "Win32_System_Threading", "Win32_UI_WindowsAndMessaging", diff --git a/crates/tests/reserved/Cargo.toml b/crates/tests/reserved/Cargo.toml index cb1c8754cb..4e9f9e5a61 100644 --- a/crates/tests/reserved/Cargo.toml +++ b/crates/tests/reserved/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_System_Registry", "Win32_UI_WindowsAndMessaging", "Win32_System_Threading", @@ -20,7 +19,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_System_Registry", "Win32_UI_WindowsAndMessaging", "Win32_System_Threading", diff --git a/crates/tests/resources/Cargo.toml b/crates/tests/resources/Cargo.toml index 50b6b6f0a4..7722b427be 100644 --- a/crates/tests/resources/Cargo.toml +++ b/crates/tests/resources/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_UI_Controls", "Win32_UI_WindowsAndMessaging", "Win32_System_Com", @@ -20,7 +19,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_UI_Controls", "Win32_UI_WindowsAndMessaging", "Win32_System_Com", diff --git a/crates/tests/return_handle/Cargo.toml b/crates/tests/return_handle/Cargo.toml index 3ea3366a9f..7351f7b8bd 100644 --- a/crates/tests/return_handle/Cargo.toml +++ b/crates/tests/return_handle/Cargo.toml @@ -12,6 +12,5 @@ doctest = false path = "../../libs/windows" features = [ "Win32_System_Threading", - "Win32_Foundation", "Win32_Security", ] diff --git a/crates/tests/string_param/Cargo.toml b/crates/tests/string_param/Cargo.toml index 3e52dc55fb..416eefc201 100644 --- a/crates/tests/string_param/Cargo.toml +++ b/crates/tests/string_param/Cargo.toml @@ -11,6 +11,5 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_UI_Shell", ] diff --git a/crates/tests/structs/Cargo.toml b/crates/tests/structs/Cargo.toml index e322f4434a..1a9c694684 100644 --- a/crates/tests/structs/Cargo.toml +++ b/crates/tests/structs/Cargo.toml @@ -14,7 +14,6 @@ features = [ "implement", "Storage_Search", "Win32_Devices_Properties", - "Win32_Foundation", "Win32_System_Diagnostics_Debug", "Win32_UI_Shell_PropertiesSystem", "Win32_UI_WindowsAndMessaging", diff --git a/crates/tests/sys/Cargo.toml b/crates/tests/sys/Cargo.toml index 491fd6edec..20b8b8cb08 100644 --- a/crates/tests/sys/Cargo.toml +++ b/crates/tests/sys/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_Graphics_Gdi", "Win32_Security", "Win32_System_Threading", diff --git a/crates/tests/targets/Cargo.toml b/crates/tests/targets/Cargo.toml index 2ed7586f00..d63a13146a 100644 --- a/crates/tests/targets/Cargo.toml +++ b/crates/tests/targets/Cargo.toml @@ -13,11 +13,11 @@ path = "../../libs/targets" [dependencies.windows] path = "../../libs/windows" -features = [ "Win32_Foundation", "Win32_Security_Authentication_Identity" ] +features = [ "Win32_Security_Authentication_Identity" ] [dependencies.windows-sys] path = "../../libs/sys" -features = [ "Win32_Foundation", "Win32_Security_Authentication_Identity" ] +features = [ "Win32_Security_Authentication_Identity" ] [dependencies.tool_lib] path = "../../tools/lib" \ No newline at end of file diff --git a/crates/tests/unions/Cargo.toml b/crates/tests/unions/Cargo.toml index 20c5a8c582..c51959cfce 100644 --- a/crates/tests/unions/Cargo.toml +++ b/crates/tests/unions/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Graphics_Direct3D12", "Win32_System_IO", ] @@ -19,6 +18,5 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_System_IO", ] diff --git a/crates/tests/variant/Cargo.toml b/crates/tests/variant/Cargo.toml index 7f6a5bcc91..3d22334f4d 100644 --- a/crates/tests/variant/Cargo.toml +++ b/crates/tests/variant/Cargo.toml @@ -15,6 +15,5 @@ path = "../../libs/core" path = "../../libs/windows" features = [ "Foundation", - "Win32_Foundation", "Win32_System_Com_Events", ] diff --git a/crates/tests/wdk/Cargo.toml b/crates/tests/wdk/Cargo.toml index 663469fdfc..a9f939d7c4 100644 --- a/crates/tests/wdk/Cargo.toml +++ b/crates/tests/wdk/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Wdk_System_SystemServices", "Wdk_System_OfflineRegistry", ] @@ -19,7 +18,6 @@ features = [ [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Wdk_System_SystemServices", "Wdk_System_OfflineRegistry", ] diff --git a/crates/tests/win32/Cargo.toml b/crates/tests/win32/Cargo.toml index 5bea08f1ba..3f33f06b64 100644 --- a/crates/tests/win32/Cargo.toml +++ b/crates/tests/win32/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Gaming", "Win32_Graphics_Direct2D", "Win32_Graphics_Direct3D", diff --git a/crates/tests/win32_arrays/Cargo.toml b/crates/tests/win32_arrays/Cargo.toml index 17f0a891f5..7bb6ab71fe 100644 --- a/crates/tests/win32_arrays/Cargo.toml +++ b/crates/tests/win32_arrays/Cargo.toml @@ -11,7 +11,6 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_Graphics_Dxgi", "Win32_Graphics_Gdi", "Win32_NetworkManagement_IpHelper", diff --git a/crates/tests/window_long/Cargo.toml b/crates/tests/window_long/Cargo.toml index 668fbe0089..587abcd9c2 100644 --- a/crates/tests/window_long/Cargo.toml +++ b/crates/tests/window_long/Cargo.toml @@ -11,13 +11,11 @@ doctest = false [dependencies.windows] path = "../../libs/windows" features = [ - "Win32_Foundation", "Win32_UI_WindowsAndMessaging", ] [dependencies.windows-sys] path = "../../libs/sys" features = [ - "Win32_Foundation", "Win32_UI_WindowsAndMessaging", ]