-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
43 lines (38 loc) · 1.4 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[package]
name = "gpu-share-vm-manager"
version = "0.1.0"
edition = "2021"
[dependencies]
tokio = { version = "1.36", features = ["full"] }
virt = "0.4.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tracing = "0.1"
tracing-subscriber = "0.3"
anyhow = "1.0"
async-trait = "0.1"
config = "0.15.6"
axum = { version = "0.8.0", features = ["macros"] }
hyper = { version = "1.0", features = ["full"] }
tower = { version = "0.5.2", features = ["limit", "util"] }
tower-http = { version = "0.6.2", features = ["trace", "limit", "add-extension"] }
clap = { version = "4.4", features = ["derive"] }
colored = "3.0"
thiserror = "2.0.11"
chrono = "0.4"
uuid = { version = "1.8.0", features = ["v4"] }
governor = { version = "0.8", features = ["dashmap"] }
jsonwebtoken = "8.3.0"
[target.'cfg(target_os = "linux")'.dependencies]
nvml-wrapper = { version = "0.10.0", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
core-graphics = { version = "0.24.0", optional = true }
metal = { version = "0.27.0", features = ["private"], optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
dxgi = { version = "0.3.0-alpha4", optional = true }
winapi = { version = "0.3", features = ["dxgi", "d3dcommon"], optional = true }
windows = { version = "0.48", features = ["Win32_Graphics_Dxgi"] }
[features]
default = ["metal"]
metal = ["dep:core-graphics", "dep:metal"]
windows = ["dep:dxgi", "winapi"]