forked from lambdalisue/rs-metrics-process
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
47 lines (38 loc) · 1.24 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
[package]
name = "metrics-process"
version = "1.2.1"
authors = ["Alisue <[email protected]>"]
edition = "2018"
description = "Cross-platform Prometheus style process metrics collector of metrics crate"
repository = "https://github.com/lambdalisue/rs-metrics-process"
license = "MIT"
readme = "README.md"
keywords = [ "cross-platform", "metrics", "prometheus", "open-metrics", "process", ]
[package.metadata.docs.rs]
all-features = true
[features]
# Enable a `dummy` collector that always return an empty `Metrics` for non supported platforms
dummy = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
metrics = "0.22.0"
[target.'cfg(target_os = "macos")'.dependencies]
libproc = "0.14.2"
mach2 = "0.4"
once_cell = "1.13.1"
rlimit = "0.10.0"
[target.'cfg(target_os = "linux")'.dependencies]
once_cell = "1.13.1"
procfs = { version = "0.16.0", default-features = false }
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.54.0"
features = [
"Win32_Foundation",
"Win32_System_Threading",
"Win32_System_ProcessStatus",
]
[dev-dependencies]
assert_matches = "1.5.0"
axum = "0.7.2"
metrics-exporter-prometheus = "0.14.0"
tokio = { version = "1.20.1", features = ["full"] }