feat: add discovery to core

This commit is contained in:
Tien Do Nam
2026-07-31 14:14:05 +02:00
parent f99c71e89d
commit a331c21c56
8 changed files with 1270 additions and 9 deletions
+2 -1
View File
@@ -43,11 +43,12 @@ x509-parser = { version = "0.18.1", features = ["verify"], optional = true }
[features]
default = []
crypto = ["ed25519-dalek", "rcgen", "rsa", "sha2", "tokio-util"]
discovery = ["http", "multicast"]
http = ["crypto", "form_urlencoded", "http-body-util", "hyper", "hyper-util", "pem", "percent-encoding", "reqwest", "rustls", "socket2", "tokio-rustls", "tokio-util", "x509-parser"]
multicast = ["if-addrs", "socket2", "tokio-util"]
webrtc-signaling = ["tokio-tungstenite"]
webrtc = ["crypto", "flate2", "dep:webrtc", "webrtc-signaling", "x509-parser"]
full = ["crypto", "http", "multicast", "webrtc"]
full = ["crypto", "discovery", "http", "multicast", "webrtc"]
# RSA key generation is bignum-heavy and takes ~10x longer unoptimized;
# keep the crypto crates optimized in dev so tests stay fast.