File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (137 lines) | stat: -rw-r--r-- 8,830 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# 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 = "regex_automata"
  epoch = "0.4"
  crate_type = "rlib"
  crate_root = "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/lib.rs"
  sources = [
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/accel.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/automaton.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/dense.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/determinize.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/minimize.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/onepass.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/regex.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/remapper.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/search.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/sparse.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/special.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/dfa/start.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/dfa.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/id.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/regex.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/hybrid/search.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/lib.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/macros.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/limited.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/literal.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/regex.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/reverse_inner.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/stopat.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/strategy.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/meta/wrappers.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/backtrack.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/builder.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/compiler.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/error.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/literal_trie.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/map.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/nfa.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/pikevm.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/nfa/thompson/range_trie.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/alphabet.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/captures.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/determinize/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/determinize/state.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/empty.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/escape.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/int.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/interpolate.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/iter.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/lazy.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/look.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/pool.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/aho_corasick.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/byteset.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/memmem.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/prefilter/teddy.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/primitives.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/search.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/sparse_set.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/start.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/syntax.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/unicode_data/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/unicode_data/perl_word.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/utf8.rs",
    "//third_party/rust/chromium_crates_io/vendor/regex-automata-v0_4/src/util/wire.rs",
  ]
  inputs = []

  build_native_rust_unit_tests = false
  edition = "2021"
  cargo_pkg_authors =
      "The Rust Project Developers, Andrew Gallant <jamslam@gmail.com>"
  cargo_pkg_name = "regex-automata"
  cargo_pkg_description =
      "Automata construction and matching using regular expressions."
  cargo_pkg_version = "0.4.9"

  allow_unsafe = false

  features = [ "dfa-search" ]

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

  #####################################################################
  # Tweaking which GN `config`s apply to this target.

  # Config changes that apply to all `//third_party/rust` crates.
  _configs_to_remove = [
    # We don't need code coverage data for any `chromium_crates_io` crates.
    "//build/config/coverage:default_coverage",

    # This is third-party code, so remove `chromium_code` config.  We are not
    # at the same time adding `//build/config/compiler:no_chromium_code`,
    # because 1) we don't want to pull how warnings are handled by that config
    # and 2) that config doesn't have any non-warnings-related stuff.
    "//build/config/compiler:chromium_code",
  ]
  _configs_to_add = []

  # Changing (if needed) which configs apply to this specific crate (based on
  # `extra_kv.configs_to_remove` and `extra_kv.configs_to_add` from
  # `gnrt_config.toml`).
  _configs_to_remove += []
  _configs_to_add += []

  # Applying config changes.
  library_configs -= _configs_to_remove
  library_configs += _configs_to_add
  executable_configs -= _configs_to_remove
  executable_configs += _configs_to_add
  proc_macro_configs -= _configs_to_remove
  proc_macro_configs += _configs_to_add
}