#mdns #zeroconf #dns-sd #agnostic #async-mdns

no-std agnostic-mdns

Simple and lightweight mDNS client/server library for any async runtime

6 releases (3 breaking)

Uses new Rust 2024

0.4.2 Mar 16, 2025
0.4.1 Mar 16, 2025
0.3.2 Mar 7, 2025
0.3.0 Jan 30, 2025
0.1.1 Jan 11, 2025

#846 in Network programming

Download history 223/week @ 2025-01-08 29/week @ 2025-01-15 276/week @ 2025-01-29 15/week @ 2025-02-05 4/week @ 2025-02-12 71/week @ 2025-02-26 222/week @ 2025-03-05 372/week @ 2025-03-12

665 downloads per month

MIT/Apache

175KB
4K SLoC

Agnostic mDNS

Simple and lightweight mDNS client/server library for any async runtime.

Port HashiCorp's mdns to Rust.

github LoC Build codecov

docs.rs crates.io crates.io license

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

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