| # Copyright 2018 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/rust/rustc_library.gni") |
| |
| rustc_library("fuchsia-cobalt") { |
| name = "fuchsia_cobalt" |
| edition = "2021" |
| version = "0.1.0" |
| |
| with_unit_tests = true |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.cobalt:fuchsia.cobalt-rustc", |
| "//sdk/fidl/fuchsia.mem:fuchsia.mem-rustc", |
| "//sdk/fidl/fuchsia.metrics:fuchsia.metrics-rustc", |
| "//src/lib/fdio/rust:fdio", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/fuchsia-component", |
| "//src/lib/zircon/rust:fuchsia-zircon", |
| "//third_party/cobalt/src/lib/client/rust:cobalt-client", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:futures", |
| "//third_party/rust_crates:log", |
| "//third_party/rust_crates:thiserror", |
| ] |
| |
| sources = [ |
| "src/cobalt_event_builder.rs", |
| "src/connector.rs", |
| "src/lib.rs", |
| "src/metric_event_builder.rs", |
| "src/sender.rs", |
| ] |
| |
| # This library is deprecated, do not add new elements to this list. |
| visibility = [ |
| "//src/cobalt/bin/testing/mock_cobalt/*", |
| "//src/connectivity/bluetooth/lib/bt-a2dp/*", |
| "//src/connectivity/bluetooth/profiles/bt-a2dp/*", |
| "//src/connectivity/location/emergency/*", |
| "//src/connectivity/wlan/wlancfg/*", |
| "//src/connectivity/wlan/wlanstack/*", |
| "//src/lib/cobalt/*", |
| "//src/power/power-manager/*", |
| "//src/sys/pkg/bin/omaha-client/*", |
| "//src/sys/pkg/bin/pkg-cache/*", |
| "//src/sys/pkg/bin/pkg-resolver/*", |
| "//src/sys/pkg/bin/system-updater/*", |
| "//src/sys/time/httpsdate_time_source/*", |
| "//src/sys/time/timekeeper/*", |
| "//src/sys/time/timekeeper_integration/*", |
| "//vendor/google/bin/device_property/*", |
| "//vendor/google/bin/flash_ts/*", |
| "//vendor/google/bin/flash_ts/tests/*", |
| ] |
| } |