| # 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/host.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| rustc_test("tests") { |
| name = "cm_fidl_analyzer_tests" |
| edition = "2021" |
| testonly = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component.decl:fuchsia.component.decl-rustc", |
| "//sdk/fidl/fuchsia.component.internal:fuchsia.component.internal-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia", |
| "//src/lib/fuchsia-async", |
| |
| # Depend on fuchsia_zircon_status crate instead of fuchsia_zircon so that this builds for host. |
| "//src/lib/zircon/rust:fuchsia-zircon-status", |
| "//src/sys/lib/cm_moniker", |
| "//src/sys/lib/cm_rust", |
| "//src/sys/lib/cm_rust/testing", |
| "//src/sys/lib/cm_types", |
| "//src/sys/lib/component_id_index", |
| "//src/sys/lib/moniker", |
| "//src/sys/lib/routing", |
| "//src/sys/lib/routing/testing:routing_test_helpers", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:serde", |
| "//third_party/rust_crates:thiserror", |
| "//third_party/rust_crates:url", |
| "//tools/lib/cm_fidl_analyzer", |
| ] |
| sources = [ |
| "src/availability.rs", |
| "src/lib.rs", |
| "src/rights.rs", |
| "src/routing.rs", |
| "src/storage.rs", |
| "src/storage_admin.rs", |
| ] |
| } |