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 = "regex" 13 epoch = "1" 14 crate_type = "rlib" 15 crate_root = 16 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/lib.rs" 17 sources = [ 18 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/builders.rs", 19 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/bytes.rs", 20 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/error.rs", 21 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/find_byte.rs", 22 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/lib.rs", 23 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/pattern.rs", 24 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regex/bytes.rs", 25 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regex/mod.rs", 26 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regex/string.rs", 27 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regexset/bytes.rs", 28 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regexset/mod.rs", 29 "//third_party/rust/chromium_crates_io/vendor/regex-1.10.4/src/regexset/string.rs", 30 ] 31 inputs = [] 32 33 build_native_rust_unit_tests = false 34 edition = "2021" 35 cargo_pkg_version = "1.10.4" 36 cargo_pkg_authors = 37 "The Rust Project Developers, Andrew Gallant <[email protected]>" 38 cargo_pkg_name = "regex" 39 cargo_pkg_description = "An implementation of regular expressions for Rust. This implementation uses finite automata and guarantees linear time matching on all inputs." 40 library_configs -= [ "//build/config/compiler:chromium_code" ] 41 library_configs += [ "//build/config/compiler:no_chromium_code" ] 42 executable_configs -= [ "//build/config/compiler:chromium_code" ] 43 executable_configs += [ "//build/config/compiler:no_chromium_code" ] 44 proc_macro_configs -= [ "//build/config/compiler:chromium_code" ] 45 proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] 46 deps = [ 47 "//third_party/rust/aho_corasick/v1:lib", 48 "//third_party/rust/memchr/v2:lib", 49 "//third_party/rust/regex_automata/v0_4:lib", 50 "//third_party/rust/regex_syntax/v0_8:lib", 51 ] 52 features = [ 53 "perf", 54 "perf-backtrack", 55 "perf-cache", 56 "perf-dfa", 57 "perf-inline", 58 "perf-literal", 59 "perf-onepass", 60 "std", 61 "unicode", 62 "unicode-age", 63 "unicode-bool", 64 "unicode-case", 65 "unicode-gencat", 66 "unicode-perl", 67 "unicode-script", 68 "unicode-segment", 69 ] 70 testonly = true 71} 72