| Crates.io | clasp-discovery |
| lib.rs | clasp-discovery |
| version | 3.1.0 |
| created_at | 2026-01-16 04:34:35.425273+00 |
| updated_at | 2026-01-25 07:23:06.297488+00 |
| description | Device discovery for CLASP (mDNS, UDP broadcast) |
| homepage | https://clasp.to |
| repository | https://github.com/lumencanvas/clasp |
| max_upload_size | |
| id | 2047900 |
| size | 136,161 |
Network discovery for CLASP (Creative Low-Latency Application Streaming Protocol) devices and servers.
use clasp_discovery::Discovery;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let discovery = Discovery::new().await?;
// Start discovering devices
discovery.start().await?;
// Wait for devices
tokio::time::sleep(std::time::Duration::from_secs(5)).await;
// Get discovered devices
for device in discovery.devices() {
println!("Found: {} at {:?}", device.name, device.endpoints);
}
Ok(())
}
use clasp_discovery::Discovery;
let discovery = Discovery::new().await?;
discovery.announce("My CLASP Server", 7330).await?;
CLASP uses the service type _clasp._tcp.local for mDNS discovery.
Visit clasp.to for full documentation.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Maintained by LumenCanvas | 2026