1
1
# rules_rust crate_universe file format 1
2
- # config hash d555ad6fce4572c24cb874f784ca32c0b4c5c6b6655c759f6b1381c0ef72667a
2
+ # config hash 6194c33fc29701bfce95fa6d31095bf1268a7ae6aab060692153d2e9fcd34373
3
3
4
4
load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository")
5
5
6
6
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
7
7
8
8
def pinned_rust_install():
9
9
http_archive(
10
- name = "crate_universe_uses_sys_crate_rust_deps__bzip2__0_3_3 ",
10
+ name = "rust_deps__bzip2__0_3_3 ",
11
11
# TODO: Allow configuring where rust_library comes from
12
12
build_file_content = """# buildifier: disable=load
13
13
load(
@@ -35,8 +35,8 @@ rust_library(
35
35
name = "bzip2",
36
36
crate_type = "lib",
37
37
deps = [
38
- "@crate_universe_uses_sys_crate_rust_deps__bzip2_sys__0_1_10_1_0_8 //:bzip2_sys",
39
- "@crate_universe_uses_sys_crate_rust_deps__libc__0_2_76 //:libc",
38
+ "@rust_deps__bzip2_sys__0_1_10_1_0_8 //:bzip2_sys",
39
+ "@rust_deps__libc__0_2_76 //:libc",
40
40
],
41
41
srcs = glob(["**/*.rs"]),
42
42
crate_root = "src/lib.rs",
@@ -78,7 +78,7 @@ rust_library(
78
78
)
79
79
80
80
http_archive(
81
- name = "crate_universe_uses_sys_crate_rust_deps__bzip2_sys__0_1_10_1_0_8 ",
81
+ name = "rust_deps__bzip2_sys__0_1_10_1_0_8 ",
82
82
# TODO: Allow configuring where rust_library comes from
83
83
build_file_content = """# buildifier: disable=load
84
84
load(
@@ -113,8 +113,8 @@ cargo_build_script(
113
113
crate_root = "build.rs",
114
114
edition = "2015",
115
115
deps = [
116
- "@crate_universe_uses_sys_crate_rust_deps__cc__1_0_66 //:cc",
117
- "@crate_universe_uses_sys_crate_rust_deps__pkg_config__0_3_19 //:pkg_config",
116
+ "@rust_deps__cc__1_0_67 //:cc",
117
+ "@rust_deps__pkg_config__0_3_19 //:pkg_config",
118
118
],
119
119
rustc_flags = [
120
120
"--cap-lints=allow",
@@ -151,7 +151,7 @@ rust_library(
151
151
crate_type = "lib",
152
152
deps = [
153
153
":bzip2_sys_build_script",
154
- "@crate_universe_uses_sys_crate_rust_deps__libc__0_2_76 //:libc",
154
+ "@rust_deps__libc__0_2_76 //:libc",
155
155
],
156
156
srcs = glob(["**/*.rs"]),
157
157
crate_root = "lib.rs",
@@ -192,7 +192,7 @@ rust_library(
192
192
)
193
193
194
194
http_archive(
195
- name = "crate_universe_uses_sys_crate_rust_deps__cc__1_0_66 ",
195
+ name = "rust_deps__cc__1_0_67 ",
196
196
# TODO: Allow configuring where rust_library comes from
197
197
build_file_content = """# buildifier: disable=load
198
198
load(
@@ -242,7 +242,7 @@ rust_binary(
242
242
"WORKSPACE.bazel",
243
243
"WORKSPACE",
244
244
]),
245
- version = "1.0.66 ",
245
+ version = "1.0.67 ",
246
246
tags = [
247
247
"cargo-raze",
248
248
"manual",
@@ -280,7 +280,7 @@ rust_library(
280
280
"WORKSPACE.bazel",
281
281
"WORKSPACE",
282
282
]),
283
- version = "1.0.66 ",
283
+ version = "1.0.67 ",
284
284
tags = [
285
285
"cargo-raze",
286
286
"manual",
@@ -298,14 +298,14 @@ rust_library(
298
298
# Unsupported target "cxxflags" with type "test" omitted
299
299
# Unsupported target "test" with type "test" omitted
300
300
""",
301
- sha256 = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48 ",
302
- strip_prefix = "cc-1.0.66 ",
301
+ sha256 = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd ",
302
+ strip_prefix = "cc-1.0.67 ",
303
303
type = "tar.gz",
304
- url = "https://crates.io/api/v1/crates/cc/1.0.66 /download",
304
+ url = "https://crates.io/api/v1/crates/cc/1.0.67 /download",
305
305
)
306
306
307
307
http_archive(
308
- name = "crate_universe_uses_sys_crate_rust_deps__libc__0_2_76 ",
308
+ name = "rust_deps__libc__0_2_76 ",
309
309
# TODO: Allow configuring where rust_library comes from
310
310
build_file_content = """# buildifier: disable=load
311
311
load(
@@ -420,7 +420,7 @@ rust_library(
420
420
)
421
421
422
422
http_archive(
423
- name = "crate_universe_uses_sys_crate_rust_deps__pkg_config__0_3_19 ",
423
+ name = "rust_deps__pkg_config__0_3_19 ",
424
424
# TODO: Allow configuring where rust_library comes from
425
425
build_file_content = """# buildifier: disable=load
426
426
load(
@@ -490,8 +490,8 @@ rust_library(
490
490
491
491
492
492
CRATE_TARGET_NAMES = {
493
- "bzip2": "@crate_universe_uses_sys_crate_rust_deps__bzip2__0_3_3 //:bzip2",
494
- "libc": "@crate_universe_uses_sys_crate_rust_deps__libc__0_2_76 //:libc",
493
+ "bzip2": "@rust_deps__bzip2__0_3_3 //:bzip2",
494
+ "libc": "@rust_deps__libc__0_2_76 //:libc",
495
495
}
496
496
497
497
def crate(crate_name):
@@ -520,25 +520,25 @@ def all_proc_macro_deps():
520
520
521
521
def crates_from(label):
522
522
mapping = {
523
- "@examples//crate_universe/uses_sys_crate :Cargo.toml": [crate("bzip2")],
523
+ "// :Cargo.toml": [crate("bzip2")],
524
524
}
525
525
return mapping[_absolutify(label)]
526
526
527
527
def dev_crates_from(label):
528
528
mapping = {
529
- "@examples//crate_universe/uses_sys_crate :Cargo.toml": [],
529
+ "// :Cargo.toml": [],
530
530
}
531
531
return mapping[_absolutify(label)]
532
532
533
533
def build_crates_from(label):
534
534
mapping = {
535
- "@examples//crate_universe/uses_sys_crate :Cargo.toml": [],
535
+ "// :Cargo.toml": [],
536
536
}
537
537
return mapping[_absolutify(label)]
538
538
539
539
def proc_macro_crates_from(label):
540
540
mapping = {
541
- "@examples//crate_universe/uses_sys_crate :Cargo.toml": [],
541
+ "// :Cargo.toml": [],
542
542
}
543
543
return mapping[_absolutify(label)]
544
544
0 commit comments