Skip to content

Commit 878e947

Browse files
authored
Fix document for crate_universe (#3550)
It's `use_repo(crate, "crates")` for `bzlmod` There's no `crate_index` The example code is also using `crates` https://github.com/bazelbuild/rules_rust/blob/a44ac6e1bc66edcd4e45b9277eb51ff0981de742/examples/all_crate_deps/BUILD.bazel#L2
1 parent 4a1d1c2 commit 878e947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crate_universe/extensions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ they return will automatically update BUILD targets. In your BUILD files,
8181
you use these macros for a Rust library as shown below:
8282
8383
```python
84-
load("@crate_index//:defs.bzl", "aliases", "all_crate_deps")
84+
load("@crates//:defs.bzl", "aliases", "all_crate_deps")
8585
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test")
8686
8787
rust_library(

0 commit comments

Comments
 (0)