blob: c81a4286c52802fc07a027460304aea9fce4ca82 [file] [log] [blame]
# Copyright 2021 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 = [
":unittests-pkg",
"tests",
]
}
rustc_binary("bin") {
name = "fuzz_registry"
visibility = [ ":*" ]
edition = "2021"
with_unit_tests = true
deps = [
"//sdk/rust/zx",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-component",
"//src/sys/fuzzing/fidl:fuchsia.fuzzer_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:url",
]
sources = [
"src/main.rs",
"src/registry.rs",
]
}
fuchsia_component("registry") {
component_name = "fuzz-registry"
visibility = [
":*",
"//src/sys/fuzzing:*",
"//src/sys/fuzzing/registry/tests:*",
"//src/sys/test_runners/fuzz/tests:*",
]
testonly = true
manifest = "meta/fuzz-registry.cml"
deps = [ ":bin" ]
}
fuchsia_component("unittests") {
visibility = [ ":*" ]
testonly = true
manifest = "meta/unittests.cml"
deps = [ ":bin_test" ]
}
fuchsia_test_package("unittests-pkg") {
package_name = "fuzz-registry-unittests"
test_components = [ ":unittests" ]
}