-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: Register Pigweed Rust toolchains with bzlmod
Change-Id: If3793a81104a6057ebea60386757be009a806160 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/231689 Reviewed-by: Armando Montanez <[email protected]> Commit-Queue: Erik Gilling <[email protected]> Lint: Lint 🤖 <[email protected]>
- Loading branch information
Showing
8 changed files
with
1,162 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
pw_rust/bazel_patches/0003-WIP-disable-default-toolchain-registration.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/MODULE.bazel b/MODULE.bazel | ||
index f5c16706..773a8c62 100644 | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -159,13 +159,13 @@ use_repo( | ||
"rules_rust_wasm_bindgen_cli", | ||
) | ||
|
||
-rust = use_extension("//rust:extensions.bzl", "rust") | ||
-rust.toolchain(edition = "2021") | ||
-use_repo(rust, "rust_toolchains") | ||
+# rust = use_extension("//rust:extensions.bzl", "rust") | ||
+# rust.toolchain(edition = "2021") | ||
+# use_repo(rust, "rust_toolchains") | ||
|
||
-register_toolchains( | ||
- "@rust_toolchains//:all", | ||
-) | ||
+# register_toolchains( | ||
+# "@rust_toolchains//:all", | ||
+# ) | ||
|
||
register_toolchains( | ||
"//proto/protobuf:default-proto-toolchain", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.