forked from Macchina-CLI/libmacchina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
73 lines (59 loc) · 1.99 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "libmacchina"
version = "6.3.5"
authors = ["grtcdr <[email protected]>", "Marvin Haschker <[email protected]>", "Uttarayan Mondal <[email protected]>"]
edition = "2021"
description = "A library that can fetch all sorts of system information."
keywords = ["system", "fetch", "library"]
repository = "https://github.com/Macchina-CLI/libmacchina"
readme = "README.md"
license = "MIT"
build = "build.rs"
[dependencies]
cfg-if = "1.0.0"
libc = "0.2.131"
home = "0.5.3"
[build-dependencies.vergen]
version = "7.3.2"
optional = true
default-features = false
features = ["build","cargo","git","rustc"]
[target.'cfg(target_os = "linux")'.dependencies]
dirs = "4.0"
walkdir = "2.3.2"
os-release = "0.1"
[target.'cfg(target_os = "netbsd")'.dependencies]
nix = { version = "0.24.1", default-features = false, features = ["hostname"] }
regex = "1.6.0"
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9.3"
core-graphics = "0.22.3"
core-video-sys = "0.1.4"
mach = "0.3.2"
[target.'cfg(target_family = "unix")'.dependencies]
num_cpus = "1.13.1"
[target.'cfg(target_os = "windows")'.dependencies]
local-ip-address = "0.4.4"
wmi = "0.11.0"
winreg = "0.10.1"
windows = { version = "0.39.0", features = [
"Win32_Foundation",
"Win32_System_Power",
"Win32_System_SystemInformation",
"Win32_System_WindowsProgramming"
]}
[target.'cfg(not(target_os = "windows"))'.dependencies]
if-addrs = "0.6.7"
[target.'cfg(any(target_os="freebsd", target_os = "linux"))'.dependencies]
sqlite = "0.27.0"
[target.'cfg(any(target_os="freebsd", target_os = "netbsd"))'.dependencies]
x11rb = "0.10.1"
[target.'cfg(any(target_os = "linux", target_os = "netbsd", target_os = "android"))'.dependencies]
itertools = "0.10.3"
[target.'cfg(not(any(target_os = "netbsd", target_os = "windows")))'.dependencies]
sysctl = "0.4.6"
[target.'cfg(any(target_os = "linux", target_os = "netbsd"))'.build-dependencies]
pkg-config = { version = "0.3.25", optional = true}
[features]
openwrt = []
version = ["vergen"]