Skip to content

Commit

Permalink
Document upstream tooling wrappers (bazelbuild#2890)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored Sep 19, 2024
1 parent aa3761f commit 6e97b2f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
- [External Crates](./external_crates.md)
- [crate_universe (bzlmod)](crate_universe_bzlmod.md)
- [crate_universe (WORKSPACE)](crate_universe.md)
- [Upstream Tooling](./upstream_tooling.md)
13 changes: 13 additions & 0 deletions docs/src/upstream_tooling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Upstream Tooling

rules_rust manages versions of things like rustc. If you want to manually run upstream tooling configured at the versions, plugins and such that rules_rust has configured, rules_rust exposes these as targets in `@rules_rust//tools/upstream_wrapper`:

```console
% bazel query @rules_rust//tools/upstream_wrapper
@rules_rust//tools/upstream_wrapper:cargo
@rules_rust//tools/upstream_wrapper:cargo_clippy
@rules_rust//tools/upstream_wrapper:rustc
@rules_rust//tools/upstream_wrapper:rustfmt
```

You can run them via `bazel run`, e.g. `bazel run @rules_rust//tools/upstream_wrapper:cargo -- check`.

0 comments on commit 6e97b2f

Please sign in to comment.