forked from iopsystems/rezolus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
84 lines (73 loc) · 2.06 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
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "rezolus"
version = { workspace = true }
license = { workspace = true }
publish = false
edition = "2021"
description = "High resolution systems performance telemetry agent"
[workspace.package]
version = "3.18.2-alpha.8"
license = "MIT OR Apache-2.0"
[dependencies]
systeminfo = { workspace = true }
backtrace = "0.3.71"
chrono = { version = "0.4.38", features = ["serde"] }
clap = "4.5.4"
histogram = { version = "0.11.0", features = ["serde"] }
humantime = "2.1.0"
lazy_static = "1.4.0"
libc = "0.2.155"
linkme = "0.3.26"
memmap2 = "0.9.4"
metriken = "0.7.0"
metriken-exposition = { version = "0.8.0", features = ["serde", "msgpack"] }
num_cpus = "1.16.0"
once_cell = "1.19.0"
ouroboros = "0.18.3"
ringlog = "0.7.0"
serde = { version = "1.0.202", features = ["derive"] }
serde_repr = "0.1.19"
syscall-numbers = "3.1.1"
sysconf = "0.3.4"
tokio = { version = "1.37.0", features = ["full"] }
toml = "0.8.13"
walkdir = "2.5.0"
warp = { version = "0.3.7", features = ["compression"] }
clocksource = "0.8.1"
async-trait = "0.1.81"
parking_lot = "0.12.3"
[target.'cfg(target_os = "linux")'.dependencies]
libbpf-rs = { version = "0.24.2", optional = true }
libbpf-sys = { version = "1.4.3", optional = true }
perf-event2 = "0.7.2"
nvml-wrapper = "0.9.0"
[target.'cfg(target_os = "linux")'.build-dependencies]
libbpf-cargo = { version = "0.24.2", optional = true }
[features]
all = ["bpf"]
default = ["bpf"]
bpf = ["libbpf-cargo","libbpf-rs","libbpf-sys"]
[profile.bench]
debug = true
lto = true
codegen-units = 1
[profile.release]
debug = true
lto = true
codegen-units = 1
[workspace]
members = [
".",
"crates/*"
]
[workspace.dependencies]
systeminfo = { path = "crates/systeminfo" }
[package.metadata.generate-rpm]
auto_req = "builtin"
assets = [
{ source = "target/release/rezolus", dest = "/usr/bin/", mode = "755" },
{ source = "config.toml", dest = "/etc/rezolus/", mode = "644" },
{ source = "debian/rezolus.service", dest = "/usr/lib/systemd/system/", mode = "644" },
]
post_install_script = "rpm/systemd-start.sh"
pre_uninstall_script = "rpm/systemd-stop.sh"