blob: da5f54aed0720268050e275d177a1c19ee1ed420 [file] [log] [blame]
# Copyright 2019 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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("fidl-fuchsia-pkg-rewrite-ext") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.pkg.rewrite:fuchsia.pkg.rewrite-rustc",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-url",
"//src/lib/zircon/rust:fuchsia-zircon-status",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:proptest",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:thiserror",
"//third_party/rust_crates:url",
]
test_deps = [
"//src/lib/fuchsia-async",
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:futures",
]
sources = [
"src/errors.rs",
"src/lib.rs",
"src/rule.rs",
"src/transaction.rs",
]
}
fuchsia_unittest_package("fidl-fuchsia-pkg-rewrite-ext-tests") {
manifest = "meta/fidl-fuchsia-pkg-rewrite-ext-tests.cmx"
deps = [ ":fidl-fuchsia-pkg-rewrite-ext_test" ]
test_specs = {
}
}
group("tests") {
testonly = true
deps = [
":fidl-fuchsia-pkg-rewrite-ext-tests",
":fidl-fuchsia-pkg-rewrite-ext_test($host_toolchain)",
]
}