• 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