blob: 77db79319a0fac9f52c9aeb7e7991a139ed85dad [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_binary.gni")
fuchsia_component("rust_crasher") {
manifest = "meta/crasher.cml"
deps = [ ":crasher_exe" ]
}
fuchsia_unittest_component("rust_crasher_test") {
deps = [ ":crasher_exe_test" ]
}
rustc_binary("crasher_exe") {
name = "rust_crasher"
edition = "2021"
with_unit_tests = true
sources = [ "src/main.rs" ]
deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:argh",
]
# For the #[fuchsia::test] attribute.
test_deps = [ "//src/lib/fuchsia" ]
}
# Because the test package is declared in another file.
fuchsia_test("tests") {
package = "..:crasher_test"
component = ":rust_crasher_test"
environments = [] # don't run it on any bots
}