Skip to content

Commit 182d3da

Browse files
committed
change versions for metal test
1 parent 1fd9fac commit 182d3da

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Cargo.toml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ governor = { version = "0.8.0", features = ["std", "nohashmap"] }
2828
# Platform-specific dependencies
2929
[target.'cfg(target_os = "linux")'.dependencies]
3030
libvirt = "0.1.0"
31-
nvml-wrapper = "0.12.0"
31+
nvml-wrapper = "0.10.0"
3232
glob = "0.3"
3333

3434
[target.'cfg(target_os = "macos")'.dependencies]
35-
core-graphics = "0.24.0"
36-
metal = { version = "0.24", features = ["private"] }
35+
core-graphics = "0.23.2"
36+
metal = { version = "0.26.0", features = ["private"] }
3737

3838
[target.'cfg(target_os = "windows")'.dependencies]
3939
winapi = { version = "0.3", features = ["dxgi", "d3dcommon"] }
@@ -45,4 +45,9 @@ path = "src/lib.rs"
4545

4646
[[bin]]
4747
name = "gpu-share-vm-manager"
48-
path = "src/main.rs"
48+
path = "src/main.rs"
49+
50+
[features]
51+
metal = ["dep:metal", "dep:core-graphics"]
52+
windows = ["dep:dxgi", "dep:winapi"]
53+
linux = ["dep:nvml-wrapper", "dep:libvirt"]

0 commit comments

Comments
 (0)