xref: /aosp_15_r20/external/cronet/third_party/rust/anyhow/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 = "anyhow"
13  epoch = "1"
14  crate_type = "rlib"
15  crate_root =
16      "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/lib.rs"
17  sources = [
18    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/backtrace.rs",
19    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/chain.rs",
20    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/context.rs",
21    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/ensure.rs",
22    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/error.rs",
23    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/fmt.rs",
24    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/kind.rs",
25    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/lib.rs",
26    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/macros.rs",
27    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/ptr.rs",
28    "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/src/wrapper.rs",
29  ]
30  inputs = []
31
32  build_native_rust_unit_tests = false
33  edition = "2018"
34  cargo_pkg_version = "1.0.82"
35  cargo_pkg_authors = "David Tolnay <[email protected]>"
36  cargo_pkg_name = "anyhow"
37  cargo_pkg_description =
38      "Flexible concrete Error type built on std::error::Error"
39  library_configs -= [ "//build/config/compiler:chromium_code" ]
40  library_configs += [ "//build/config/compiler:no_chromium_code" ]
41  executable_configs -= [ "//build/config/compiler:chromium_code" ]
42  executable_configs += [ "//build/config/compiler:no_chromium_code" ]
43  proc_macro_configs -= [ "//build/config/compiler:chromium_code" ]
44  proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ]
45  features = [ "std" ]
46  build_root =
47      "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/build.rs"
48  build_sources =
49      [ "//third_party/rust/chromium_crates_io/vendor/anyhow-1.0.82/build.rs" ]
50  testonly = true
51}
52