blob: 9b1ac39f616ae1e6909cfb472ed92cc6edd44b40 [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("//build/test/test_package.gni")
import("//build/testing/environments.gni")
rustc_library("cm_rust") {
with_unit_tests = true
edition = "2018"
deps = [
"//sdk/fidl/fuchsia.data:fuchsia.data-rustc",
"//sdk/fidl/fuchsia.io2:fuchsia.io2-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//src/sys/lib/cm_fidl_validator",
"//src/sys/lib/cm_types",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:lazy_static",
"//third_party/rust_crates:maplit",
"//third_party/rust_crates:thiserror",
]
}
test_package("cm_rust_tests") {
deps = [ ":cm_rust_test" ]
tests = [
{
name = "cm_rust_lib_test"
dest = "cm_rust_tests"
environments = basic_envs
},
]
}
group("tests") {
testonly = true
deps = [ ":cm_rust_tests" ]
}