-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
66 lines (55 loc) · 1.78 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
[package]
name = "metrics-process"
version = "2.4.0"
authors = ["Alisue <lambdalisue@gmail.com>"]
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]
default = ["metrics-rs"]
# Enable the metrics-rs collector integration.
metrics-rs = ["dep:metrics"]
# Enable a `dummy` collector that always return an empty `Metrics` for non supported platforms
dummy = []
# Use a Gauge on `process_cpu_seconds_total` metrics instead of Counter to represent f64 value.
# This is a previous behavior prior to version 2.0.0.
# See https://github.com/lambdalisue/rs-metrics-process/issues/44 for more details.
use-gauge-on-cpu-seconds-total = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
metrics = { version = "0.24.0", optional = true }
[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.17.0", default-features = false }
[target.'cfg(target_os = "freebsd")'.dependencies]
libc = "0.2.159"
[target.'cfg(target_os = "openbsd")'.dependencies]
libc = "0.2.159"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.58.0"
features = [
"Win32_Foundation",
"Win32_System_Threading",
"Win32_System_ProcessStatus",
]
[dev-dependencies]
assert_matches = "1.5.0"
axum = "0.8.1"
metrics-exporter-prometheus = "0.16.0"
tokio = { version = "1.20.1", features = ["full"] }