d-0020-remove-windows-dependencies
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 6 May 2024 08:25:32 +0000 (10:25 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 17 May 2024 06:38:11 +0000 (08:38 +0200)
===================================================================

Gbp-Pq: Name d-0020-remove-windows-dependencies.patch

15 files changed:
compiler/rustc_codegen_ssa/Cargo.toml
compiler/rustc_data_structures/Cargo.toml
compiler/rustc_driver_impl/Cargo.toml
compiler/rustc_errors/Cargo.toml
compiler/rustc_session/Cargo.toml
library/backtrace/Cargo.toml
src/bootstrap/Cargo.toml
src/tools/cargo/Cargo.toml
src/tools/cargo/crates/cargo-test-support/Cargo.toml
src/tools/cargo/crates/cargo-util/Cargo.toml
src/tools/cargo/crates/home/Cargo.toml
src/tools/compiletest/Cargo.toml
src/tools/rust-analyzer/crates/profile/Cargo.toml
src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml
src/tools/rust-analyzer/crates/stdx/Cargo.toml

index 0ac12d32be535925c9a029a7f0ebf0db3e858466..3f483abdb4f40f1e7ddb6a10a8c24844910a2437 100644 (file)
@@ -49,7 +49,3 @@ libc = "0.2.50"
 version = "0.31.1"
 default-features = false
 features = ["read_core", "elf", "macho", "pe", "unaligned", "archive", "write"]
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = ["Win32_Globalization"]
index 78f73d193e380f71938affdb41fbee4ed8f52979..fce2ee0322e8047df1afcb0780d6414824d7b5dd 100644 (file)
@@ -37,16 +37,6 @@ itertools = "0.10.1"
 [dependencies.parking_lot]
 version = "0.11"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Storage_FileSystem",
-    "Win32_System_IO",
-    "Win32_System_ProcessStatus",
-    "Win32_System_Threading",
-]
-
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 memmap2 = "0.2.1"
 
index 67352c55c9019713723d89508145c7ea8b48469c..f27cb40762055064f04f6a3dca69e3d072cdde71 100644 (file)
@@ -56,12 +56,6 @@ rustc_mir_transform = { path = "../rustc_mir_transform" }
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = [
-    "Win32_System_Diagnostics_Debug",
-]
-
 [features]
 llvm = ['rustc_interface/llvm']
 max_level_info = ['rustc_log/max_level_info']
index bd3033fcb3e868412c5016a5eef7ede3d134772d..83c803618426ab45b6bf7ebfa15049d4157eac0a 100644 (file)
@@ -26,13 +26,5 @@ termize = "0.1.1"
 serde = { version = "1.0.125", features = [ "derive" ] }
 serde_json = "1.0.59"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Security",
-    "Win32_System_Threading",
-]
-
 [features]
 rustc_use_parallel_compiler = ['rustc_error_messages/rustc_use_parallel_compiler']
index 3af83aaaaa8a22a9947f66d334b9e492fa07c1ed..c3d2a002376226fd5bc6ad7b9469cbaef33e854d 100644 (file)
@@ -23,10 +23,3 @@ termize = "0.1.1"
 
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = [
-    "Win32_Foundation",
-    "Win32_System_LibraryLoader",
-]
index 47790911112f1f6d1dbd00e3cfc7de560f133fe7..5f7ed3a24fb6eb327af982c0f63a35b23c7c5297 100644 (file)
@@ -45,9 +45,6 @@ version = "0.30.0"
 default-features = false
 features = ['read_core', 'elf', 'macho', 'pe', 'unaligned', 'archive']
 
-[target.'cfg(windows)'.dependencies]
-winapi = { version = "0.3.9", optional = true }
-
 [build-dependencies]
 # Only needed for Android, but cannot be target dependent
 # https://github.com/rust-lang/cargo/issues/4932
@@ -85,16 +82,6 @@ libbacktrace = []
 libunwind = []
 unix-backtrace = []
 verify-winapi = [
-  'winapi/dbghelp',
-  'winapi/handleapi',
-  'winapi/libloaderapi',
-  'winapi/memoryapi',
-  'winapi/minwindef',
-  'winapi/processthreadsapi',
-  'winapi/synchapi',
-  'winapi/tlhelp32',
-  'winapi/winbase',
-  'winapi/winnt',
 ]
 
 [[example]]
index 367c6190967c670eb83725e30b76873f694fc444..72c99923a07653d8124bf139c08c61adf697cf54 100644 (file)
@@ -63,21 +63,6 @@ semver = "1.0.17"
 [target.'cfg(not(target_os = "solaris"))'.dependencies]
 fd-lock = "3.0.8"
 
-[target.'cfg(windows)'.dependencies.junction]
-version = "1.0.0"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Security",
-    "Win32_System_Diagnostics_Debug",
-    "Win32_System_JobObjects",
-    "Win32_System_ProcessStatus",
-    "Win32_System_Threading",
-    "Win32_System_Time",
-]
-
 [dev-dependencies]
 pretty_assertions = "1.2"
 
index 74f7c2b8ad2eef61cef29d1d91cc4da7b668d644..06a2e5514f285c874db2efabaeada6e3353a742e 100644 (file)
@@ -2,7 +2,9 @@
 resolver = "2"
 members = [
   "crates/*",
-  "credential/*",
+  "credential/cargo-credential",
+  "credential/cargo-credential-1password",
+  "credential/cargo-credential-gnome-secret",
   "benches/benchsuite",
   "benches/capture",
 ]
@@ -91,7 +93,6 @@ unicode-xid = "0.2.0"
 url = "2.2.2"
 varisat = "0.2.1"
 walkdir = "2.3.1"
-windows-sys = "0.48"
 
 [package]
 name = "cargo"
@@ -174,22 +175,6 @@ walkdir.workspace = true
 [target.'cfg(not(windows))'.dependencies]
 openssl = { workspace = true, optional = true }
 
-[target.'cfg(windows)'.dependencies]
-fwdansi.workspace = true
-
-[target.'cfg(windows)'.dependencies.windows-sys]
-workspace = true
-features = [
-  "Win32_Foundation",
-  "Win32_Storage_FileSystem",
-  "Win32_System_Console",
-  "Win32_System_IO",
-  "Win32_System_Threading",
-  "Win32_System_JobObjects",
-  "Win32_Security",
-  "Win32_System_SystemServices"
-]
-
 [dev-dependencies]
 cargo-test-macro.workspace = true
 cargo-test-support.workspace = true
index 305c809a82dd2e31bee254ba435c7df71223912d..c656678d49363d7d1bd8e14d7bada8572a282cca 100644 (file)
@@ -9,25 +9,22 @@ publish = false
 doctest = false
 
 [dependencies]
-anyhow.workspace = true
-cargo-test-macro.workspace = true
-cargo-util.workspace = true
-crates-io.workspace = true
-filetime.workspace = true
-flate2.workspace = true
-git2.workspace = true
-glob.workspace = true
-itertools.workspace = true
-lazy_static.workspace = true
-pasetors.workspace = true
-serde = { workspace = true, features = ["derive"] }
-serde_json.workspace = true
-snapbox.workspace = true
-tar.workspace = true
-termcolor.workspace = true
-time.workspace = true
-toml.workspace = true
-url.workspace = true
-
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] }
+anyhow = "1.0.34"
+cargo-test-macro = { path = "../cargo-test-macro" }
+cargo-util = { path = "../cargo-util" }
+crates-io = { path = "../crates-io" }
+filetime = "0.2"
+flate2 = { version = "1.0", default-features = false, features = ["zlib"] }
+git2 = "0.17.0"
+glob = "0.3"
+itertools = "0.10.0"
+lazy_static = "1.0"
+pasetors = { version = "0.6.4", features = ["v3", "paserk", "std", "serde"] }
+serde = { version = "1.0.123", features = ["derive"] }
+serde_json = "1.0"
+snapbox = { version = "0.4.0", features = ["diff", "path"] }
+tar = { version = "0.4.38", default-features = false }
+termcolor = "1.1.2"
+time = { version = "0.3", features = ["parsing", "formatting"]}
+toml = "0.7.0"
+url = "2.2.2"
index f01705fcab4ed0101fdd7ea5078d0c59905e4faa..138690f36b327c2a08a4572e1611f9bb973dec5a 100644 (file)
@@ -19,10 +19,3 @@ same-file.workspace = true
 shell-escape.workspace = true
 tempfile.workspace = true
 walkdir.workspace = true
-
-[target.'cfg(target_os = "macos")'.dependencies]
-core-foundation.workspace = true
-
-[target.'cfg(windows)'.dependencies]
-miow.workspace = true
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] }
index 6c65ecc18405993621b15be6642976582a1a65b3..11fd25593d07105668c4fde5d31d8d67c5c6a6ca 100644 (file)
@@ -15,6 +15,3 @@ license = "MIT OR Apache-2.0"
 readme = "README.md"
 repository = "https://github.com/rust-lang/cargo"
 description = "Shared definitions of home directories."
-
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_UI_Shell"] }
index d2f258320f086aa23c628f4a448bf94b8f78b0b2..61f7be4ba29c27c769a71834b6ff8af8efd113ff 100644 (file)
@@ -27,13 +27,3 @@ anyhow = "1"
 
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
-
-[target.'cfg(windows)'.dependencies]
-miow = "0.5"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.48.0"
-features = [
-    "Win32_Foundation",
-    "Win32_System_Diagnostics_Debug",
-]
index 642fb056dd3e17188e9a1c4ec7fe9eaafa8f3a99..0883bb7987aaaac2b8ef9b1cddd5fad5fbf45367 100644 (file)
@@ -21,9 +21,6 @@ countme = { version = "3.0.1", features = ["enable"] }
 [target.'cfg(target_os = "linux")'.dependencies]
 perf-event = "0.4.7"
 
-[target.'cfg(windows)'.dependencies]
-winapi = { version = "0.3.9", features = ["processthreadsapi", "psapi"] }
-
 [features]
 cpu_profiler = []
 
index f0f1900c78c56c7584faf1656f7017ffe023cecd..3137edbd4acb5e58cc7e0a3fc797e1165082d8b1 100644 (file)
@@ -67,12 +67,6 @@ tt.workspace = true
 vfs-notify.workspace = true
 vfs.workspace = true
 
-[target.'cfg(windows)'.dependencies]
-winapi = "0.3.9"
-
-[target.'cfg(not(target_env = "msvc"))'.dependencies]
-jemallocator = { version = "0.5.0", package = "tikv-jemallocator", optional = true }
-
 [dev-dependencies]
 expect-test = "1.4.0"
 jod-thread = "0.1.2"
index c881f2fd3f45e075f97c5382ee91dbf24fb08ff9..5cb4cb0bc3494d421fbbfeb431a22e2ee6a13242 100644 (file)
@@ -17,10 +17,6 @@ backtrace = { version = "0.3.65", optional = true }
 always-assert = { version = "0.1.2", features = ["log"] }
 # Think twice before adding anything here
 
-[target.'cfg(windows)'.dependencies]
-miow = "0.5.0"
-winapi = { version = "0.3.9", features = ["winerror"] }
-
 [features]
 # Uncomment to enable for the whole crate graph
 # default = [ "backtrace" ]