All checks were successful
Build and Release / build-and-release (push) Successful in 1m31s
Complete migration from systemctl subprocess calls to native D-Bus communication: **Removed systemctl commands:** - systemctl is-active (fallback) - use D-Bus cache from ListUnits - systemctl show --property=LoadState,ActiveState,SubState - use D-Bus cache - systemctl show --property=WorkingDirectory - use D-Bus Properties.Get - systemctl show --property=MemoryCurrent - use D-Bus Properties.Get - systemctl show nginx --property=ExecStart - use D-Bus Properties.Get **Implementation details:** - Added get_unit_property() helper for D-Bus property access - Made get_nginx_site_metrics() async to support D-Bus calls - Made get_nginx_sites_internal() async - Made discover_nginx_sites() async - Made get_nginx_config_from_systemd() async - Fixed RwLock guard Send issues by using scoped locks **Remaining external commands:** - smartctl (disk.rs) - No Rust alternative for SMART data - sudo du (systemd.rs) - Directory size measurement - nginx -T (systemd.rs) - Nginx config fallback - timeout hostname (nixos.rs) - Rare fallback only Version bump: 0.1.197 → 0.1.198
36 lines
866 B
TOML
36 lines
866 B
TOML
[package]
|
|
name = "cm-dashboard-agent"
|
|
version = "0.1.198"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
cm-dashboard-shared = { workspace = true }
|
|
tokio = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
clap = { workspace = true }
|
|
zmq = { workspace = true }
|
|
tracing = { workspace = true }
|
|
tracing-subscriber = { workspace = true }
|
|
lettre = { workspace = true }
|
|
gethostname = { workspace = true }
|
|
chrono-tz = "0.8"
|
|
toml = { workspace = true }
|
|
async-trait = "0.1"
|
|
reqwest = { version = "0.11", features = ["json", "blocking"] }
|
|
|
|
# Native system APIs
|
|
nix = { version = "0.29", features = ["fs"] }
|
|
rtnetlink = "0.14"
|
|
netlink-packet-route = "0.19"
|
|
futures = "0.3"
|
|
libc = "0.2"
|
|
|
|
# Docker API client
|
|
bollard = "0.17"
|
|
|
|
# D-Bus client for systemd
|
|
zbus = "4.0" |