async-dnssd 0.5.1

Asynchronous wrapper for DNS-SD C libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[tokio::main(flavor = "current_thread")]
async fn main() -> std::io::Result<()> {
	// Use `cargo run --example register`

	let (_registration, result) = async_dnssd::register("_ssh._tcp", 2022)?.await?;
	println!("Registered: {:?}", result);

	// wait until killed
	futures::future::pending::<()>().await;
	Ok(())
}