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 5# @generated from third_party/rust/chromium_crates_io/BUILD.gn.hbs by 6# tools/crates/gnrt. 7# Do not edit! 8 9import("//build/rust/cargo_crate.gni") 10 11cargo_crate("lib") { 12 crate_name = "anstyle" 13 epoch = "1" 14 crate_type = "rlib" 15 crate_root = 16 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/lib.rs" 17 sources = [ 18 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/color.rs", 19 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/effect.rs", 20 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/lib.rs", 21 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/macros.rs", 22 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/reset.rs", 23 "//third_party/rust/chromium_crates_io/vendor/anstyle-1.0.6/src/style.rs", 24 ] 25 inputs = [] 26 27 build_native_rust_unit_tests = false 28 edition = "2021" 29 cargo_pkg_version = "1.0.6" 30 cargo_pkg_name = "anstyle" 31 cargo_pkg_description = "ANSI text styling" 32 library_configs -= [ "//build/config/compiler:chromium_code" ] 33 library_configs += [ "//build/config/compiler:no_chromium_code" ] 34 executable_configs -= [ "//build/config/compiler:chromium_code" ] 35 executable_configs += [ "//build/config/compiler:no_chromium_code" ] 36 proc_macro_configs -= [ "//build/config/compiler:chromium_code" ] 37 proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] 38 features = [ "std" ] 39 40 # Only for usage from third-party crates. Add the crate to 41 # //third_party/rust/chromium_crates_io/Cargo.toml to use 42 # it from first-party code. 43 visibility = [ "//third_party/rust/*" ] 44} 45