8 releases (4 breaking)

0.5.1 Sep 7, 2024
0.5.0 Dec 22, 2021
0.5.0-rc.1 Aug 7, 2020
0.4.1 Aug 7, 2020
0.1.0 Jun 19, 2017

#1046 in Network programming

Download history 2728/week @ 2024-07-29 2089/week @ 2024-08-05 2002/week @ 2024-08-12 2326/week @ 2024-08-19 2497/week @ 2024-08-26 2329/week @ 2024-09-02 2049/week @ 2024-09-09 1617/week @ 2024-09-16 1327/week @ 2024-09-23 2599/week @ 2024-09-30 2646/week @ 2024-10-07 2119/week @ 2024-10-14 2451/week @ 2024-10-21 3156/week @ 2024-10-28 2861/week @ 2024-11-04 3299/week @ 2024-11-11

11,804 downloads per month
Used in 5 crates (2 directly)

MIT license

120KB
3K SLoC

Rust CI crates.io MIT licensed

This library wraps C libraries implementing the dnssd:

Discover, publish, and resolve network services on a local area or wide area network.

It integrates into the asynchronous tokio framework.

The documentation is located at https://stbuehler.github.io/rustdocs/async-dnssd/async_dnssd/.

Documentation for released versions available at https://docs.rs/crate/async-dnssd/.


lib.rs:

Asynchronous wrapper for DNS-SD C libraries

Interesting entry points:

Also the following things might be interesting:

Porting from dnssd C API

C API functionality in this crate
DNSServiceAddRecord Registration::add_record, Register::add_record
DNSServiceBrowse browse
DNSServiceConstructFullName FullName::construct
DNSServiceCreateConnection connect
DNSServiceEnumerateDomains enumerate_domains
DNSServiceQueryRecord query_record
DNSServiceReconfirmRecord reconfirm_record
DNSServiceRegister register
DNSServiceRegisterRecord Connection::register_record
DNSServiceResolve resolve
DNSServiceUpdateRecord Record::update_record, RegisterRecord::update_record

The following functions are called automatically when needed:

The TXTRecord* "TXT Record Construction Functions" are not wrapped; TxtRecord provides a native rust implementation with similar functionality.

Dependencies

~3–11MB
~110K SLoC