blob: 041c8883f983cc0a614a7c8ba6d6595d7e451631 [file] [log] [blame]
# Copyright 2019 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_binary.gni")
import("//src/sys/build/components.gni")
group("tests") {
testonly = true
deps = [ ":simple_element_tests" ]
}
rustc_binary("simple_element_bin") {
name = "simple_element"
with_unit_tests = true
edition = "2018"
deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/session/fidl:session_examples-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:thiserror",
]
sources = [ "src/main.rs" ]
}
fuchsia_package_with_single_component("simple_element") {
manifest = "meta/simple_element.cml"
deps = [ ":simple_element_bin" ]
}
fuchsia_unittest_package("simple_element_tests") {
manifest = "meta/simple_element_bin_test.cml"
deps = [ ":simple_element_bin_test" ]
}