-
version-0.2.1
StableAll checks were successfulRelease / release (push) Successful in 1m15sreleased this
2026-11-12 20:29:46 +01:00 | 1 commits to main since this release-
Configurable Silent Rounds: Introduced
silent_roundsparameter to control unicast service removal timeouts. Addedset_silent_roundsandsilent_roundspublic 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_v4function 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
PmomdnsErrorvariants:DaemonCreation,InvalidServiceType,DaemonBusy,DaemonStopped, andSubscription. -
SearchKind Enum: Introduced
SearchKind(Multicast/Unicast) for precise error categorization in thread spawning. -
Daemon Persistence: Refactored
ServiceDaemonto be lazily initialized and persistent, moving logic tosrc/daemon.rs. -
Subscription Model: Replaced
browse()return type withSubscription, 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
admitlogic insrc/merge.rsto prevent unicast silence from removing services explicitly described by the daemon. -
Mio Integration: Migrated unicast module from
UdpSockettomiofor socket management, improving error handling and event loop integration. -
Interface Management: Replaced raw socket management with explicit link management (
Linkstruct) to track IP and response state. -
Module Restructuring: Introduced internal modules
registry,merge, andsubscriptionfor event merging, topic tracking, and subscription lifecycle management. -
Catalog Data Structures: Updated
Catalogto useBTreeMapfor instances and services, improving key handling and makingemittedpublic. -
Wire Parsing: Enhanced
src/wire.rswithSrvandAvariants inRdata, enforcing label constraints inread_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
proptestand enabledasyncfeature onflume. -
API Tests: Simplified API tests by removing network dependencies and updating assertions to match new error types and return values.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-
-
version-0.1.0
StableAll checks were successfulRelease / release (push) Successful in 1m0sreleased 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
ServiceDaemonsingleton pattern supporting both multicast and unicast fallback mechanisms. -
Added public API functions:
daemon(): Manages the singletonServiceDaemon.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
PmomdnsErrorwithDaemonandThreadvariants 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.mddocumenting 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
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
-