chromium/third_party/rust/clap_builder/v4/BUILD.gn

# 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.

# @generated from third_party/rust/chromium_crates_io/BUILD.gn.hbs by
# tools/crates/gnrt.
# Do not edit!

import("//build/rust/cargo_crate.gni")

cargo_crate("lib") {
  crate_name = "clap_builder"
  epoch = "4"
  crate_type = "rlib"
  crate_root = "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/lib.rs"
  sources = [
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/action.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/app_settings.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/arg.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/arg_group.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/arg_predicate.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/arg_settings.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/command.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/debug_asserts.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/ext.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/os_str.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/possible_value.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/range.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/resettable.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/str.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/styled_str.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/styling.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/tests.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/value_hint.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/builder/value_parser.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/derive.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/error/context.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/error/format.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/error/kind.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/error/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/lib.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/macros.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/mkeymap.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/fmt.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/help.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/help_template.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/textwrap/core.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/textwrap/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/textwrap/word_separators.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/textwrap/wrap_algorithms.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/output/usage.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/arg_matcher.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/features/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/features/suggestions.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/matches/arg_matches.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/matches/matched_arg.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/matches/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/matches/value_source.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/parser.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/parser/validator.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/any_value.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/color.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/flat_map.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/flat_set.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/graph.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/id.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/util/str_to_bool.rs",
  ]
  inputs = [ "//third_party/rust/chromium_crates_io/vendor/clap_builder-4.5.15/src/../README.md" ]

  build_native_rust_unit_tests = false
  edition = "2021"
  cargo_pkg_version = "4.5.15"
  cargo_pkg_name = "clap_builder"
  cargo_pkg_description = "A simple to use, efficient, and full-featured Command Line Argument Parser"
  library_configs -= [ "//build/config/compiler:chromium_code" ]
  library_configs += [ "//build/config/compiler:no_chromium_code" ]
  executable_configs -= [ "//build/config/compiler:chromium_code" ]
  executable_configs += [ "//build/config/compiler:no_chromium_code" ]
  proc_macro_configs -= [ "//build/config/compiler:chromium_code" ]
  proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ]
  deps = [
    "//third_party/rust/anstyle/v1:lib",
    "//third_party/rust/clap_lex/v0_7:lib",
    "//third_party/rust/strsim/v0_11:lib",
  ]
  features = [
    "error-context",
    "help",
    "std",
    "suggestions",
    "usage",
  ]

  # Only for usage from third-party crates. Add the crate to
  # //third_party/rust/chromium_crates_io/Cargo.toml to use
  # it from first-party code.
  visibility = [ "//third_party/rust/*" ]
}