chromium/third_party/rust/cxxbridge_macro/v1/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 = "cxxbridge_macro"
  epoch = "1"
  crate_type = "proc-macro"
  crate_root = "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/lib.rs"
  sources = [
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/clang.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/derive.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/expand.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/generics.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/lib.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/load.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/atom.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/attrs.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/cfg.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/check.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/derive.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/discriminant.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/doc.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/file.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/ident.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/impls.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/improper.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/instantiate.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/mangle.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/map.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/names.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/namespace.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/parse.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/pod.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/qualified.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/report.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/resolve.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/set.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/symbol.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/tokens.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/toposort.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/trivial.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/types.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/syntax/visit.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/tokens.rs",
    "//third_party/rust/chromium_crates_io/vendor/cxxbridge-macro-1.0.126/src/type_id.rs",
  ]
  inputs = []

  build_native_rust_unit_tests = false
  edition = "2021"
  cargo_pkg_version = "1.0.126"
  cargo_pkg_authors = "David Tolnay <[email protected]>"
  cargo_pkg_name = "cxxbridge-macro"
  cargo_pkg_description = "Implementation detail of the `cxx` crate."
  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/proc_macro2/v1:lib",
    "//third_party/rust/quote/v1:lib",
    "//third_party/rust/syn/v2:lib",
  ]

  # 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/*" ]
}