blob: db62613318d1f97abc2fc55c41b4a6b605f5d533 [file] [log] [blame]
# Copyright 2021 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("keymaps") {
name = "keymaps"
with_unit_tests = true
version = "0.1.0"
edition = "2021"
deps = [
"//sdk/fidl/fuchsia.input:fuchsia.input_rust",
"//sdk/fidl/fuchsia.ui.input3:fuchsia.ui.input3_rust",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:tracing",
]
test_deps = [
"//third_party/rust_crates:assert_matches",
"//third_party/rust_crates:test-case",
]
sources = [
"src/config.rs",
"src/defs.rs",
"src/inverse_keymap.rs",
"src/lib.rs",
"src/usages.rs",
]
}
fuchsia_unittest_package("keymaps-tests") {
deps = [ ":keymaps_test" ]
}
group("tests") {
testonly = true
deps = [ ":keymaps-tests" ]
}