blob: c00852ac9d873d597c0ecdd21f2bfc3e3d59ffdc [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 = "2021"
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:anyhow",
]
test_deps = [
":test.fidl.connector_rust",
"//src/lib/fdio",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:futures",
]
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" ]
}