| David Tolnay | 5bde59d | 2020-02-09 18:59:12 -0800 | [diff] [blame^] | 1 | # To be generated by Facebook's `reindeer` tool once that is open source. |
| 2 | |
| 3 | rust_library( |
| 4 | name = "anyhow", |
| 5 | srcs = glob(["vendor/anyhow-1.0.26/src/**"]), |
| 6 | visibility = ["PUBLIC"], |
| 7 | features = ["std"], |
| 8 | ) |
| 9 | |
| 10 | rust_library( |
| 11 | name = "bitflags", |
| 12 | srcs = glob(["vendor/bitflags-1.2.1/src/**"]), |
| 13 | ) |
| 14 | |
| 15 | rust_library( |
| 16 | name = "cc", |
| 17 | srcs = glob(["vendor/cc-1.0.50/src/**"]), |
| 18 | visibility = ["PUBLIC"], |
| 19 | ) |
| 20 | |
| 21 | rust_library( |
| 22 | name = "clap", |
| 23 | srcs = glob(["vendor/clap-2.33.0/src/**"]), |
| 24 | edition = "2015", |
| 25 | deps = [ |
| 26 | ":bitflags", |
| 27 | ":textwrap", |
| 28 | ":unicode-width", |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | rust_library( |
| 33 | name = "codespan", |
| 34 | srcs = glob(["vendor/codespan-0.7.0/src/**"]), |
| 35 | visibility = ["PUBLIC"], |
| 36 | deps = [":unicode-segmentation"], |
| 37 | ) |
| 38 | |
| 39 | rust_library( |
| 40 | name = "codespan-reporting", |
| 41 | srcs = glob(["vendor/codespan-reporting-0.7.0/src/**"]), |
| 42 | visibility = ["PUBLIC"], |
| 43 | deps = [ |
| 44 | ":codespan", |
| 45 | ":termcolor", |
| 46 | ":unicode-width", |
| 47 | ], |
| 48 | ) |
| 49 | |
| 50 | rust_library( |
| 51 | name = "heck", |
| 52 | srcs = glob(["vendor/heck-0.3.1/src/**"]), |
| 53 | edition = "2015", |
| 54 | deps = [":unicode-segmentation"], |
| 55 | ) |
| 56 | |
| 57 | rust_library( |
| 58 | name = "lazy_static", |
| 59 | srcs = glob(["vendor/lazy_static-1.4.0/src/**"]), |
| 60 | ) |
| 61 | |
| 62 | rust_library( |
| 63 | name = "link-cplusplus", |
| 64 | srcs = glob(["vendor/link-cplusplus-1.0.1/src/**"]), |
| 65 | visibility = ["PUBLIC"], |
| 66 | ) |
| 67 | |
| 68 | rust_library( |
| 69 | name = "proc-macro-error", |
| 70 | srcs = glob(["vendor/proc-macro-error-0.4.9/src/**"]), |
| 71 | rustc_flags = ["--cfg=use_fallback"], |
| 72 | deps = [ |
| 73 | ":proc-macro-error-attr", |
| 74 | ":proc-macro2", |
| 75 | ":quote", |
| 76 | ":syn", |
| 77 | ], |
| 78 | ) |
| 79 | |
| 80 | rust_library( |
| 81 | name = "proc-macro-error-attr", |
| 82 | srcs = glob(["vendor/proc-macro-error-attr-0.4.9/src/**"]), |
| 83 | proc_macro = True, |
| 84 | deps = [ |
| 85 | ":proc-macro2", |
| 86 | ":quote", |
| 87 | ":rustversion", |
| 88 | ":syn", |
| 89 | ":syn-mid", |
| 90 | ], |
| 91 | ) |
| 92 | |
| 93 | rust_library( |
| 94 | name = "proc-macro2", |
| 95 | srcs = glob(["vendor/proc-macro2-1.0.8/src/**"]), |
| 96 | visibility = ["PUBLIC"], |
| 97 | features = [ |
| 98 | "proc-macro", |
| 99 | "span-locations", |
| 100 | ], |
| 101 | rustc_flags = [ |
| 102 | "--cfg=span_locations", |
| 103 | "--cfg=use_proc_macro", |
| 104 | "--cfg=wrap_proc_macro", |
| 105 | ], |
| 106 | deps = [":unicode-xid"], |
| 107 | ) |
| 108 | |
| 109 | rust_library( |
| 110 | name = "quote", |
| 111 | srcs = glob(["vendor/quote-1.0.2/src/**"]), |
| 112 | visibility = ["PUBLIC"], |
| 113 | features = ["proc-macro"], |
| 114 | deps = [":proc-macro2"], |
| 115 | ) |
| 116 | |
| 117 | rust_library( |
| 118 | name = "rustversion", |
| 119 | srcs = glob(["vendor/rustversion-1.0.2/src/**"]), |
| 120 | mapped_srcs = { |
| 121 | ":rustversion-buildscript-run": "vendor/rustversion-1.0.2/src/generated", |
| 122 | }, |
| 123 | proc_macro = True, |
| 124 | env = { |
| 125 | "OUT_DIR": "generated", |
| 126 | }, |
| 127 | deps = [ |
| 128 | ":proc-macro2", |
| 129 | ":quote", |
| 130 | ":syn", |
| 131 | ], |
| 132 | ) |
| 133 | |
| 134 | rust_binary( |
| 135 | name = "rustversion-buildscript", |
| 136 | srcs = glob(["vendor/rustversion-1.0.2/build/**"]), |
| 137 | crate_root = "vendor/rustversion-1.0.2/build/build.rs", |
| 138 | ) |
| 139 | |
| 140 | genrule( |
| 141 | name = "rustversion-buildscript-run", |
| 142 | cmd = "OUT_DIR=${OUT} $(exe :rustversion-buildscript)", |
| 143 | type = "build.rs", |
| 144 | out = ".", |
| 145 | ) |
| 146 | |
| 147 | rust_library( |
| 148 | name = "structopt", |
| 149 | srcs = glob(["vendor/structopt-0.3.9/src/**"]), |
| 150 | visibility = ["PUBLIC"], |
| 151 | deps = [ |
| 152 | ":clap", |
| 153 | ":lazy_static", |
| 154 | ":structopt-derive", |
| 155 | ], |
| 156 | ) |
| 157 | |
| 158 | rust_library( |
| 159 | name = "structopt-derive", |
| 160 | srcs = glob(["vendor/structopt-derive-0.4.2/src/**"]), |
| 161 | proc_macro = True, |
| 162 | deps = [ |
| 163 | ":heck", |
| 164 | ":proc-macro-error", |
| 165 | ":proc-macro2", |
| 166 | ":quote", |
| 167 | ":syn", |
| 168 | ], |
| 169 | ) |
| 170 | |
| 171 | rust_library( |
| 172 | name = "syn", |
| 173 | srcs = glob(["vendor/syn-1.0.14/src/**"]), |
| 174 | visibility = ["PUBLIC"], |
| 175 | features = [ |
| 176 | "clone-impls", |
| 177 | "derive", |
| 178 | "full", |
| 179 | "parsing", |
| 180 | "printing", |
| 181 | "proc-macro", |
| 182 | ], |
| 183 | deps = [ |
| 184 | ":proc-macro2", |
| 185 | ":quote", |
| 186 | ":unicode-xid", |
| 187 | ], |
| 188 | ) |
| 189 | |
| 190 | rust_library( |
| 191 | name = "syn-mid", |
| 192 | srcs = glob(["vendor/syn-mid-0.5.0/src/**"]), |
| 193 | deps = [ |
| 194 | ":proc-macro2", |
| 195 | ":quote", |
| 196 | ":syn", |
| 197 | ], |
| 198 | ) |
| 199 | |
| 200 | rust_library( |
| 201 | name = "termcolor", |
| 202 | srcs = glob(["vendor/termcolor-1.1.0/src/**"]), |
| 203 | ) |
| 204 | |
| 205 | rust_library( |
| 206 | name = "textwrap", |
| 207 | srcs = glob(["vendor/textwrap-0.11.0/src/**"]), |
| 208 | deps = [":unicode-width"], |
| 209 | ) |
| 210 | |
| 211 | rust_library( |
| 212 | name = "thiserror", |
| 213 | srcs = glob(["vendor/thiserror-1.0.11/src/**"]), |
| 214 | visibility = ["PUBLIC"], |
| 215 | deps = [":thiserror-impl"], |
| 216 | ) |
| 217 | |
| 218 | rust_library( |
| 219 | name = "thiserror-impl", |
| 220 | srcs = glob(["vendor/thiserror-impl-1.0.11/src/**"]), |
| 221 | proc_macro = True, |
| 222 | deps = [ |
| 223 | ":proc-macro2", |
| 224 | ":quote", |
| 225 | ":syn", |
| 226 | ], |
| 227 | ) |
| 228 | |
| 229 | rust_library( |
| 230 | name = "unicode-segmentation", |
| 231 | srcs = glob(["vendor/unicode-segmentation-1.6.0/src/**"]), |
| 232 | edition = "2015", |
| 233 | ) |
| 234 | |
| 235 | rust_library( |
| 236 | name = "unicode-width", |
| 237 | srcs = glob(["vendor/unicode-width-0.1.7/src/**"]), |
| 238 | ) |
| 239 | |
| 240 | rust_library( |
| 241 | name = "unicode-xid", |
| 242 | srcs = glob(["vendor/unicode-xid-0.2.0/src/**"]), |
| 243 | ) |