7 releases (4 breaking)

0.5.0 Dec 22, 2021
0.5.0-rc.1 Aug 7, 2020
0.4.1 Aug 7, 2020
0.4.0 Oct 28, 2018
0.1.0 Jun 19, 2017

#2079 in Network programming

Download history 1915/week @ 2023-12-18 1563/week @ 2023-12-25 2810/week @ 2024-01-01 5060/week @ 2024-01-08 5124/week @ 2024-01-15 8657/week @ 2024-01-22 6967/week @ 2024-01-29 6358/week @ 2024-02-05 5123/week @ 2024-02-12 3435/week @ 2024-02-19 4021/week @ 2024-02-26 2742/week @ 2024-03-04 3386/week @ 2024-03-11 3086/week @ 2024-03-18 3447/week @ 2024-03-25 2599/week @ 2024-04-01

12,563 downloads per month
Used in 4 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–14MB
~127K SLoC