Skip to content

Commit 1bc9414

Browse files
hofbiSynss
authored andcommitted
Fix all crate_universe workspace urls (bazelbuild#3457)
Change all `crate_universe.html` -> `crate_universe_workspace.html` to fix a few 404 in the docs.
1 parent 11d70bd commit 1bc9414

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crate_universe/extensions.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Crate Universe is a set of Bazel rule for generating Rust targets using Cargo.
44
55
This doc describes using crate_universe with bzlmod.
66
7-
If you're using a WORKSPACE file, please see [the WORKSPACE equivalent of this doc](crate_universe.html).
7+
If you're using a WORKSPACE file, please see [the WORKSPACE equivalent of this doc](crate_universe_workspace.html).
88
99
There are some examples of using crate_universe with bzlmod in the [example folder](https://github.com/bazelbuild/rules_rust/examples/bzlmod).
1010
@@ -74,7 +74,7 @@ will not be able to pull from your private registry.
7474
7575
The generated crates_repository contains helper macros which make collecting dependencies for Bazel targets simpler.
7676
Notably, the all_crate_deps and aliases macros (
77-
see [Dependencies API](https://bazelbuild.github.io/rules_rust/crate_universe.html#dependencies-api)) commonly allow the
77+
see [Dependencies API](https://bazelbuild.github.io/rules_rust/crate_universe_workspace.html#dependencies-api)) commonly allow the
7878
Cargo.toml files to be the single source of truth for dependencies.
7979
Since these macros come from the generated repository, the dependencies and alias definitions
8080
they return will automatically update BUILD targets. In your BUILD files,
@@ -137,7 +137,7 @@ CARGO_BAZEL_REPIN=1 bazel sync --only=crates
137137
138138
This will result in all dependencies being updated for a project. The `CARGO_BAZEL_REPIN`
139139
environment variable can also be used to customize how dependencies are updated.
140-
For more details about repin, [please refer to the documentation](https://bazelbuild.github.io/rules_rust/crate_universe.html#crates_vendor).
140+
For more details about repin, [please refer to the documentation](https://bazelbuild.github.io/rules_rust/crate_universe_workspace.html#crates_vendor).
141141
142142
### Direct Dependencies
143143

examples/all_deps_vendor/sys_deps.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def sys_deps():
99
1010
Commonly `*-sys` crates are built on top of some existing library and
1111
will have a number of dependencies. The examples here use
12-
[crate_universe](https://bazelbuild.github.io/rules_rust/crate_universe.html)
12+
[crate_universe](https://bazelbuild.github.io/rules_rust/crate_universe_workspace.html)
1313
to gather these dependencies and make them available in the workspace.
1414
"""
1515

extensions/bindgen/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ users should define their own repositories using something akin to [crate_univer
5454
toolchains following the instructions for [rust_bindgen_toolchain](#rust_bindgen_toolchain).
5555
5656
[llvm_proj]: https://github.com/llvm/llvm-project
57-
[cra_uni]: https://bazelbuild.github.io/rules_rust/crate_universe.html
57+
[cra_uni]: https://bazelbuild.github.io/rules_rust/crate_universe_workspace.html
5858
5959
---
6060
---

0 commit comments

Comments
 (0)