45 releases
0.11.5 | Sep 28, 2024 |
---|---|
0.11.3 | Aug 24, 2024 |
0.11.1 | May 14, 2024 |
0.10.5 | Mar 25, 2024 |
0.1.0 | Oct 17, 2021 |
#116 in Network programming
32,825 downloads per month
Used in 41 crates
(22 directly)
230KB
4.5K
SLoC
mdns-sd
This is a small implementation of mDNS (Multicast DNS) based service discovery in safe Rust, with a small set of dependencies. Some highlights:
- supports both the client (querier) and the server (responder) uses.
- supports macOS, Linux and Windows.
- supports IPv4 and IPv6.
- works with both sync and async code.
- no dependency on any async runtimes.
Approach
We are not using async/.await internally, instead we create a new thread to run a mDNS daemon.
The API interacts with the daemon via flume
channels that work easily with both sync and async code. For more details, please see the documentation.
Compatibility and Limitations
This implementation is based on the following RFCs:
This is still beta software. We focus on the common use cases at hand. And we tested with some existing common tools (e.g. Avahi
on Linux, dns-sd
on MacOS, and Bonjour
library on iOS) to verify the basic compatibility.
Currently this library has the following limitations:
- Only support multicast, no unicast send/recv.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Contributions are welcome! Please open an issue in GitHub if any questions.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the above license(s), shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~0.7–7.5MB
~52K SLoC