diff --git a/Cargo.toml b/Cargo.toml index df297f1..fa33319 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,10 +11,10 @@ edition = "2018" [dependencies] byteorder = "1.5" -if-addrs = "0.11.0" -hostname = "0.3.1" +if-addrs = { version = "0.12.0", features = ["link-local"] } +hostname = "0.4.0" log = "0.4" -multimap = "0.9" +multimap = "0.10.0" rand = "0.8" futures-util = "0.3" thiserror = "1.0" @@ -25,10 +25,10 @@ socket2 = { version = "0.5", features = ["all"] } winapi = { version = "0.3", features = ["netioapi"] } [target.'cfg(not(windows))'.dependencies] -nix = { version = "0.27", features = ["net"] } +nix = { version = "0.28", features = ["net"] } [dev-dependencies] -env_logger = { version = "0.10", default-features = false, features = [ +env_logger = { version = "0.10.2", default-features = false, features = [ "color", "humantime", "auto-color", diff --git a/examples/zeroconf_test.py b/examples/zeroconf_test.py index 97f23aa..82e0019 100644 --- a/examples/zeroconf_test.py +++ b/examples/zeroconf_test.py @@ -1,4 +1,4 @@ -from zeroconf import ServiceBrowser, Zeroconf, IPVersion, ZeroconfServiceTypes +from zeroconf import ServiceBrowser, ServiceListener, Zeroconf, IPVersion, ZeroconfServiceTypes from time import sleep @@ -6,7 +6,7 @@ NAME = "libmdns Web Server" -class MyListener: +class MyListener(ServiceListener): def __init__(self): self.found = []