-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
25 lines (22 loc) · 828 Bytes
/
Cargo.toml
File metadata and controls
25 lines (22 loc) · 828 Bytes
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
[package]
name = "cpuinfo"
description = "A utility to identify a cpu and features present. It uses the 'CPUID' instruction and on platforms that support it, feature MSRs."
version = "0.2.2"
authors = ["Joshua Job <jjob@scalecomputing.com>"]
edition = "2018"
license = "MIT"
repository = "https://github.com/ScaleComputing/cpuinfo.git"
[dependencies]
clap = { version = "4.0", features = ["derive"] }
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.8"
enum_dispatch = "0.3.8"
serde_json = "1.0.117"
core_affinity = "^0.8.1"
[target.'cfg(target_os = "linux")'.dependencies]
kvm-ioctls = { version = "0.21", optional = true }
kvm-bindings = { version = "0.11", features = ["fam-wrappers"], optional = true }
[features]
default = ["use_msr", "kvm"]
use_msr = []
kvm = [ "dep:kvm-ioctls", "dep:kvm-bindings" ]