Skip to content

Commit

Permalink
pw_toolchain: Add cargo to Rust toolchains
Browse files Browse the repository at this point in the history
This is needed for using `rules_rust`'s `crate_universe` with Pigweed's
Rust toolchains.

Change-Id: I6f4fdc4bcf717f09dfe501687bd9ab6376e6340b
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/255062
Docs-Not-Needed: Erik Gilling <[email protected]>
Presubmit-Verified: CQ Bot Account <[email protected]>
Lint: Lint 🤖 <[email protected]>
Commit-Queue: Erik Gilling <[email protected]>
Reviewed-by: Armando Montanez <[email protected]>
  • Loading branch information
konkers authored and CQ Bot Account committed Jan 14, 2025
1 parent bdc5263 commit 3d3c663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pw_toolchain/rust/templates.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ _rust_toolchain_template = """\
rust_toolchain(
name = "{name}_rust_toolchain",
binary_ext = "",
cargo = "{toolchain_repo}//:bin/cargo",
clippy_driver = "{toolchain_repo}//:bin/clippy-driver",
default_edition = "2021",
dylib_ext = "{dylib_ext}",
Expand Down

0 comments on commit 3d3c663

Please sign in to comment.