blob: c6944e1c836a4c45a5cc68931916c751756a0fff [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 = [
"//garnet/lib/rust/cm_fidl_validator",
"//sdk/fidl/fuchsia.data:fuchsia.data-rustc",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc",
"//third_party/rust_crates:failure",
]
}
test_package("cm_rust_tests") {
deps = [
":cm_rust",
]
tests = [
{
name = "cm_rust_lib_test"
dest = "cm_rust_tests"
environments = basic_envs
},
]
}