chromium/third_party/rust/memchr/v2/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 = "memchr"
  epoch = "2"
  crate_type = "rlib"
  crate_root =
      "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/lib.rs"
  sources = [
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/aarch64/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/aarch64/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/aarch64/neon/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/aarch64/neon/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/aarch64/neon/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/packedpair/default_rank.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/packedpair/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/rabinkarp.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/shiftor.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/all/twoway.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/generic/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/generic/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/generic/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/wasm32/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/wasm32/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/wasm32/simd128/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/wasm32/simd128/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/wasm32/simd128/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/avx2/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/avx2/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/avx2/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/sse2/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/sse2/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/arch/x86_64/sse2/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/cow.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/ext.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/lib.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/macros.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/memchr.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/memmem/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/memmem/searcher.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/memchr/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/memchr/naive.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/memchr/prop.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/packedpair.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/substring/mod.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/substring/naive.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/tests/substring/prop.rs",
    "//third_party/rust/chromium_crates_io/vendor/memchr-2.7.4/src/vector.rs",
  ]
  inputs = []

  build_native_rust_unit_tests = false
  edition = "2021"
  cargo_pkg_version = "2.7.4"
  cargo_pkg_authors = "Andrew Gallant <[email protected]>, bluss"
  cargo_pkg_name = "memchr"
  cargo_pkg_description = "Provides extremely fast (uses SIMD on x86_64, aarch64 and wasm32) routines for 1, 2 or 3 byte search and single substring search."
  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" ]
  features = [
    "alloc",
    "std",
  ]

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