Files
socktop/socktop_agent/Cargo.toml
T

48 lines
1.7 KiB
TOML
Raw Normal View History

2025-08-08 01:03:35 -07:00
[package]
name = "socktop_agent"
version = "1.50.2"
2025-08-08 01:03:35 -07:00
authors = ["Jason Witty <jasonpwitty+socktop@proton.me>"]
description = "Socktop agent daemon. Serves host metrics over WebSocket."
edition = "2024"
2025-08-11 12:10:40 -07:00
license = "MIT"
readme = "README.md"
2025-08-08 01:03:35 -07:00
[dependencies]
# Tokio: Use minimal features instead of "full" to reduce binary size
# Only include: rt-multi-thread (async runtime), net (WebSocket), sync (Mutex/RwLock), macros (#[tokio::test])
# Excluded: io, fs, process, signal, time (not needed for this workload)
# Savings: ~200-300KB binary size, faster compile times
tokio = { version = "1", features = ["rt-multi-thread", "net", "sync", "macros"] }
2025-08-08 01:03:35 -07:00
axum = { version = "0.7", features = ["ws", "macros"] }
2025-08-11 20:47:21 -07:00
sysinfo = { version = "0.37", features = ["network", "disk", "component"] }
2025-08-08 01:03:35 -07:00
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 = "0.1.2"
2025-08-16 01:23:20 -07:00
once_cell = "1.19"
2025-11-17 15:09:53 -08:00
axum-server = { version = "0.7", features = ["tls-rustls"] }
rustls = { version = "0.23", features = ["aws-lc-rs"] }
2025-08-16 01:23:20 -07:00
rustls-pemfile = "2.1"
rcgen = "0.13"
2025-08-16 01:23:20 -07:00
anyhow = "1"
hostname = "0.3"
2025-08-19 23:24:36 -07:00
prost = { workspace = true }
time = { version = "0.3", default-features = false, features = ["formatting", "macros", "parsing" ] }
[features]
default = []
logging = ["tracing", "tracing-subscriber"]
2025-08-19 23:24:36 -07:00
[build-dependencies]
prost-build = "0.13"
tonic-build = { version = "0.12", default-features = false, optional = true }
protoc-bin-vendored = "3"
2025-08-16 01:23:20 -07:00
[dev-dependencies]
assert_cmd = "2.0"
2025-08-28 12:03:45 -07:00
tempfile = "3.10"
tokio-tungstenite = "0.21"