| # 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 = "2021" |
| visibility = [ |
| "//src/security/scrutiny/*", |
| |
| # TODO(fxbug.dev/93569): Shared types should be exposed on a public |
| # interface instead of making this visibility exception. |
| "//src/developer/ffx/plugins/scrutiny/verify/*", |
| ] |
| |
| configs += [ |
| # TODO(fxbug.dev/92670): Needed by test. Remove when fixed. |
| "//build/config/rust:output_dir_sensitive", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc", |
| "//sdk/fidl/fuchsia.component.internal:fuchsia.component.internal-rustc", |
| "//sdk/fidl/fuchsia.io:fuchsia.io-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/assembly/update_package", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-url", |
| "//src/security/scrutiny/config", |
| "//src/security/scrutiny/framework", |
| "//src/security/scrutiny/utils", |
| "//src/sys/lib/cm_fidl_validator", |
| "//src/sys/lib/cm_rust", |
| "//src/sys/lib/cm_types", |
| "//src/sys/lib/component_id_index", |
| "//src/sys/lib/moniker", |
| "//src/sys/lib/routing", |
| "//src/sys/pkg/lib/far/rust:fuchsia-archive", |
| "//src/sys/pkg/lib/fuchsia-hash", |
| "//src/sys/pkg/lib/fuchsia-merkle", |
| "//src/sys/pkg/lib/update-package", |
| "//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:maplit", |
| "//third_party/rust_crates:once_cell", |
| "//third_party/rust_crates:regex", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:serde_json", |
| "//third_party/rust_crates:serde_json5", |
| "//third_party/rust_crates:sha2", |
| "//third_party/rust_crates:thiserror", |
| "//third_party/rust_crates:url", |
| "//third_party/rust_crates:uuid", |
| "//tools/lib/cm_fidl_analyzer", |
| "//tools/lib/cml", |
| ] |
| |
| non_rust_deps = [ "//src/lib/chunked-compression" ] |
| |
| test_deps = [ |
| "//src/lib/fuchsia", |
| "//src/lib/zerocopy", |
| "//src/security/scrutiny/testing", |
| "//src/sys/lib/cm_rust/testing", |
| "//src/sys/lib/fuchsia-zbi/abi", |
| "//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/package_extract.rs", |
| "src/core/controller/sysmgr.rs", |
| "src/core/controller/utils.rs", |
| "src/core/controller/zbi.rs", |
| "src/core/mod.rs", |
| "src/core/package/collector.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/devmgr_config/collection.rs", |
| "src/devmgr_config/collector.rs", |
| "src/devmgr_config/controller.rs", |
| "src/devmgr_config/mod.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/package_list.rs", |
| "src/search/controller/packages.rs", |
| "src/search/mod.rs", |
| "src/static_pkgs/collection.rs", |
| "src/static_pkgs/collector.rs", |
| "src/static_pkgs/controller.rs", |
| "src/static_pkgs/mod.rs", |
| "src/sys/mod.rs", |
| "src/toolkit/controller/blobfs.rs", |
| "src/toolkit/controller/far.rs", |
| "src/toolkit/controller/fvm.rs", |
| "src/toolkit/controller/mod.rs", |
| "src/toolkit/controller/zbi.rs", |
| "src/toolkit/controller/zbi_bootfs.rs", |
| "src/toolkit/controller/zbi_cmdline.rs", |
| "src/toolkit/mod.rs", |
| "src/verify/collection.rs", |
| "src/verify/collector/component_model.rs", |
| "src/verify/collector/mod.rs", |
| "src/verify/controller/build.rs", |
| "src/verify/controller/capability_routing.rs", |
| "src/verify/controller/component_resolvers.rs", |
| "src/verify/controller/mod.rs", |
| "src/verify/controller/route_sources.rs", |
| "src/verify/mod.rs", |
| ] |
| } |
| } |
| |
| group("tests") { |
| testonly = true |
| public_deps = [ ":plugins_test($host_toolchain)" ] |
| } |