blob: faf123841fdee7c2575486c375181f627e348553 [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/host.gni")
import("//build/rust/rustc_library.gni")
if (is_host) {
rustc_library("plugins") {
name = "scrutiny_plugins"
with_unit_tests = true
edition = "2018"
visibility = [ "//src/security/scrutiny/*" ]
deps = [
"//sdk/fidl/fuchsia.component.internal:fuchsia.component.internal-rustc",
"//sdk/fidl/fuchsia.io2:fuchsia.io2-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-url",
"//src/security/scrutiny/lib/framework",
"//src/security/scrutiny/lib/utils",
"//src/sys/lib/cm_fidl_validator",
"//src/sys/lib/cm_fidl_validator",
"//src/sys/lib/cm_rust",
"//src/sys/lib/cm_types",
"//src/sys/lib/routing",
"//src/sys/pkg/lib/far/rust:fuchsia-archive",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:base64",
"//third_party/rust_crates:bincode",
"//third_party/rust_crates:futures-executor",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:log",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:uuid",
"//tools/lib/cm_fidl_analyzer",
]
non_rust_deps = [ "//src/lib/chunked-compression" ]
test_deps = [
"//src/security/scrutiny/lib/testing",
"//third_party/rust_crates:tempfile",
]
sources = [
"src/core/collection.rs",
"src/core/controller/blob.rs",
"src/core/controller/component.rs",
"src/core/controller/mod.rs",
"src/core/controller/package.rs",
"src/core/controller/route.rs",
"src/core/controller/sysmgr.rs",
"src/core/controller/utils.rs",
"src/core/controller/zbi.rs",
"src/core/mod.rs",
"src/core/package/artifact.rs",
"src/core/package/collector.rs",
"src/core/package/getter.rs",
"src/core/package/mod.rs",
"src/core/package/reader.rs",
"src/core/package/test_utils.rs",
"src/core/util/jsons.rs",
"src/core/util/mod.rs",
"src/core/util/types.rs",
"src/engine/controller/collector.rs",
"src/engine/controller/controller.rs",
"src/engine/controller/health.rs",
"src/engine/controller/mod.rs",
"src/engine/controller/model.rs",
"src/engine/controller/plugin.rs",
"src/engine/mod.rs",
"src/lib.rs",
"src/search/controller/components.rs",
"src/search/controller/manifests.rs",
"src/search/controller/mod.rs",
"src/search/controller/packages.rs",
"src/search/controller/routes.rs",
"src/search/mod.rs",
"src/sys/mod.rs",
"src/toolkit/controller/blobfs.rs",
"src/toolkit/controller/fvm.rs",
"src/toolkit/controller/mod.rs",
"src/toolkit/controller/package.rs",
"src/toolkit/controller/zbi.rs",
"src/toolkit/mod.rs",
"src/verify/collection.rs",
"src/verify/collector/component_tree.rs",
"src/verify/collector/mod.rs",
"src/verify/controller/build.rs",
"src/verify/controller/capability_routing.rs",
"src/verify/controller/mod.rs",
"src/verify/mod.rs",
]
}
}
group("tests") {
testonly = true
public_deps = [ ":plugins_test($host_toolchain)" ]
}