2025-09-04 12:30:25 +00:00
|
|
|
[package]
|
|
|
|
|
name = "socktop_connector"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
edition = "2024"
|
|
|
|
|
license = "MIT"
|
|
|
|
|
description = "WebSocket connector library for socktop agent communication"
|
|
|
|
|
authors = ["Jason Witty <jasonpwitty+socktop@proton.me>"]
|
|
|
|
|
repository = "https://github.com/jasonwitty/socktop"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
keywords = ["monitoring", "websocket", "metrics", "system"]
|
2025-09-04 12:41:59 +00:00
|
|
|
categories = ["network-programming", "development-tools"]
|
2025-09-04 12:30:25 +00:00
|
|
|
documentation = "https://docs.rs/socktop_connector"
|
|
|
|
|
|
|
|
|
|
# docs.rs specific metadata
|
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
|
all-features = true
|
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
# WebSocket client
|
|
|
|
|
tokio-tungstenite = { workspace = true }
|
|
|
|
|
tokio = { workspace = true }
|
|
|
|
|
futures-util = { workspace = true }
|
|
|
|
|
url = { workspace = true }
|
|
|
|
|
|
|
|
|
|
# TLS support
|
|
|
|
|
rustls = { version = "0.23", features = ["ring"], optional = true }
|
|
|
|
|
rustls-pemfile = { version = "2.1", optional = true }
|
|
|
|
|
|
|
|
|
|
# Serialization
|
|
|
|
|
serde = { workspace = true }
|
|
|
|
|
serde_json = { workspace = true }
|
|
|
|
|
|
|
|
|
|
# Compression
|
|
|
|
|
flate2 = "1.0"
|
|
|
|
|
|
|
|
|
|
# Protobuf
|
|
|
|
|
prost = { workspace = true }
|
|
|
|
|
|
|
|
|
|
# Error handling
|
|
|
|
|
anyhow = { workspace = true }
|
|
|
|
|
|
|
|
|
|
[build-dependencies]
|
2025-09-04 12:48:02 +00:00
|
|
|
prost-build = "0.13"
|
|
|
|
|
protoc-bin-vendored = "3.0"
|
2025-09-04 12:30:25 +00:00
|
|
|
|
|
|
|
|
[features]
|
|
|
|
|
default = ["tls"]
|
|
|
|
|
tls = ["rustls", "rustls-pemfile"]
|