• version-0.2.1 4bfa1f2e0b

    version-0.2.1
    All checks were successful
    Release / release (push) Successful in 1m15s
    Stable

    eric released this 2026-11-12 20:29:46 +01:00 | 1 commits to main since this release

    • Configurable Silent Rounds: Introduced silent_rounds parameter to control unicast service removal timeouts. Added set_silent_rounds and silent_rounds public API methods.

    • Unicast Lifecycle: Implemented shared subscription model where multiple subscribers of the same service type share a single multicast subscription, preventing redundant network traffic.

    • IPv4 Interface Filtering: Refined interface selection to filter for usable IPv4 addresses only. Added usable_v4 function to exclude loopback and link-local interfaces based on operational status and point-to-point attributes.

    • Configurable Multicast Groups: Updated unicast module to accept configurable multicast groups instead of hardcoded values.

    • Granular Error Variants: Replaced generic errors with specific PmomdnsError variants: DaemonCreation, InvalidServiceType, DaemonBusy, DaemonStopped, and Subscription.

    • SearchKind Enum: Introduced SearchKind (Multicast/Unicast) for precise error categorization in thread spawning.

    • Daemon Persistence: Refactored ServiceDaemon to be lazily initialized and persistent, moving logic to src/daemon.rs.

    • Subscription Model: Replaced browse() return type with Subscription, which shares events among subscribers and handles cleanup on drop.

    • IPv4 Limitations: Documented that the daemon performs unicast IPv4 searches only; IPv6-only devices are not found.

    • Service Removal Refinement: Improved catalog and merge logic to properly handle cache flushes, PTR records with TTL 0, and specific daemon/unicast interaction rules for service withdrawal.

    • Unicast Silence Protection: Refined admit logic in src/merge.rs to prevent unicast silence from removing services explicitly described by the daemon.

    • Mio Integration: Migrated unicast module from UdpSocket to mio for socket management, improving error handling and event loop integration.

    • Interface Management: Replaced raw socket management with explicit link management (Link struct) to track IP and response state.

    • Module Restructuring: Introduced internal modules registry, merge, and subscription for event merging, topic tracking, and subscription lifecycle management.

    • Catalog Data Structures: Updated Catalog to use BTreeMap for instances and services, improving key handling and making emitted public.

    • Wire Parsing: Enhanced src/wire.rs with Srv and A variants in Rdata, enforcing label constraints in read_name.

    • Test Coverage: Added comprehensive tests for catalog edge cases (truncated records, invalid pointers), wire parsing, and unicast lifecycle.

    • Proptest Integration: Added property-based testing via proptest and enabled async feature on flume.

    • API Tests: Simplified API tests by removing network dependencies and updating assertions to match new error types and return values.

    Downloads
  • version-0.1.0 c8a3037eea

    version-0.1.0
    All checks were successful
    Release / release (push) Successful in 1m0s
    Stable

    eric released this 2026-11-12 07:16:18 +01:00 | 12 commits to main since this release

    • Introduced pmomdns, a unique mDNS service discovery library designed for AirPlay and Chromecast.

    • Implemented a shared ServiceDaemon singleton pattern supporting both multicast and unicast fallback mechanisms.

    • Added public API functions:

      • daemon(): Manages the singleton ServiceDaemon.
      • browse(): Initiates multicast/unicast discovery threads.
    • Catalog Management (src/catalog.rs): Tracks service instances and resolves missing SRV, TXT, and A records.

    • Unicast Handling (src/unicast.rs): Provides socket management and a main loop to query services and emit resolved service events.

    • DNS Wire Parsing (src/wire.rs): Implements DNS packet parsing (parse_response, read_name) and construction (query).

    • Defined PmomdnsError with Daemon and Thread variants for robust error handling.

    • Established a comprehensive build kit (.crate-kit/) including Makefiles (crate.mk, dev-patch.mk, jj.mk) and scripts for:

      • Versioning
      • Dependency checking
      • API snapshotting
      • Automated releases via Forgejo
    • Configured automated release workflows (.gitea/workflows/release.yaml) triggered by version tags.

    • Added unit tests covering catalog logic, wire parsing, and live network behavior for AirPlay/Chromecast.

    • Added integration tests (tests/api.rs) verifying the unique daemon pattern and browse error handling.

    • Added README.md documenting architecture, public API, constraints, and development instructions.

    • Added LICENSE.en (CeCILL FREE SOFTWARE LICENSE AGREEMENT).

    • Captured public API snapshots (api/0.1.0.txt, api/0.1.0.json.gz).

    • Set initial version to 0.1.14.

    Downloads