fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
b594f90f
0.5.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", # Apache-2.0/MIT 28# ]) 29 30rust_library ( 31name = "indexmap" , 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"std" , 49], 50crate_root = "src/lib.rs" , 51data = select_with_or ({ 52"//conditions:default" : [ 53], 54}), 55edition = "2018" , 56proc_macro_deps = [ 57] + select_with_or ({ 58"//conditions:default" : [ 59], 60}), 61rustc_env = { 62}, 63rustc_env_files = select_with_or ({ 64"//conditions:default" : [ 65], 66}), 67rustc_flags = [ 68# In most cases, warnings in 3rd party crates are not interesting as 69# they're out of the control of consumers. The flag here silences 70# warnings. For more details see: 71# https://doc.rust-lang.org/rustc/lints/levels.html 72"--cap-lints=allow" , 73] + select_with_or ({ 74"//conditions:default" : [ 75], 76}), 77tags = [ 78"cargo-bazel" , 79"manual" , 80"noclippy" , 81"norustfmt" , 82], 83version = "1.8.1" , 84deps = [ 85] + select_with_or ({ 86"//conditions:default" : [ 87"@crate_universe_crate_index__hashbrown-0.11.2//:hashbrown" , 88"@crate_universe_crate_index__indexmap-1.8.1//:build_script_build" , 89], 90}), 91) 92 93cargo_build_script ( 94# See comment associated with alias. Do not change this name 95name = "indexmap_build_script" , 96srcs = glob ( 97include = [ 98"**/*.rs" , 99], 100exclude = [ 101], 102), 103aliases = selects . with_or ({ 104"//conditions:default" : { 105}, 106}), 107build_script_env = { 108}, 109compile_data = select_with_or ({ 110"//conditions:default" : [ 111], 112}), 113crate_features = [ 114"std" , 115], 116crate_name = "build_script_build" , 117crate_root = "build.rs" , 118data = glob ([ "**" ]) + select_with_or ({ 119"//conditions:default" : [ 120], 121}), 122edition = "2018" , 123proc_macro_deps = [ 124] + select_with_or ({ 125"//conditions:default" : [ 126], 127}), 128rustc_env = { 129}, 130rustc_env_files = select_with_or ({ 131"//conditions:default" : [ 132], 133}), 134rustc_flags = [ 135# In most cases, warnings in 3rd party crates are not interesting as 136# they're out of the control of consumers. The flag here silences 137# warnings. For more details see: 138# https://doc.rust-lang.org/rustc/lints/levels.html 139"--cap-lints=allow" , 140] + select_with_or ({ 141"//conditions:default" : [ 142], 143}), 144tags = [ 145"cargo-bazel" , 146"manual" , 147"noclippy" , 148"norustfmt" , 149], 150tools = select_with_or ({ 151"//conditions:default" : [ 152], 153}), 154version = "1.8.1" , 155visibility = [ "//visibility:private" ], 156deps = [ 157] + select_with_or ({ 158"//conditions:default" : [ 159"@crate_universe_crate_index__autocfg-1.1.0//:autocfg" , 160], 161}), 162) 163 164alias ( 165# Because `cargo_build_script` does some invisible target name mutating to 166# determine the package and crate name for a build script, the Bazel 167# target namename of any build script cannot be the Cargo canonical name 168# of `build_script_build` without losing out on having certain Cargo 169# environment variables set. 170name = "build_script_build" , 171actual = "indexmap_build_script" , 172tags = [ 173"manual" , 174], 175)