From 54876ddce3c55ca9b45a72ba4278b596dd277ea0 Mon Sep 17 00:00:00 2001 From: cdesouza-chromium Date: Tue, 5 May 2026 15:31:43 +0100 Subject: [PATCH] [toolchain] Rust build script under rebase tooling (#36155) This change moves the script used to generate the rust WASM toolchain under `tools/cr/toolchains`, as tooling packaging is a Chromium rebase concern, and it is better kept under the rebase's team purview. A separate PR has been submitted to fix CI. --- tools/cr/toolchain/README.md | 38 +++++++++++++++++++ .../toolchain/build_rust_toolchain.py} | 6 +-- 2 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 tools/cr/toolchain/README.md rename tools/{rust/build_rust_toolchain_standalone.py => cr/toolchain/build_rust_toolchain.py} (99%) diff --git a/tools/cr/toolchain/README.md b/tools/cr/toolchain/README.md new file mode 100644 index 00000000000..e5da39e5c9e --- /dev/null +++ b/tools/cr/toolchain/README.md @@ -0,0 +1,38 @@ +# Browser Toolchain Scripts + +This directory contains scripts for generating browser toolchains (compilers, +linkers, standard libraries, etc.) used by the Brave build. + +## Design rules + +Scripts here are designed to be launched with a single `curl` one-liner, +so they must be **self-contained in a single source file** with **no +dependencies outside the Python standard library** (or the platform's +default tooling such as `git`). Do not split logic across helper modules or +add third-party imports. + +Example invocation pattern: + +```sh +curl -sL \ + https://raw.githubusercontent.com/brave/brave-core/refs/heads/master/tools/cr/toolchain/