blob: a7f9e35da50b7fba90255ec9d73809029d76fc65 [file] [log] [blame] [edit]
# 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("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.cml"
deps = [ ":selectors_test" ]
}
group("tests") {
testonly = true
deps = [
":selectors-test",
"bench",
]
}