| # Copyright 2020 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_test.gni") | |
| import("//src/sys/build/components.gni") | |
| rustc_test("test") { | |
| name = "sample_rust_tests" | |
| edition = "2018" | |
| sources = [ "src/lib.rs" ] | |
| } | |
| fuchsia_component("sample-rust-tests") { | |
| testonly = true | |
| manifest = "meta/sample_rust_tests.cml" | |
| component_name = "sample_rust_tests" | |
| deps = [ ":test" ] | |
| } |