Refactor for additional socktop connector library

- socktop connector allows you to communicate with socktop agent directly from you code without needing to implement the agent API directly.
- will also be used for non tui implementation of "socktop collector" in the future.
- moved to rust 2024 to take advantage of some new features that helped with refactor.
- fixed everything that exploded with update.
- added rust docs for lib.
This commit is contained in:
2025-09-04 05:30:25 -07:00
parent 622767a605
commit e51054811c
25 changed files with 823 additions and 229 deletions
Generated
+20 -7
View File
@@ -1953,6 +1953,7 @@ dependencies = [
"aws-lc-rs",
"log",
"once_cell",
"ring",
"rustls-pki-types",
"rustls-webpki 0.103.4",
"subtle",
@@ -2168,20 +2169,14 @@ dependencies = [
"assert_cmd",
"crossterm 0.27.0",
"dirs-next",
"flate2",
"futures-util",
"prost",
"prost-build",
"protoc-bin-vendored",
"ratatui",
"rustls 0.23.31",
"rustls-pemfile",
"serde",
"serde_json",
"socktop_connector",
"sysinfo",
"tempfile",
"tokio",
"tokio-tungstenite 0.24.0",
"url",
]
@@ -2216,6 +2211,24 @@ dependencies = [
"tracing-subscriber",
]
[[package]]
name = "socktop_connector"
version = "0.1.0"
dependencies = [
"anyhow",
"flate2",
"futures-util",
"prost",
"prost-build",
"rustls 0.23.31",
"rustls-pemfile",
"serde",
"serde_json",
"tokio",
"tokio-tungstenite 0.24.0",
"url",
]
[[package]]
name = "stable_deref_trait"
version = "1.2.0"