1# Copyright 2023 The Chromium Authors 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("//build/config/rust.gni") 6import("//build/rust/rust_executable.gni") 7import("//build/rust/rust_static_library.gni") 8 9assert(local_libstd_supported) 10 11rust_static_library("test_local_std") { 12 sources = [ "lib.rs" ] 13 crate_root = "lib.rs" 14 build_native_rust_unit_tests = true 15 use_local_std = true 16} 17 18rust_executable("test_local_std_exe") { 19 sources = [ "main.rs" ] 20 crate_root = "main.rs" 21 deps = [ ":test_local_std" ] 22 use_local_std = true 23} 24