https://github.com/tari/avahi-sys
Mirror of https://bitbucket.org/tari/avahi-sys
https://github.com/tari/avahi-sys
avahi bindings dns-sd mdns rust zeroconf
Last synced: 4 months ago
JSON representation
Mirror of https://bitbucket.org/tari/avahi-sys
- Host: GitHub
- URL: https://github.com/tari/avahi-sys
- Owner: tari
- Created: 2017-03-01T11:09:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-01-21T20:06:28.000Z (over 2 years ago)
- Last Synced: 2024-04-17T16:28:58.089Z (about 2 years ago)
- Topics: avahi, bindings, dns-sd, mdns, rust, zeroconf
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# avahi-sys
Rust bindings to [Avahi][avahi]'s libavahi-client for zero-configuration
networking with mDNS/DNS-SD.
For API documentation refer to http://www.avahi.org/doxygen/html/index.html
## Prerequisites
These bindings use [`bindgen`][bindgen] to parse the library's C headers, which
requires that Clang be available at build-time. Refer to the bindgen
documentation for more information.
The Avahi library headers must also be available in your C compiler's default
include search path. In most situations this should be a simple matter of
installing it with your system's package manager.
[avahi]: http://www.avahi.org/
[bindgen]: https://github.com/servo/rust-bindgen
## Internals
Because the Avahi API exposes some types that are not primitives but are part of
the C library, functions and types in the bindings are whitelisted where they
should be exposed. Others like `pollfd` or `timeval` are explicitly referenced
from `libc` so a common type can be used in API consumers rather than
translating to an internal instance of the C library types.