# Copyright 2023 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//build/config/rust.gni") import("//build/rust/rust_executable.gni") import("//build/rust/rust_static_library.gni") assert(local_libstd_supported) rust_static_library("test_local_std") { sources = [ "lib.rs" ] crate_root = "lib.rs" build_native_rust_unit_tests = true use_local_std = true } rust_executable("test_local_std_exe") { sources = [ "main.rs" ] crate_root = "main.rs" deps = [ ":test_local_std" ] use_local_std = true }