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 = "serde_derive" 13 epoch = "1" 14 crate_type = "proc-macro" 15 crate_root = "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/lib.rs" 16 sources = [ 17 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/bound.rs", 18 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/de.rs", 19 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/dummy.rs", 20 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/fragment.rs", 21 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/ast.rs", 22 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/attr.rs", 23 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/case.rs", 24 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/check.rs", 25 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/ctxt.rs", 26 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/mod.rs", 27 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/receiver.rs", 28 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/respan.rs", 29 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/internals/symbol.rs", 30 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/lib.rs", 31 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/pretend.rs", 32 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/ser.rs", 33 "//third_party/rust/chromium_crates_io/vendor/serde_derive-1.0.197/src/this.rs", 34 ] 35 inputs = [] 36 37 build_native_rust_unit_tests = false 38 edition = "2015" 39 cargo_pkg_version = "1.0.197" 40 cargo_pkg_authors = "Erick Tryzelaar <[email protected]>, David Tolnay <[email protected]>" 41 cargo_pkg_name = "serde_derive" 42 cargo_pkg_description = 43 "Macros 1.1 implementation of #[derive(Serialize, Deserialize)]" 44 library_configs -= [ "//build/config/compiler:chromium_code" ] 45 library_configs += [ "//build/config/compiler:no_chromium_code" ] 46 executable_configs -= [ "//build/config/compiler:chromium_code" ] 47 executable_configs += [ "//build/config/compiler:no_chromium_code" ] 48 proc_macro_configs -= [ "//build/config/compiler:chromium_code" ] 49 proc_macro_configs += [ "//build/config/compiler:no_chromium_code" ] 50 deps = [ 51 "//third_party/rust/proc_macro2/v1:lib", 52 "//third_party/rust/quote/v1:lib", 53 "//third_party/rust/syn/v2:lib", 54 ] 55 56 # Only for usage from third-party crates. Add the crate to 57 # //third_party/rust/chromium_crates_io/Cargo.toml to use 58 # it from first-party code. 59 visibility = [ "//third_party/rust/*" ] 60} 61