Both ring and aws-lc-rs were enabled transitively (webpki-roots enables rustls default features), causing rustls to panic at runtime because it couldn't auto-detect which crypto provider to use. - Add rustls as direct dep with ring only, disable default features - Switch russh from aws-lc-rs (default) to ring crypto backend - Call ring::default_provider().install_default() at startup - Add macOS build fix: detect Homebrew OpenSSL path for netsnmp's libcrypto
42 lines
1.2 KiB
TOML
42 lines
1.2 KiB
TOML
[package]
|
|
name = "towerops-agent"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
netsnmp-sys = "0.1"
|
|
libc = "0.2"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync", "time", "net", "signal", "io-util", "process"] }
|
|
thiserror = "2"
|
|
tokio-tungstenite = { version = "0.28", features = ["rustls-tls-webpki-roots"] }
|
|
tokio-rustls = "0.26"
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
|
futures = "0.3"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
clap = { version = "4.5", features = ["derive", "env"] }
|
|
prost = "0.14"
|
|
prost-types = "0.14"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
russh = { version = "0.57", default-features = false, features = ["ring", "flate2", "rsa"] }
|
|
async-trait = "0.1"
|
|
home = "=0.5.12"
|
|
zeroize = { version = "1", features = ["derive"] }
|
|
anyhow = "1.0"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
|
|
sha2 = "0.10"
|
|
|
|
[dev-dependencies]
|
|
regex = "1"
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.14"
|
|
cc = "1.0"
|
|
chrono = "0.4"
|
|
|
|
[profile.release]
|
|
opt-level = "z"
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|