chromium/third_party/rust/syn/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 = "syn"
  epoch = "1"
  crate_type = "rlib"
  crate_root =
      "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/lib.rs"
  sources = [
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/attr.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/await.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/bigint.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/buffer.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/custom_keyword.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/custom_punctuation.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/data.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/derive.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/discouraged.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/drops.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/export.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/expr.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/ext.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/file.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/clone.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/debug.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/eq.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/fold.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/hash.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/visit.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen/visit_mut.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/gen_helper.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/generics.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/group.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/ident.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/item.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/lib.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/lifetime.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/lit.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/lookahead.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/mac.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/macros.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/op.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/parse.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/parse_macro_input.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/parse_quote.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/pat.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/path.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/print.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/punctuated.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/reserved.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/sealed.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/span.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/spanned.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/stmt.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/thread.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/token.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/tt.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/ty.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/verbatim.rs",
    "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/src/whitespace.rs",
  ]
  inputs = []

  build_native_rust_unit_tests = false
  edition = "2018"
  cargo_pkg_version = "1.0.109"
  cargo_pkg_authors = "David Tolnay <[email protected]>"
  cargo_pkg_name = "syn"
  cargo_pkg_description = "Parser for Rust source code"
  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/unicode_ident/v1:lib",
  ]
  features = [
    "clone-impls",
    "derive",
    "extra-traits",
    "full",
    "parsing",
    "printing",
    "proc-macro",
    "quote",
    "visit",
    "visit-mut",
  ]
  build_root =
      "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/build.rs"
  build_sources =
      [ "//third_party/rust/chromium_crates_io/vendor/syn-1.0.109/build.rs" ]

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