blob: 8782d7e0a9f2c9be24d918a1c62983c76d86d2f6 [file] [log] [blame]
# Copyright 2020 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/components.gni")
import("//build/fidl/fidl.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fidl-connector") {
name = "fidl_connector"
edition = "2018"
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-component",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:parking_lot",
]
test_deps = [
":test.fidl.connector-rustc",
"//src/lib/fdio",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
]
sources = [ "src/lib.rs" ]
}
fuchsia_unittest_package("fidl-connector-tests") {
deps = [ ":fidl-connector_test" ]
test_specs = {
}
}
fidl("test.fidl.connector") {
testonly = true
sources = [ "test.fidl" ]
}
group("tests") {
testonly = true
deps = [ ":fidl-connector-tests" ]
}