blob: af85a2394e95f59b74e8a59de2d564e895176469 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/rust/rustc_library.gni")
assert(is_host, "mdns_discovery is for use with the host toolchain only")
rustc_library("lib") {
name = "mdns_discovery"
version = "0.1.0"
edition = "2021"
with_unit_tests = true
visibility = [
":*",
"////src/developer/ffx/lib/discovery:*",
"//src/developer/ffx/daemon/protocols/mdns:*",
]
deps = [
"//sdk/fidl/fuchsia.net:fuchsia.net_rust",
"//src/developer/ffx/fidl:fuchsia.developer.ffx_rust",
"//src/developer/ffx/lib/netext:lib",
"//src/developer/ffx/lib/target_errors:lib",
"//src/developer/ffx/lib/timeout:lib",
"//src/lib/fuchsia-async",
"//src/lib/mdns/rust:mdns",
"//src/lib/network/packet",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-channel",
"//third_party/rust_crates:async-lock",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:socket2",
"//third_party/rust_crates:tokio",
"//third_party/rust_crates:zerocopy",
]
sources = [ "src/lib.rs" ]
}
group("mdns_discovery") {
public_deps = [ ":lib" ]
}
group("tests") {
testonly = true
deps = [ ":lib_test" ]
}