xref: /aosp_15_r20/external/cronet/third_party/rust/unicode_ident/v1/BUILD.gn (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 = "unicode_ident"
13  epoch = "1"
14  crate_type = "rlib"
15  crate_root = "//third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.12/src/lib.rs"
16  sources = [
17    "//third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.12/src/lib.rs",
18    "//third_party/rust/chromium_crates_io/vendor/unicode-ident-1.0.12/src/tables.rs",
19  ]
20  inputs = []
21
22  build_native_rust_unit_tests = false
23  edition = "2018"
24  cargo_pkg_version = "1.0.12"
25  cargo_pkg_authors = "David Tolnay <[email protected]>"
26  cargo_pkg_name = "unicode-ident"
27  cargo_pkg_description = "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31"
28  library_configs -= [ "//build/config/compiler:chromium_code" ]
29  library_configs += [ "//build/config/compiler:no_chromium_code" ]
30  executable_configs -= [ "//build/config/compiler:chromium_code" ]
31  executable_configs += [ "//build/config/compiler:no_chromium_code" ]
32  proc_macro_configs -= [ "//build/config/compiler:chromium_code" ]
33  proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ]
34
35  # Only for usage from third-party crates. Add the crate to
36  # //third_party/rust/chromium_crates_io/Cargo.toml to use
37  # it from first-party code.
38  visibility = [ "//third_party/rust/*" ]
39}
40