|
1 | 1 | """
|
2 |
| -cargo-raze crate workspace functions |
| 2 | +@generated |
| 3 | +cargo-raze generated Bazel file. |
3 | 4 |
|
4 | 5 | DO NOT EDIT! Replaced on runs of cargo-raze
|
5 | 6 | """
|
6 |
| -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
7 |
| -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") |
8 | 7 |
|
9 |
| -def _new_http_archive(name, **kwargs): |
10 |
| - if not native.existing_rule(name): |
11 |
| - http_archive(name=name, **kwargs) |
12 |
| - |
13 |
| -def _new_git_repository(name, **kwargs): |
14 |
| - if not native.existing_rule(name): |
15 |
| - new_git_repository(name=name, **kwargs) |
| 8 | +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load |
| 9 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load |
| 10 | +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load |
16 | 11 |
|
17 | 12 | def raze_fetch_remote_crates():
|
18 |
| - |
19 |
| - _new_http_archive( |
| 13 | + """This function defines a collection of repos and should be called in a WORKSPACE file""" |
| 14 | + maybe( |
| 15 | + http_archive, |
20 | 16 | name = "raze__ahash__0_4_6",
|
21 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/ahash/ahash-0.4.6.crate", |
| 17 | + url = "https://crates.io/api/v1/crates/ahash/0.4.6/download", |
22 | 18 | type = "tar.gz",
|
23 | 19 | sha256 = "f6789e291be47ace86a60303502173d84af8327e3627ecf334356ee0f87a164c",
|
24 | 20 | strip_prefix = "ahash-0.4.6",
|
25 |
| - build_file = Label("//bazel/cargo/remote:ahash-0.4.6.BUILD"), |
| 21 | + build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.4.6.bazel"), |
26 | 22 | )
|
27 | 23 |
|
28 |
| - _new_http_archive( |
| 24 | + maybe( |
| 25 | + http_archive, |
29 | 26 | name = "raze__autocfg__1_0_1",
|
30 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/autocfg/autocfg-1.0.1.crate", |
| 27 | + url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", |
31 | 28 | type = "tar.gz",
|
32 | 29 | sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a",
|
33 | 30 | strip_prefix = "autocfg-1.0.1",
|
34 |
| - build_file = Label("//bazel/cargo/remote:autocfg-1.0.1.BUILD"), |
| 31 | + build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"), |
35 | 32 | )
|
36 | 33 |
|
37 |
| - _new_http_archive( |
| 34 | + maybe( |
| 35 | + http_archive, |
38 | 36 | name = "raze__cfg_if__0_1_10",
|
39 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/cfg-if/cfg-if-0.1.10.crate", |
| 37 | + url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", |
40 | 38 | type = "tar.gz",
|
41 | 39 | sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822",
|
42 | 40 | strip_prefix = "cfg-if-0.1.10",
|
43 |
| - build_file = Label("//bazel/cargo/remote:cfg-if-0.1.10.BUILD"), |
| 41 | + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-0.1.10.bazel"), |
44 | 42 | )
|
45 | 43 |
|
46 |
| - _new_http_archive( |
| 44 | + maybe( |
| 45 | + http_archive, |
47 | 46 | name = "raze__chrono__0_4_19",
|
48 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/chrono/chrono-0.4.19.crate", |
| 47 | + url = "https://crates.io/api/v1/crates/chrono/0.4.19/download", |
49 | 48 | type = "tar.gz",
|
50 | 49 | sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73",
|
51 | 50 | strip_prefix = "chrono-0.4.19",
|
52 |
| - build_file = Label("//bazel/cargo/remote:chrono-0.4.19.BUILD"), |
| 51 | + build_file = Label("//bazel/cargo/remote:BUILD.chrono-0.4.19.bazel"), |
53 | 52 | )
|
54 | 53 |
|
55 |
| - _new_http_archive( |
| 54 | + maybe( |
| 55 | + http_archive, |
56 | 56 | name = "raze__hashbrown__0_9_1",
|
57 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/hashbrown/hashbrown-0.9.1.crate", |
| 57 | + url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", |
58 | 58 | type = "tar.gz",
|
59 | 59 | sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04",
|
60 | 60 | strip_prefix = "hashbrown-0.9.1",
|
61 |
| - build_file = Label("//bazel/cargo/remote:hashbrown-0.9.1.BUILD"), |
| 61 | + build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), |
62 | 62 | )
|
63 | 63 |
|
64 |
| - _new_http_archive( |
| 64 | + maybe( |
| 65 | + http_archive, |
65 | 66 | name = "raze__libc__0_2_80",
|
66 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/libc/libc-0.2.80.crate", |
| 67 | + url = "https://crates.io/api/v1/crates/libc/0.2.80/download", |
67 | 68 | type = "tar.gz",
|
68 | 69 | sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614",
|
69 | 70 | strip_prefix = "libc-0.2.80",
|
70 |
| - build_file = Label("//bazel/cargo/remote:libc-0.2.80.BUILD"), |
| 71 | + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.80.bazel"), |
71 | 72 | )
|
72 | 73 |
|
73 |
| - _new_http_archive( |
| 74 | + maybe( |
| 75 | + http_archive, |
74 | 76 | name = "raze__log__0_4_11",
|
75 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/log/log-0.4.11.crate", |
| 77 | + url = "https://crates.io/api/v1/crates/log/0.4.11/download", |
76 | 78 | type = "tar.gz",
|
77 | 79 | sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b",
|
78 | 80 | strip_prefix = "log-0.4.11",
|
79 |
| - build_file = Label("//bazel/cargo/remote:log-0.4.11.BUILD"), |
| 81 | + build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.11.bazel"), |
80 | 82 | )
|
81 | 83 |
|
82 |
| - _new_http_archive( |
| 84 | + maybe( |
| 85 | + http_archive, |
83 | 86 | name = "raze__num_integer__0_1_44",
|
84 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-integer/num-integer-0.1.44.crate", |
| 87 | + url = "https://crates.io/api/v1/crates/num-integer/0.1.44/download", |
85 | 88 | type = "tar.gz",
|
86 | 89 | sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db",
|
87 | 90 | strip_prefix = "num-integer-0.1.44",
|
88 |
| - build_file = Label("//bazel/cargo/remote:num-integer-0.1.44.BUILD"), |
| 91 | + build_file = Label("//bazel/cargo/remote:BUILD.num-integer-0.1.44.bazel"), |
89 | 92 | )
|
90 | 93 |
|
91 |
| - _new_http_archive( |
| 94 | + maybe( |
| 95 | + http_archive, |
92 | 96 | name = "raze__num_traits__0_2_14",
|
93 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/num-traits/num-traits-0.2.14.crate", |
| 97 | + url = "https://crates.io/api/v1/crates/num-traits/0.2.14/download", |
94 | 98 | type = "tar.gz",
|
95 | 99 | sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290",
|
96 | 100 | strip_prefix = "num-traits-0.2.14",
|
97 |
| - build_file = Label("//bazel/cargo/remote:num-traits-0.2.14.BUILD"), |
| 101 | + build_file = Label("//bazel/cargo/remote:BUILD.num-traits-0.2.14.bazel"), |
98 | 102 | )
|
99 | 103 |
|
100 |
| - _new_http_archive( |
| 104 | + maybe( |
| 105 | + http_archive, |
101 | 106 | name = "raze__time__0_1_44",
|
102 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/time/time-0.1.44.crate", |
| 107 | + url = "https://crates.io/api/v1/crates/time/0.1.44/download", |
103 | 108 | type = "tar.gz",
|
104 | 109 | sha256 = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255",
|
105 | 110 | strip_prefix = "time-0.1.44",
|
106 |
| - build_file = Label("//bazel/cargo/remote:time-0.1.44.BUILD"), |
| 111 | + build_file = Label("//bazel/cargo/remote:BUILD.time-0.1.44.bazel"), |
107 | 112 | )
|
108 | 113 |
|
109 |
| - _new_http_archive( |
| 114 | + maybe( |
| 115 | + http_archive, |
110 | 116 | name = "raze__wasi__0_10_0_wasi_snapshot_preview1",
|
111 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/wasi/wasi-0.10.0+wasi-snapshot-preview1.crate", |
| 117 | + url = "https://crates.io/api/v1/crates/wasi/0.10.0+wasi-snapshot-preview1/download", |
112 | 118 | type = "tar.gz",
|
113 | 119 | sha256 = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f",
|
114 | 120 | strip_prefix = "wasi-0.10.0+wasi-snapshot-preview1",
|
115 |
| - build_file = Label("//bazel/cargo/remote:wasi-0.10.0+wasi-snapshot-preview1.BUILD"), |
| 121 | + build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.10.0+wasi-snapshot-preview1.bazel"), |
116 | 122 | )
|
117 | 123 |
|
118 |
| - _new_http_archive( |
| 124 | + maybe( |
| 125 | + http_archive, |
119 | 126 | name = "raze__winapi__0_3_9",
|
120 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi/winapi-0.3.9.crate", |
| 127 | + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", |
121 | 128 | type = "tar.gz",
|
122 | 129 | sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419",
|
123 | 130 | strip_prefix = "winapi-0.3.9",
|
124 |
| - build_file = Label("//bazel/cargo/remote:winapi-0.3.9.BUILD"), |
| 131 | + build_file = Label("//bazel/cargo/remote:BUILD.winapi-0.3.9.bazel"), |
125 | 132 | )
|
126 | 133 |
|
127 |
| - _new_http_archive( |
| 134 | + maybe( |
| 135 | + http_archive, |
128 | 136 | name = "raze__winapi_i686_pc_windows_gnu__0_4_0",
|
129 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-i686-pc-windows-gnu/winapi-i686-pc-windows-gnu-0.4.0.crate", |
| 137 | + url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", |
130 | 138 | type = "tar.gz",
|
131 | 139 | sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6",
|
132 | 140 | strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0",
|
133 |
| - build_file = Label("//bazel/cargo/remote:winapi-i686-pc-windows-gnu-0.4.0.BUILD"), |
| 141 | + build_file = Label("//bazel/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), |
134 | 142 | )
|
135 | 143 |
|
136 |
| - _new_http_archive( |
| 144 | + maybe( |
| 145 | + http_archive, |
137 | 146 | name = "raze__winapi_x86_64_pc_windows_gnu__0_4_0",
|
138 |
| - url = "https://crates-io.s3-us-west-1.amazonaws.com/crates/winapi-x86_64-pc-windows-gnu/winapi-x86_64-pc-windows-gnu-0.4.0.crate", |
| 147 | + url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", |
139 | 148 | type = "tar.gz",
|
140 | 149 | sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f",
|
141 | 150 | strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0",
|
142 |
| - build_file = Label("//bazel/cargo/remote:winapi-x86_64-pc-windows-gnu-0.4.0.BUILD"), |
| 151 | + build_file = Label("//bazel/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), |
143 | 152 | )
|
144 |
| - |
|
0 commit comments