feat: add pmomdns mDNS service discovery library and build infrastructure #1

Merged
eric merged 1 commit from push-xvwxslvpzvsk into main 2026-11-12 07:17:05 +01:00
Owner

Introduce pmomdns, a unique mDNS service discovery mechanism for AirPlay and Chromecast using a shared ServiceDaemon with multicast and unicast fallback. Add the core library implementation, including DNS wire parsing, catalog management, and public API functions daemon() and browse(). Establish a comprehensive build kit with scripts for versioning, dependency checking, API snapshotting, and automated releases via Forgejo.

  • Add src/lib.rs exposing daemon() and browse() functions that manage a singleton ServiceDaemon and initiate multicast/unicast discovery threads.
  • Add src/catalog.rs implementing the Catalog struct to track service instances and resolve missing SRV, TXT, and A records.
  • Add src/error.rs defining PmomdnsError with Daemon and Thread variants for error handling.
  • Add src/unicast.rs providing socket management and a main loop to query services and emit resolved service events.
  • Add src/wire.rs implementing DNS packet parsing (parse_response, read_name) and construction (query).
  • Add unit tests in src/tests/ covering catalog logic, wire parsing, and live network behavior for AirPlay/Chromecast.
  • Add integration tests in tests/api.rs verifying the unique daemon pattern and browse error handling.
  • Add .crate-kit/ directory with Makefiles (crate.mk, dev-patch.mk, jj.mk) and scripts for build, release, dependency checking, and API snapshotting.
  • Add Cargo.toml defining the pmomdns crate with dependencies on mdns-sd, socket2, tracing, and thiserror.
  • Add .crate-kit/VERSION setting the initial version to 0.1.14.
  • Add README.md documenting the architecture, public API, constraints, and development instructions.
  • Add LICENSE.en containing the CeCILL FREE SOFTWARE LICENSE AGREEMENT.
  • Add .gitignore excluding target and .cargo/config.toml.
  • Add api/0.1.0.txt and api/0.1.0.json.gz capturing the public API snapshot.
  • Add .gitea/workflows/release.yaml for automated releases triggered by version tags.
Introduce `pmomdns`, a unique mDNS service discovery mechanism for AirPlay and Chromecast using a shared `ServiceDaemon` with multicast and unicast fallback. Add the core library implementation, including DNS wire parsing, catalog management, and public API functions `daemon()` and `browse()`. Establish a comprehensive build kit with scripts for versioning, dependency checking, API snapshotting, and automated releases via Forgejo. - Add `src/lib.rs` exposing `daemon()` and `browse()` functions that manage a singleton `ServiceDaemon` and initiate multicast/unicast discovery threads. - Add `src/catalog.rs` implementing the `Catalog` struct to track service instances and resolve missing SRV, TXT, and A records. - Add `src/error.rs` defining `PmomdnsError` with `Daemon` and `Thread` variants for error handling. - Add `src/unicast.rs` providing socket management and a main loop to query services and emit resolved service events. - Add `src/wire.rs` implementing DNS packet parsing (`parse_response`, `read_name`) and construction (`query`). - Add unit tests in `src/tests/` covering catalog logic, wire parsing, and live network behavior for AirPlay/Chromecast. - Add integration tests in `tests/api.rs` verifying the unique daemon pattern and browse error handling. - Add `.crate-kit/` directory with Makefiles (`crate.mk`, `dev-patch.mk`, `jj.mk`) and scripts for build, release, dependency checking, and API snapshotting. - Add `Cargo.toml` defining the `pmomdns` crate with dependencies on `mdns-sd`, `socket2`, `tracing`, and `thiserror`. - Add `.crate-kit/VERSION` setting the initial version to `0.1.14`. - Add `README.md` documenting the architecture, public API, constraints, and development instructions. - Add `LICENSE.en` containing the CeCILL FREE SOFTWARE LICENSE AGREEMENT. - Add `.gitignore` excluding `target` and `.cargo/config.toml`. - Add `api/0.1.0.txt` and `api/0.1.0.json.gz` capturing the public API snapshot. - Add `.gitea/workflows/release.yaml` for automated releases triggered by version tags.
feat: add pmomdns mDNS service discovery library and build infrastructure
All checks were successful
Release / release (push) Successful in 1m0s
c8a3037eea
Introduce `pmomdns`, a unique mDNS service discovery mechanism for AirPlay and Chromecast using a shared `ServiceDaemon` with multicast and unicast fallback. Add the core library implementation, including DNS wire parsing, catalog management, and public API functions `daemon()` and `browse()`. Establish a comprehensive build kit with scripts for versioning, dependency checking, API snapshotting, and automated releases via Forgejo.

- Add `src/lib.rs` exposing `daemon()` and `browse()` functions that manage a singleton `ServiceDaemon` and initiate multicast/unicast discovery threads.
- Add `src/catalog.rs` implementing the `Catalog` struct to track service instances and resolve missing SRV, TXT, and A records.
- Add `src/error.rs` defining `PmomdnsError` with `Daemon` and `Thread` variants for error handling.
- Add `src/unicast.rs` providing socket management and a main loop to query services and emit resolved service events.
- Add `src/wire.rs` implementing DNS packet parsing (`parse_response`, `read_name`) and construction (`query`).
- Add unit tests in `src/tests/` covering catalog logic, wire parsing, and live network behavior for AirPlay/Chromecast.
- Add integration tests in `tests/api.rs` verifying the unique daemon pattern and browse error handling.
- Add `.crate-kit/` directory with Makefiles (`crate.mk`, `dev-patch.mk`, `jj.mk`) and scripts for build, release, dependency checking, and API snapshotting.
- Add `Cargo.toml` defining the `pmomdns` crate with dependencies on `mdns-sd`, `socket2`, `tracing`, and `thiserror`.
- Add `.crate-kit/VERSION` setting the initial version to `0.1.14`.
- Add `README.md` documenting the architecture, public API, constraints, and development instructions.
- Add `LICENSE.en` containing the CeCILL FREE SOFTWARE LICENSE AGREEMENT.
- Add `.gitignore` excluding `target` and `.cargo/config.toml`.
- Add `api/0.1.0.txt` and `api/0.1.0.json.gz` capturing the public API snapshot.
- Add `.gitea/workflows/release.yaml` for automated releases triggered by version tags.
eric merged commit 1216240d32 into main 2026-11-12 07:17:05 +01:00
eric deleted branch push-xvwxslvpzvsk 2026-11-12 07:17:07 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pmo/pmomdns!1
No description provided.