Skip to content

Commit a800a19

Browse files
committed
Migrate crate_universe consumers to @<repo>//<crate>
1 parent 93d63c2 commit a800a19

21 files changed

Lines changed: 556 additions & 276 deletions

File tree

crate_universe/tests/integration/cargo_bindeps/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
22

33
alias(
44
name = "hyperfine",
5-
actual = "@crate_index_cargo_bindeps//:hyperfine__hyperfine",
5+
actual = "@crate_index_cargo_bindeps//hyperfine__hyperfine",
66
tags = ["manual"],
77
)
88

crate_universe/tests/integration/cargo_local/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ build_test(
2222
name = "cargo_toml_env_var_test",
2323
targets = [
2424
# This target would fail to build if cargo_toml_env_vars didn't properly populate $CARGO_PKG_REPOSITORY.
25-
"@crate_index_cargo_local//:autometrics",
26-
"@crate_index_cargo_local//:aws-lc-rs",
25+
"@crate_index_cargo_local//autometrics",
26+
"@crate_index_cargo_local//aws-lc-rs",
2727
],
2828
)
2929

crate_universe/tests/integration/complicated_dependencies/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rust_binary(
1010
srcs = ["src/main.rs"],
1111
edition = "2021",
1212
visibility = ["//visibility:public"],
13-
deps = ["@complicated_dependencies//:openssl"],
13+
deps = ["@complicated_dependencies//openssl"],
1414
)
1515

1616
build_test(

crate_universe/tests/integration/local_path/crates_from_specs/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ load("@rules_rust//rust:defs.bzl", "rust_test")
33
rust_test(
44
name = "test",
55
srcs = ["test.rs"],
6-
deps = ["@crates_from_specs//:lazy_static"],
6+
deps = ["@crates_from_specs//lazy_static"],
77
)

crate_universe/tests/integration/override_target/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rust_library(
55
srcs = glob(["src/*.rs"]),
66
edition = "2018",
77
deps = [
8-
"@override_target//:foo",
8+
"@override_target//foo",
99
],
1010
)
1111

examples/cross_compile/tools/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ rust_binary(
55
srcs = ["infer_tester.rs"],
66
visibility = ["//visibility:public"],
77
deps = [
8-
"@crates_io//:infer",
8+
"@crates_io//infer",
99
"@rules_rust//rust/runfiles",
1010
],
1111
)

examples/cross_compile_llvm/BUILD.bazel

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ rust_binary(
1616
name = "hello_world_host",
1717
srcs = ["src/main.rs"],
1818
deps = [
19-
"@crates//:lz4-sys",
20-
"@crates//:mimalloc",
19+
"@crates//lz4-sys",
20+
"@crates//mimalloc",
2121
],
2222
)
2323

@@ -26,8 +26,8 @@ rust_binary(
2626
srcs = ["src/main.rs"],
2727
platform = "//build/platforms:linux-x86_64",
2828
deps = [
29-
"@crates//:lz4-sys",
30-
"@crates//:mimalloc",
29+
"@crates//lz4-sys",
30+
"@crates//mimalloc",
3131
],
3232
)
3333

@@ -36,8 +36,8 @@ rust_binary(
3636
srcs = ["src/main.rs"],
3737
platform = "//build/platforms:linux-aarch64",
3838
deps = [
39-
"@crates//:lz4-sys",
40-
"@crates//:mimalloc",
39+
"@crates//lz4-sys",
40+
"@crates//mimalloc",
4141
],
4242
)
4343

examples/cross_compile_nix/bazel/cargo/cargo-bazel-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/cross_compile_nix/rust_binary/BUILD.bazel

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ package(default_visibility = ["//visibility:public"])
99
# deps = [
1010
# "//cc_library",
1111
# "//rust_library",
12-
# "@crate_index//:anyhow",
13-
# "@crate_index//:tokio",
12+
# "@crate_index//anyhow",
13+
# "@crate_index//tokio",
1414
# ],
1515
# )
1616

@@ -21,8 +21,8 @@ package(default_visibility = ["//visibility:public"])
2121
# deps = [
2222
# "//cc_library",
2323
# "//rust_library",
24-
# "@crate_index//:anyhow",
25-
# "@crate_index//:tokio",
24+
# "@crate_index//anyhow",
25+
# "@crate_index//tokio",
2626
# ],
2727
# )
2828

@@ -33,8 +33,8 @@ rust_binary(
3333
deps = [
3434
"//cc_library",
3535
"//rust_library",
36-
"@crate_index//:anyhow",
37-
"@crate_index//:tokio",
36+
"@crate_index//anyhow",
37+
"@crate_index//tokio",
3838
],
3939
)
4040

@@ -45,8 +45,8 @@ rust_binary(
4545
deps = [
4646
"//cc_library",
4747
"//rust_library",
48-
"@crate_index//:anyhow",
49-
"@crate_index//:tokio",
48+
"@crate_index//anyhow",
49+
"@crate_index//tokio",
5050
],
5151
)
5252

@@ -57,7 +57,7 @@ rust_binary(
5757
deps = [
5858
"//cc_library",
5959
"//rust_library",
60-
"@crate_index//:anyhow",
60+
"@crate_index//anyhow",
6161
],
6262
)
6363

@@ -68,10 +68,10 @@ rust_binary(
6868
deps = [
6969
"//cc_library",
7070
"//rust_library",
71-
"@crate_index//:anyhow",
71+
"@crate_index//anyhow",
7272
# To be added once the `wasm32-wasi` version of `tokio` can `select()`
7373
# over different features.
74-
# "@crate_index//:tokio",
74+
# "@crate_index//tokio",
7575
],
7676
)
7777

@@ -82,8 +82,8 @@ rust_binary(
8282
# deps = [
8383
# "//cc_library",
8484
# "//rust_library",
85-
# "@crate_index//:anyhow",
86-
# "@crate_index//:tokio",
85+
# "@crate_index//anyhow",
86+
# "@crate_index//tokio",
8787
# ],
8888
# )
8989

@@ -94,8 +94,8 @@ rust_binary(
9494
# deps = [
9595
# "//cc_library",
9696
# "//rust_library",
97-
# "@crate_index//:anyhow",
98-
# "@crate_index//:tokio",
97+
# "@crate_index//anyhow",
98+
# "@crate_index//tokio",
9999
# ],
100100
# )
101101

@@ -106,8 +106,8 @@ rust_binary(
106106
deps = [
107107
"//cc_library",
108108
"//rust_library",
109-
"@crate_index//:anyhow",
110-
"@crate_index//:tokio",
109+
"@crate_index//anyhow",
110+
"@crate_index//tokio",
111111
],
112112
)
113113

@@ -118,7 +118,7 @@ rust_binary(
118118
deps = [
119119
"//cc_library",
120120
"//rust_library",
121-
"@crate_index//:anyhow",
122-
"@crate_index//:tokio",
121+
"@crate_index//anyhow",
122+
"@crate_index//tokio",
123123
],
124124
)

examples/hello_world/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rust_binary(
88
name = "hello_world_from_workspace_transient",
99
srcs = ["src/main.rs"],
1010
deps = [
11-
"@crates_in_workspace//:anyhow",
11+
"@crates_in_workspace//anyhow",
1212
],
1313
)
1414

@@ -24,7 +24,7 @@ rust_binary(
2424
name = "hello_world_without_workspace_transient",
2525
srcs = ["src/main.rs"],
2626
deps = [
27-
"@crates_without_workspace//:anyhow",
27+
"@crates_without_workspace//anyhow",
2828
],
2929
)
3030

0 commit comments

Comments
 (0)