blob: b03b7bf2e53d0fbb64d8fa06200d89c0be3566f7 [file]
# 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/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
import("//build/testing/test_spec.gni")
group("analytics") {
public_deps = [ ":lib($host_toolchain)" ]
}
group("tests") {
testonly = true
deps = [
":lib($host_toolchain)",
":lib_test($host_toolchain)",
]
}
## BAZEL2GN SENTINEL - DO NOT EDIT BELOW THIS LINE ##
#
# ________ _________ ________ ________
# |\ ____\|\___ ___\\ __ \|\ __ \
# \ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \
# \ \_____ \ \ \ \ \ \ \\\ \ \ ____\
# \|____|\ \ \ \ \ \ \ \\\ \ \ \___|
# ____\_\ \ \ \__\ \ \_______\ \__\
# |\_________\ \|__| \|_______|\|__|
# \|_________|
#
#
# AUTO-GENERATED - DO NOT EDIT
#
# The targets below are auto-generated based on the targets defined in the
# BUILD.bazel file from the same directory. If you made changes to targets in
# Bazel, instead of editing this file manually, run:
#
# > fx bazel2gn
#
# Please do NOT edit this file directly. Instead, edit the BUILD.bazel file and
# rerun bazel2gn.
import("//build/tools/bazel2gn/bazel_migration.gni")
if (is_host) {
rustc_library("lib") {
sources = [
"src/analytics_client.rs",
"src/env_info.rs",
"src/ga4_event.rs",
"src/ga4_metrics_service.rs",
"src/lib.rs",
"src/metrics_state.rs",
"src/mock_https_client.rs",
"src/notice.rs",
]
crate_name = "analytics"
edition = "2024"
test_deps = [
"//src/lib/fuchsia-sync",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:url",
]
version = "0.1.0"
with_unit_tests = true
deps = [
"//src/lib/agents:lib",
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper",
"//third_party/rust_crates:cfg-if",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:home",
"//third_party/rust_crates:http-body-util",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:log",
"//third_party/rust_crates:nix",
"//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",
]
}
}