blob: a34f32134db5ee34d7d38870e757a63bd2b0f27c [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/rust/rustc_library.gni")
rustc_library("task-exceptions") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
]
test_deps = [
"//garnet/lib/rust/io_util",
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.process:fuchsia.process-rustc",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-runtime",
"//src/sys/lib/library_loader",
]
sources = [ "src/lib.rs" ]
}
fuchsia_component("task-exceptions-cmp") {
testonly = true
deps = [ ":task-exceptions_test" ]
component_name = "task-exceptions-tests"
manifest = "meta/task-exceptions-tests.cml"
}
fuchsia_test_package("task-exceptions-tests") {
test_components = [ ":task-exceptions-cmp" ]
deps = [ "//src/sys/component_manager/tests/crash_introspect:panic_on_start" ]
}
group("tests") {
testonly = true
deps = [ ":task-exceptions-tests" ]
}