Move more dependencies to workspace level (#12270)

# Description
This is a followup to #12043 that moves more dependency versions to
workspace dependencies.

# User-Facing Changes
N/A

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
This commit is contained in:
Antoine Büsch
2024-03-24 10:46:02 +11:00
committed by GitHub
parent 544e7bcb5e
commit 4ddc35cdad
23 changed files with 225 additions and 139 deletions

View File

@ -13,7 +13,7 @@ license = "MIT"
bench = false
[dependencies]
libc = "0.2"
libc = { workspace = true }
log = { workspace = true }
sysinfo = { workspace = true }
@ -21,17 +21,17 @@ sysinfo = { workspace = true }
nix = { workspace = true, default-features = false, features = ["fs", "term", "process", "signal"] }
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
procfs = "0.16"
procfs = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
libproc = "0.14"
mach2 = "0.4"
libproc = { workspace = true }
mach2 = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
chrono = { workspace = true, default-features = false, features = ["clock"] }
ntapi = "0.4"
once_cell = { workspace = true }
windows = { version = "0.54", features = [
windows = { workspace = true, features = [
"Wdk_System_SystemServices",
"Wdk_System_Threading",
"Win32_Foundation",