fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
d3197a65
0.6.0
1############################################################################### 2# @generated 3# This file is auto-generated by the cargo-bazel tool. 4# 5# DO NOT MODIFY: Local changes may be replaced in future executions. 6############################################################################### 7 8load ( 9"@bazel_skylib//lib:selects.bzl" , 10"selects" , 11) 12load ( 13"@rules_rust//cargo:defs.bzl" , 14"cargo_build_script" , 15) 16 17# buildifier: disable=bzl-visibility 18load ( "@rules_rust//crate_universe/private:selects.bzl" , "select_with_or" ) 19load ( 20"@rules_rust//rust:defs.bzl" , 21"rust_library" , 22) 23 24package ( default_visibility = [ "//visibility:public" ]) 25 26# licenses([ 27# "TODO", # MIT OR Apache-2.0 28# ]) 29 30rust_library ( 31name = "syn" , 32srcs = glob ( 33include = [ 34"**/*.rs" , 35], 36exclude = [ 37], 38), 39aliases = selects . with_or ({ 40"//conditions:default" : { 41}, 42}), 43compile_data = glob ([ "**" ]) + select_with_or ({ 44"//conditions:default" : [ 45], 46}), 47crate_features = [ 48"clone-impls" , 49"default" , 50"derive" , 51"full" , 52"parsing" , 53"printing" , 54"proc-macro" , 55"quote" , 56], 57crate_root = "src/lib.rs" , 58data = select_with_or ({ 59"//conditions:default" : [ 60], 61}), 62edition = "2018" , 63proc_macro_deps = [ 64] + select_with_or ({ 65"//conditions:default" : [ 66], 67}), 68rustc_env = { 69}, 70rustc_env_files = select_with_or ({ 71"//conditions:default" : [ 72], 73}), 74rustc_flags = [ 75# In most cases, warnings in 3rd party crates are not interesting as 76# they're out of the control of consumers. The flag here silences 77# warnings. For more details see: 78# https://doc.rust-lang.org/rustc/lints/levels.html 79"--cap-lints=allow" , 80], 81tags = [ 82"cargo-bazel" , 83"manual" , 84"noclippy" , 85"norustfmt" , 86], 87version = "1.0.96" , 88deps = [ 89] + select_with_or ({ 90"//conditions:default" : [ 91"@crate_universe_crate_index__proc-macro2-1.0.39//:proc_macro2" , 92"@crate_universe_crate_index__quote-1.0.18//:quote" , 93"@crate_universe_crate_index__syn-1.0.96//:build_script_build" , 94"@crate_universe_crate_index__unicode-ident-1.0.0//:unicode_ident" , 95], 96}), 97) 98 99cargo_build_script ( 100# See comment associated with alias. Do not change this name 101name = "syn_build_script" , 102srcs = glob ( 103include = [ 104"**/*.rs" , 105], 106exclude = [ 107], 108), 109aliases = selects . with_or ({ 110"//conditions:default" : { 111}, 112}), 113build_script_env = { 114}, 115compile_data = select_with_or ({ 116"//conditions:default" : [ 117], 118}), 119crate_features = [ 120"clone-impls" , 121"default" , 122"derive" , 123"full" , 124"parsing" , 125"printing" , 126"proc-macro" , 127"quote" , 128], 129crate_name = "build_script_build" , 130crate_root = "build.rs" , 131data = glob ([ "**" ]) + select_with_or ({ 132"//conditions:default" : [ 133], 134}), 135edition = "2018" , 136proc_macro_deps = [ 137] + select_with_or ({ 138"//conditions:default" : [ 139], 140}), 141rustc_env = { 142}, 143rustc_env_files = select_with_or ({ 144"//conditions:default" : [ 145], 146}), 147rustc_flags = [ 148# In most cases, warnings in 3rd party crates are not interesting as 149# they're out of the control of consumers. The flag here silences 150# warnings. For more details see: 151# https://doc.rust-lang.org/rustc/lints/levels.html 152"--cap-lints=allow" , 153], 154tags = [ 155"cargo-bazel" , 156"manual" , 157"noclippy" , 158"norustfmt" , 159], 160tools = select_with_or ({ 161"//conditions:default" : [ 162], 163}), 164version = "1.0.96" , 165visibility = [ "//visibility:private" ], 166deps = [ 167] + select_with_or ({ 168"//conditions:default" : [ 169], 170}), 171) 172 173alias ( 174# Because `cargo_build_script` does some invisible target name mutating to 175# determine the package and crate name for a build script, the Bazel 176# target namename of any build script cannot be the Cargo canonical name 177# of `build_script_build` without losing out on having certain Cargo 178# environment variables set. 179name = "build_script_build" , 180actual = "syn_build_script" , 181tags = [ 182"manual" , 183], 184)