bf6ac877c2
- socktop, socktop_agent, socktop_connector -> 1.51.0. - socktop_wasm_test and zellij_socktop_plugin consume the in-repo connector via path deps so wasm-feature API drift is caught at PR time instead of after publish. Immediately proved out: the wasm requests module needed the new sampled_at_ms field, invisible to native builds. - zellij plugin gains the standalone [workspace] marker (it could not be cargo-checked in-tree at all before). NOTE: its lib.rs has pre-existing compile errors unrelated to the connector (static mut STATE conflicts with register_plugin!, missing BTreeMap import) — needs its own rework, out of scope here. - README: sampled_at_ms in the example payload. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
68 lines
2.5 KiB
TOML
68 lines
2.5 KiB
TOML
[package]
|
|
name = "socktop_agent"
|
|
version = "1.51.0"
|
|
authors = ["Jason Witty <jasonpwitty+socktop@proton.me>"]
|
|
description = "Socktop agent daemon. Serves host metrics over WebSocket."
|
|
edition = "2024"
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
homepage = "https://github.com/jasonwitty/socktop"
|
|
repository = "https://github.com/jasonwitty/socktop"
|
|
|
|
[dependencies]
|
|
# Tokio: minimal features instead of "full" to reduce binary size.
|
|
# rt-multi-thread (runtime), net (WebSocket), sync (Mutex/oneshot),
|
|
# macros (#[tokio::test]), process (async journalctl).
|
|
tokio = { version = "1", features = ["rt-multi-thread", "net", "sync", "macros", "process"] }
|
|
axum = { version = "0.7", features = ["ws", "macros"] }
|
|
sysinfo = { version = "0.37", features = ["network", "disk", "component"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
flate2 = { version = "1", default-features = false, features = ["rust_backend"] }
|
|
futures-util = "0.3.31"
|
|
tracing = { version = "0.1", optional = true }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
|
|
gfxinfo = { version = "0.1.2", optional = true }
|
|
once_cell = "1.19"
|
|
axum-server = { version = "0.7", features = ["tls-rustls"] }
|
|
rustls = { version = "0.23", features = ["aws-lc-rs"] }
|
|
rustls-pemfile = "2.1"
|
|
rcgen = "0.13"
|
|
anyhow = "1"
|
|
hostname = "0.3"
|
|
prost = { workspace = true }
|
|
time = { version = "0.3", default-features = false, features = ["formatting", "macros", "parsing" ] }
|
|
|
|
[features]
|
|
default = ["gpu"]
|
|
gpu = ["gfxinfo"]
|
|
logging = ["tracing", "tracing-subscriber"]
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.13"
|
|
tonic-build = { version = "0.12", default-features = false, optional = true }
|
|
protoc-bin-vendored = "3"
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2.0"
|
|
tempfile = "3.10"
|
|
tokio-tungstenite = "0.21"
|
|
|
|
[package.metadata.deb]
|
|
maintainer = "Jason Witty <jasonpwitty+socktop@proton.me>"
|
|
copyright = "2024, Jason Witty <jasonpwitty+socktop@proton.me>"
|
|
license-file = ["../LICENSE", "4"]
|
|
extended-description = """\
|
|
socktop_agent is the daemon component that runs on remote hosts to collect \
|
|
and serve system metrics over WebSocket. It gathers CPU, memory, disk, network, \
|
|
GPU, and process information that can be monitored remotely by the socktop TUI client."""
|
|
depends = "$auto"
|
|
section = "admin"
|
|
priority = "optional"
|
|
assets = [
|
|
["target/release/socktop_agent", "usr/bin/", "755"],
|
|
["../README.md", "usr/share/doc/socktop_agent/", "644"],
|
|
]
|
|
maintainer-scripts = "debian/"
|
|
systemd-units = { unit-name = "socktop-agent", unit-scripts = ".", enable = false }
|