blob: 295a946ad58f6af80d1e53ae27b7e3c99db8b8a6 [file] [log] [blame]
# Copyright 2024 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")
group("tests") {
testonly = true
deps = [
":sharder-test",
"tests/example_sharded_test:tests",
"tests/integration:tests",
]
}
rustc_binary("bin") {
edition = "2021"
name = "sharder"
with_unit_tests = true
configs -= [ "//build/config/rust/lints:allow_unused_results" ]
deps = [
"//sdk/fidl/fuchsia.test:fuchsia.test_rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-component",
"//src/lib/fuchsia-fs",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:itertools",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:tracing",
]
sources = [ "src/main.rs" ]
}
fuchsia_component("sharder") {
manifest = "meta/sharder.cml"
deps = [ ":bin" ]
}
fuchsia_unittest_package("sharder-test") {
deps = [ ":bin_test" ]
}