6 releases (3 breaking)
Uses new Rust 2024
0.4.2 | Mar 16, 2025 |
---|---|
0.4.1 |
|
0.3.2 | Mar 7, 2025 |
0.3.0 | Jan 30, 2025 |
0.1.1 | Jan 11, 2025 |
#846 in Network programming
665 downloads per month
175KB
4K
SLoC
Agnostic mDNS
Simple and lightweight mDNS client/server library for any async runtime.
Port HashiCorp's mdns to Rust.
Introduction
Simple and lightweight mDNS client/server library for any async runtime. mDNS or Multicast DNS can be used to discover services on the local network without the use of an authoritative DNS server. This enables peer-to-peer discovery. It is important to note that many networks restrict the use of multicasting, which prevents mDNS from functioning. Notably, multicast cannot be used in any sort of cloud, or shared infrastructure environment. However it works well in most office, home, or private infrastructure environments.
Installation
-
tokio
[dependencies] agnostic-mdns = { version = "0.4", features = ["tokio"] }
-
async-std
[dependencies] agnostic-mdns = { version = "0.4", features = ["async-std"] }
-
smol
[dependencies] agnostic-mdns = { version = "0.4", features = ["smol"] }
Examples
Please see examples.
Pedigree
- This mdns code is port and refactor based on HashiCorp's mdns implementation.
License
agnostic-mdns
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.
Dependencies
~10–40MB
~620K SLoC