blob: 1514a9f0c9a5cd9ba1b75ba5c71b7e3a9f748318 [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/fidl/fidl.gni")
import("//build/rust/rustc_library.gni")
import("//src/sys/build/components.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" ]
}