blob: fe0a5920f277fceeb68d80bc6cd132169c87226a [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/rust/rustc_library.gni")
import("//src/sys/build/components.gni")
rustc_library("selectors") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.diagnostics:fuchsia.diagnostics-rustc",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:regex",
"//third_party/rust_crates:regex-syntax",
"//third_party/rust_crates:tempfile",
"//third_party/rust_crates:thiserror",
]
sources = [
"src/lib.rs",
"src/selector_evaluator.rs",
"src/selectors.rs",
]
}
fuchsia_unittest_package("selectors-test") {
manifest = "meta/selectors-lib-test.cmx"
deps = [ ":selectors_test" ]
}
group("tests") {
testonly = true
deps = [ ":selectors-test" ]
}