Closed ssnover closed 1 year ago
By the way, I'd recommend maybe pinning the Rust version used for clippy linting. In order for CI to pass I had to fix some warning level clippy lints that were introduced in the newest version.
Hey there - I've been looking into this PR a bit deeper and there are a couple issues I currently see with it:
SubType
is specific to Avahi. In Bonjour, you register subtypes by appending them to the end of the normal type in a comma-separated list (so in the test you've modified it would be _http._tcp,_printer
). Therefore, formatting to Avahi's specifications in ServiceType
, which is intended to be cross-platform, is not appropriate. This formatting should be done independently from the ServiceType
implementation.Bonjour reference: https://developer.apple.com/documentation/dnssd/1804733-dnsserviceregister?language=objc
I appreciate you may not have the hardware to implement the Bonjour side of this so I've started a branch to amend your changes. Once I am happy with it I will submit a PR to this branch and then we can merge into main. Thanks for your patience.
Superseded by #32
Resolves #30
Tested, here's a log snippet:
And from avahi-browse (snipped extraneous info):