diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2023-08-01 16:40:13 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2023-08-01 16:40:13 +0200 |
| commit | d7c69a9a6ca958d41c4475f3079ab3b986cb3531 (patch) | |
| tree | aeb63630b667255986f7a6a51b700072dcb7b58c | |
| parent | fafe4c910ed60a4f29e15f2a9e66dbae4294f3a1 (diff) | |
| parent | ff3156999b8ee5ad2e2351a5ec1a35fb90ec49ba (diff) | |
| download | mullvadvpn-d7c69a9a6ca958d41c4475f3079ab3b986cb3531.tar.xz mullvadvpn-d7c69a9a6ca958d41c4475f3079ab3b986cb3531.zip | |
Merge branch 'make-windows-sys-workspace-dependency'
| -rw-r--r-- | Cargo.toml | 3 | ||||
| -rw-r--r-- | mullvad-cli/Cargo.toml | 2 | ||||
| -rw-r--r-- | mullvad-daemon/Cargo.toml | 4 | ||||
| -rw-r--r-- | mullvad-paths/Cargo.toml | 4 | ||||
| -rw-r--r-- | mullvad-problem-report/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-core/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-openvpn-plugin/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-openvpn/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-platform-metadata/Cargo.toml | 4 | ||||
| -rw-r--r-- | talpid-routing/Cargo.toml | 11 | ||||
| -rw-r--r-- | talpid-tunnel-config-client/Cargo.toml | 9 | ||||
| -rw-r--r-- | talpid-tunnel/Cargo.toml | 2 | ||||
| -rw-r--r-- | talpid-windows-net/Cargo.toml | 7 | ||||
| -rw-r--r-- | talpid-wireguard/Cargo.toml | 4 |
14 files changed, 34 insertions, 24 deletions
diff --git a/Cargo.toml b/Cargo.toml index c3ec850f62..540f551ea7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,9 @@ tower = "0.4" prost = "0.11" prost-types = "0.11" +windows-sys = "0.45.0" + + [profile.release] opt-level = 3 lto = true diff --git a/mullvad-cli/Cargo.toml b/mullvad-cli/Cargo.toml index 55aa4e7e49..86ba8e8f1c 100644 --- a/mullvad-cli/Cargo.toml +++ b/mullvad-cli/Cargo.toml @@ -40,7 +40,7 @@ winres = "0.1" mullvad-version = { path = "../mullvad-version" } [target.'cfg(windows)'.build-dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_System_SystemServices", ] diff --git a/mullvad-daemon/Cargo.toml b/mullvad-daemon/Cargo.toml index 8b27a6c526..b1d697c879 100644 --- a/mullvad-daemon/Cargo.toml +++ b/mullvad-daemon/Cargo.toml @@ -68,7 +68,7 @@ winapi = { version = "0.3", features = ["winnt", "excpt"] } dirs = "5.0.1" [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_Foundation", "Win32_Security", @@ -85,7 +85,7 @@ winres = "0.1" mullvad-version = { path = "../mullvad-version" } [target.'cfg(windows)'.build-dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_System_SystemServices", ] diff --git a/mullvad-paths/Cargo.toml b/mullvad-paths/Cargo.toml index 2a1662bd38..b6d6004831 100644 --- a/mullvad-paths/Cargo.toml +++ b/mullvad-paths/Cargo.toml @@ -18,8 +18,8 @@ log = "0.4" widestring = "1.0" once_cell = "1.13" -[target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.45.0" +[target.'cfg(windows)'.dependencies.windows-sys] +workspace = true features = [ "Win32_Foundation", "Win32_Security", diff --git a/mullvad-problem-report/Cargo.toml b/mullvad-problem-report/Cargo.toml index 3d92cb868c..08b20571b3 100644 --- a/mullvad-problem-report/Cargo.toml +++ b/mullvad-problem-report/Cargo.toml @@ -35,7 +35,7 @@ winres = "0.1" mullvad-version = { path = "../mullvad-version" } [target.'cfg(windows)'.build-dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_System_SystemServices", ] diff --git a/talpid-core/Cargo.toml b/talpid-core/Cargo.toml index ac7ff685a5..25cbbf77c1 100644 --- a/talpid-core/Cargo.toml +++ b/talpid-core/Cargo.toml @@ -81,7 +81,7 @@ windows-service = "0.6.0" talpid-windows-net = { path = "../talpid-windows-net" } [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_Foundation", "Win32_Globalization", diff --git a/talpid-openvpn-plugin/Cargo.toml b/talpid-openvpn-plugin/Cargo.toml index f7a4273b96..5d8cb9b95b 100644 --- a/talpid-openvpn-plugin/Cargo.toml +++ b/talpid-openvpn-plugin/Cargo.toml @@ -34,7 +34,7 @@ winres = "0.1" mullvad-version = { path = "../mullvad-version" } [target.'cfg(windows)'.build-dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_System_SystemServices", ] diff --git a/talpid-openvpn/Cargo.toml b/talpid-openvpn/Cargo.toml index 576f4e7558..af054617d0 100644 --- a/talpid-openvpn/Cargo.toml +++ b/talpid-openvpn/Cargo.toml @@ -45,7 +45,7 @@ winreg = { version = "0.7", features = ["transactions"] } talpid-windows-net = { path = "../talpid-windows-net" } [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_Foundation", "Win32_System_LibraryLoader", diff --git a/talpid-platform-metadata/Cargo.toml b/talpid-platform-metadata/Cargo.toml index c3c6dcd746..eca5b7b6e3 100644 --- a/talpid-platform-metadata/Cargo.toml +++ b/talpid-platform-metadata/Cargo.toml @@ -13,8 +13,8 @@ publish.workspace = true rs-release = "0.1.7" talpid-dbus = { path = "../talpid-dbus" } -[target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.45.0" +[target.'cfg(windows)'.dependencies.windows-sys] +workspace = true features = [ "Win32_Foundation", "Win32_System_LibraryLoader", diff --git a/talpid-routing/Cargo.toml b/talpid-routing/Cargo.toml index 49e461dbd9..73cb3341fe 100644 --- a/talpid-routing/Cargo.toml +++ b/talpid-routing/Cargo.toml @@ -40,10 +40,13 @@ libc = "0.2" socket2 = { version = "0.4.2", features = ["all"] } talpid-windows-net = { path = "../talpid-windows-net" } widestring = "1.0" -windows-sys = { version = "0.45.0", features = [ - "Win32_NetworkManagement_Ndis", - "Win32_Globalization" -]} + +[target.'cfg(windows)'.dependencies.windows-sys] +workspace = true +features = [ + "Win32_NetworkManagement_Ndis", + "Win32_Globalization" +] [dev-dependencies] tokio = { workspace = true, features = [ "test-util" ] } diff --git a/talpid-tunnel-config-client/Cargo.toml b/talpid-tunnel-config-client/Cargo.toml index 0359f5dc22..83e645f2bb 100644 --- a/talpid-tunnel-config-client/Cargo.toml +++ b/talpid-tunnel-config-client/Cargo.toml @@ -21,10 +21,11 @@ pqc_kyber = { version = "0.4.0", features = ["std", "kyber1024", "zeroize"] } zeroize = "1.5.7" libc = "0.2" -[target.'cfg(target_os="windows")'.dependencies] -windows-sys = { version = "0.45.0", features = [ - "Win32_Networking_WinSock" -]} +[target.'cfg(windows)'.dependencies.windows-sys] +workspace = true +features = [ + "Win32_Networking_WinSock" +] [dev-dependencies] tokio = { workspace = true, features = ["rt-multi-thread"] } diff --git a/talpid-tunnel/Cargo.toml b/talpid-tunnel/Cargo.toml index 4e58162d6f..c20d2990f4 100644 --- a/talpid-tunnel/Cargo.toml +++ b/talpid-tunnel/Cargo.toml @@ -35,7 +35,7 @@ tun = "0.5.1" talpid-windows-net = { path = "../talpid-windows-net" } [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_Foundation", "Win32_Networking_WinSock", diff --git a/talpid-windows-net/Cargo.toml b/talpid-windows-net/Cargo.toml index 165f3787bc..40caf827f4 100644 --- a/talpid-windows-net/Cargo.toml +++ b/talpid-windows-net/Cargo.toml @@ -14,7 +14,10 @@ libc = "0.2" socket2 = { version = "0.4.2", features = ["all"] } futures = "0.3.15" winapi = { version = "0.3.6", features = ["ws2def"] } -windows-sys = { version = "0.45.0", features = [ + +[target.'cfg(windows)'.dependencies.windows-sys] +workspace = true +features = [ "Win32_Foundation", "Win32_Globalization", "Win32_System_Com", @@ -22,4 +25,4 @@ windows-sys = { version = "0.45.0", features = [ "Win32_Networking_WinSock", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis", -]} +] diff --git a/talpid-wireguard/Cargo.toml b/talpid-wireguard/Cargo.toml index cb0c96eb31..68270e1a15 100644 --- a/talpid-wireguard/Cargo.toml +++ b/talpid-wireguard/Cargo.toml @@ -53,9 +53,9 @@ bitflags = "1.2" talpid-windows-net = { path = "../talpid-windows-net" } widestring = "1.0" -# Figure out which features are needed and which are not +# TODO: Figure out which features are needed and which are not [target.'cfg(windows)'.dependencies.windows-sys] -version = "0.45.0" +workspace = true features = [ "Win32_Foundation", "Win32_Globalization", |
