blob: df11a174949071c16260b9342919f2e31f25c358 [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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
rustc_library("fidl-fuchsia-update-installer-ext") {
version = "0.0.1"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc",
"//src/lib/diagnostics/inspect/rust",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-url",
"//src/sys/pkg/fidl/fuchsia.update.installer:fuchsia.update.installer-rustc",
"//src/sys/pkg/lib/event-queue",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:log",
"//third_party/rust_crates:pin-project",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:proptest-derive",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:thiserror",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:matches",
"//third_party/rust_crates:serde_json",
]
sources = [
"src/lib.rs",
"src/options.rs",
"src/state.rs",
]
}
unittest_package("fidl-fuchsia-update-installer-ext-tests") {
deps = [ ":fidl-fuchsia-update-installer-ext_test" ]
tests = [
{
name = "fidl_fuchsia_update_installer_ext_lib_test"
dest = "fidl-fuchsia-update-installer-ext-tests"
},
]
}
group("tests") {
testonly = true
public_deps = [ ":fidl-fuchsia-update-installer-ext-tests" ]
}