Document upstream tooling wrappers (#2890)

This commit is contained in:
Daniel Wagner-Hall 2024-09-19 17:41:10 +01:00 committed by GitHub
parent aa3761fb1d
commit 6e97b2f5b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -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)

View File

@ -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`.