Skip to content

Commit 74ebdd6

Browse files
authored
rust: Upgrade to 1.83.0 (#30872)
This PR does two things: 1. Upgrades the version of Rust we use to `1.83.0`, and fixes a bunch of clippy lints 2. Expands the instructions in `upgrade-rust.md` to include how to upgrade Rust for Bazel ### Motivation Get us on a newest version of Rust ### Checklist - [x] This PR has adequate test coverage / QA involvement has been duly considered. ([trigger-ci for additional test/nightly runs](https://trigger-ci.dev.materialize.com/)) - [x] This PR has an associated up-to-date [design doc](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/design/README.md), is a design doc ([template](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/design/00000000_template.md)), or is sufficiently small to not require a design. <!-- Reference the design in the description. --> - [x] If this PR evolves [an existing `$T ⇔ Proto$T` mapping](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/command-and-response-binary-encoding.md) (possibly in a backwards-incompatible way), then it is tagged with a `T-proto` label. - [x] If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label ([example](MaterializeInc/cloud#5021)). <!-- Ask in #team-cloud on Slack if you need help preparing the cloud PR. --> - [x] If this PR includes major [user-facing behavior changes](https://github.com/MaterializeInc/materialize/blob/main/doc/developer/guide-changes.md#what-changes-require-a-release-note), I have pinged the relevant PM to schedule a changelog post.
1 parent ace7379 commit 74ebdd6

File tree

37 files changed

+231
-191
lines changed

37 files changed

+231
-191
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ resolver = "2"
240240

241241
[workspace.package]
242242
edition = "2021"
243-
rust-version = "1.80.1"
243+
rust-version = "1.83.0"
244244

245245
[profile.dev]
246246
split-debuginfo = "unpacked"
@@ -326,6 +326,7 @@ reqwest-retry = { git = "https://github.com/MaterializeInc/reqwest-middleware.gi
326326
# DO NOT EDIT. Automatically generated by bin/gen-lints.
327327
[workspace.lints.rust]
328328
unknown_lints = "allow"
329+
non_local_definitions = "allow"
329330
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(bazel, stamped, coverage, nightly_doc_features, release, tokio_unstable)'] }
330331

331332
[workspace.lints.rustdoc]

WORKSPACE

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,9 @@ c_repositories()
311311
# Rules for building Rust crates, and several convienence macros for building all transitive
312312
# dependencies.
313313

314-
RULES_RUST_VERSION = "0.53.0"
314+
RULES_RUST_VERSION = "0.54.1"
315315

316-
RULES_RUST_INTEGRITY = "sha256-heIBNyerJvsiq9/+SyrAwnotW2KWFnumPY9uExQPUfk="
316+
RULES_RUST_INTEGRITY = "sha256-r09Wyq5QqZpov845sUG1Cd1oVIyCBLmKt6HK/JTVuwI="
317317

318318
maybe(
319319
http_archive,
@@ -334,9 +334,9 @@ rules_rust_dependencies()
334334
# Fetch and register the relevant Rust toolchains. We use a custom macro that
335335
# depends on `rules_rust` but cuts down on bloat from their defaults.
336336

337-
RUST_VERSION = "1.80.1"
337+
RUST_VERSION = "1.83.0"
338338

339-
RUST_NIGHTLY_VERSION = "nightly/2024-08-01"
339+
RUST_NIGHTLY_VERSION = "nightly/2024-12-02"
340340

341341
load("//misc/bazel/toolchains:rust.bzl", "rust_toolchains")
342342

@@ -348,66 +348,66 @@ rust_toolchains(
348348
{
349349
"aarch64-apple-darwin": {
350350
"stable": {
351-
"rustc": "ada84b7c4521b10f54ab73d34916cb45fb68cc928b16c9e1be39f89406b84c86",
352-
"clippy": "f1f6772c917008d170e4cdc7ae10e370cfbe11da6105bf5913a1b43ea126b0f1",
353-
"cargo": "4649742a7bfc4a46036e47ea057d60bf8301c0299054c9785ee37947b2d1294c",
354-
"llvm-tools": "725bb2381dd287fb070a05eb6092fc5b4000ba69eb2cb27790c0f40fd248a56a",
355-
"rust-std": "ddd123723fe4576a155ce0190da5f16a2c067cbd5b1a2c23b301592568e5752d",
351+
"cargo": "1608c47547350e17a6c8adde254ccce1d728c2a88bf83c28079918f265dcf5e9",
352+
"clippy": "be37e667fb9fc7f1cccbeff65138f538ff74fac87487ad0e98b75a01313ded14",
353+
"llvm-tools": "ed8b7cb072a171fd9254366e30c9b3223eb7d82ae028dbf0c6875cc2d4ddaf96",
354+
"rust-std": "d4f6a6c23c8cb643ba8a7a166bdf86d054eae2ea4e4b3bd7562dc2cb373b9fe2",
355+
"rustc": "94bc661bda0ee93a2760068e539750f80a71017b5d0d6d4fc7be46587ff6febc",
356356
},
357357
"nightly": {
358-
"rustc": "16a8eefc8121633bc1d80342975cc5299a3da4c11d28e3a134ce376eafea4784",
359-
"clippy": "341b35b68ab14d0de0b6cece0042ae91b640a66b6fbc71ff6a4e021c2a1cea18",
360-
"cargo": "e633472e33eb97d2886d3149968b27956b91efa8da5cded10399c7a1f0ede481",
361-
"llvm-tools": "2cf35c331fff0034301fb0cbef221c3203f23ab4c6780e20a70c92d76b1bf7f5",
362-
"rust-std": "f0742c7371383c1ea2849440b8d5f631be2aa7211b3e150a41cca552dcd92ddd",
358+
"cargo": "efc0487a586e8b3d2f611374b135d6877833a98e352dea1a2c3500545cf67dc1",
359+
"clippy": "76e8a48b0209027c7d0d887194837a0d731a72c4faf90c420e846c34f5075450",
360+
"llvm-tools": "a0a9549fbd77648b843af8d081c443db08a900327c1d90a81c62ea187aee0e85",
361+
"rust-std": "a101b44e0f97d5484c02d82396570e6b61a8d7ec816452d6e4c3a208e863672b",
362+
"rustc": "7213e573a87b737ea98a0b32ef4ff0e65f56d03937b9897a69a9386d2bf998f9",
363363
},
364364
},
365365
"aarch64-unknown-linux-gnu": {
366366
"stable": {
367-
"rustc": "4ca87875f8a23ef1f23d60a958a0dc798e2b8e97bf6782b2ec534026181fa72c",
368-
"clippy": "fcda253a6704f612310696f25f161c880f16ec8be6b640ccf5fe26245c822efc",
369-
"cargo": "6973b542f54ade0215becd34a06d011e4c35a8091a27ac667d0438ebc45a935e",
370-
"llvm-tools": "2574807dcf8a1d68adc57c42c4caa812ac3d54f376b16b536c8073c60877c680",
371-
"rust-std": "07238d367cfba20bf80150f725234b877b11bc3ab82d04ed0ccc95375e9cedd8",
367+
"cargo": "facfde3caea4919e4fbf48da8fe87cf67ab59bacc2e277f481e3d700f0c09b18",
368+
"clippy": "f83e26c85e880b4473e10f7acc7ecb8097923061bb9592b7e51179e5bf101df2",
369+
"llvm-tools": "66bf1fade70c32b540c38e938219d7ef7bb3cc858c0301942f07c946742dabf8",
370+
"rust-std": "27d90fb3322f5f60d8c1adde3a0c5081de66343323616ba19462db6159041cdf",
371+
"rustc": "875597345b11c42c726a42c9405c8ed37cc6a23c4b09553a79e65960562b342d",
372372
},
373373
"nightly": {
374-
"rustc": "d21d28f3b81637070004f486c5267989381ad763e7d4c9084d2d226aa46cd308",
375-
"clippy": "58a022177e2cb99f40ddd4e4dacd4b5580af9920829a873bbbd92d91cb934979",
376-
"cargo": "4b56caba8ccd3101cbae3b2093b0858ae9045534c7378fc16150285d0f3c082f",
377-
"llvm-tools": "52cf02c11e64b320d05ca1df8d1104a757080a3088e397bd1f752f5bd0b6b258",
378-
"rust-std": "6ad1dc3b4aa3f78a7ead87ecc475299b35e884778ecc99a057a3178fa1c332b5",
374+
"cargo": "71bd7220e9412a30bc9e7fd5e159cbfc358a908f073dc1c2afea5fdc698b4788",
375+
"clippy": "91286bc8cacd615421ed3e90a4b7b1b4c736e8ba680a8fc27f35a3fd6af621da",
376+
"llvm-tools": "cfb01325e555ed05217c6d32800a3344dc4353ffd9b9dc32bc0020a497872cf0",
377+
"rust-std": "ea2d8acf5c8cf2e56f87419b80d1a7849061f4869091ecdcf959267aa6a2c4d9",
378+
"rustc": "ff8c5cbf4c152ddce1519c9641269b30316fd29f1f1487e76c7a0e1e97270706",
379379
},
380380
},
381-
"x86_64-unknown-linux-gnu": {
381+
"x86_64-apple-darwin": {
382382
"stable": {
383-
"rustc": "5c7fce7a0323b8669b4e17ec370b38a5f207fcdcd5c66b83c877b72e252d561e",
384-
"clippy": "39253ce4ecb036977686f5a8cc183de295cf280766678201f919c5655e3dd063",
385-
"cargo": "863c016fc458b1fa8809d7b66dcccd272f8b6b2e8a42c89b7dff4b619f3d3940",
386-
"llvm-tools": "86e441024b0e538ed69fa0098be48592caae6fc28097f7630b906be276c79622",
387-
"rust-std": "e7b766fce1cd89c02bde33f8cc3a81f341c52677258a546df2bee1c7090e9fc5",
383+
"cargo": "8296adfdd7ca78ee8b8ef0ec97d42d4a9fd754af197e0a079d65795e927f1963",
384+
"clippy": "94f9fa4f67dc6933bf5ad47cc1c6673184e0db5fca9f2a57e251f273e22b2071",
385+
"llvm-tools": "b39bc3518ef6a253b80f58facee36fdc5e54199e5e0264249902d1c545242ba4",
386+
"rust-std": "8e43cc2dbd2f8a4fb1120fa8ff685c5929d3c71d68d75836d88ecde3fd9af4f4",
387+
"rustc": "5c51f5ff7955e8c2b013ea9ebfcc89ce9a86d33d3bd229d8fa98b0f4b29759bd",
388388
},
389389
"nightly": {
390-
"rustc": "10bf2f8f95cf934bf1f3e0f7d507b615c6a329bedb78adaa1d3bdf75532d7d36",
391-
"clippy": "692f4550bf4e2f3a783f97a3706ed0c557258b885a6c166830e4b4e40bc8ba06",
392-
"cargo": "10cc2e832b8ac2386eb0fbd2f1eb3583ff6f9468332619f6bb1324b27fe6451f",
393-
"llvm-tools": "45b11ccde9ec167c4d741ade55fdab958db01a938a6e2b437f93733aa2bfa036",
394-
"rust-std": "8a8bf9b1d4f93ca2a162a28d0f478ac7bc73aab241befecdf9a1dbf27d86f68f",
390+
"cargo": "42034eef7f0cc76ebb5605363a660c6c5bb4e403c3cbe5169f76601d54d894b1",
391+
"clippy": "4bd33568e73f9972890fbdfd5ccf2756a7f51992f7434cc29097b3ef8cbcb10d",
392+
"llvm-tools": "83fbbe591566f7ccf28ec599b5cfbed9285ce14cee41d94ac263dc72e5d5a94c",
393+
"rust-std": "9c93397a365cbdf940575967a084910adf78441eb045408ecc6e16ffe213e7c3",
394+
"rustc": "8676f69a3303d19d226667a0b7b60bc28dd03f3d1b975c6fcce716606c2243d3",
395395
},
396396
},
397-
"x86_64-apple-darwin": {
397+
"x86_64-unknown-linux-gnu": {
398398
"stable": {
399-
"rustc": "f0adfff86a9d5055f537dab26f6d0b7a81efe087f90b7e16c42698d58af0ffca",
400-
"clippy": "5b6e393a7784839a1554188df2d87481696a0e0be242d1d2982e442b43199c08",
401-
"cargo": "e3d03157061987be0c7cddf1e708f376929273779a65459a9b3a7ebc6ccadaae",
402-
"llvm-tools": "3c443d068464c95a0a02072082bff6661cee5568dbbedbb82dcb6737147f3d6c",
403-
"rust-std": "c9e366e76ee470d11afadbd70b200976ef4b34e626b568f19e429d4d23dead86",
399+
"cargo": "49a1426f692cd26dfe8e41e5cff2954d686133d5d777893d0c2fe78cc8e39237",
400+
"clippy": "c9523adb965ef47ca924c6f5f10496075ae7e3678622668eef3e612303737b6b",
401+
"llvm-tools": "49fee083c3d09f3b75b57c8072682932aabdedb0880a8b8935262fe7ba83c5a7",
402+
"rust-std": "9ee7421198c668a6f61c1202c262243c0a9d2ceff894ec6ac5ab78af27c73e48",
403+
"rustc": "055407ec7be6d3e95b10d4426f0c14cfacadc5d4fa9834a02f96797061cd0818",
404404
},
405405
"nightly": {
406-
"rustc": "9ea43d51a690240f2c505ba62f1705de3c1329d7b3399ce462f4ecd242dbd87a",
407-
"clippy": "058e05278fe37789a54ad603691e06b35c7ff345b1dbad82d13552c2409f0ff0",
408-
"cargo": "fe5c735fec5c8d05de922ad4ec1296f2115cf3e2cc0617420104586d020efe6d",
409-
"llvm-tools": "8a3f90b01ec1ae47dbe33fbb5329a8457da1252a07c2bbfac0d297cb4f031b88",
410-
"rust-std": "a2d70b9f21a69639b61c87273495de579a32d197015e4a76dabf6cd417a6a12f",
406+
"cargo": "9eddd8e51f87de1239db8f35c3e4a574c231fa883ed055b5ac64471c2f272501",
407+
"clippy": "0adb5c12df13550daf954af7414cd7af9c849878c7894a02e61b9720d32f9143",
408+
"llvm-tools": "e5a79a9b1c0816e613abe6c5764946688668412985edc2b1728308db2a69ba4f",
409+
"rust-std": "665d761c020c0f9320a3e0aedad27ad466c54e802c59ac773a40f7899cc994e5",
410+
"rustc": "8685599744c5b6b7a2cbad4fa5c5dec8fcc4a42e04fc864a7b9bb8371ffbfdbe",
411411
},
412412
},
413413
},

bin/lint-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
#
1212
# lint-versions - Check rust version
1313

14-
grep "rust-version = " Cargo.toml | grep -q "1\.80\.1" || \
14+
grep "rust-version = " Cargo.toml | grep -q "1\.83\.0" || \
1515
(echo "Please validate new Rust versions for compilation time performance regressions or ask Team Testing to do so. Afterwards change the tested version in bin/lint-versions" && exit 1)

doc/developer/upgrade-rust.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,28 @@ possible.
77

88
Anyone is welcome to upgrade the version of Rust! Below is the list of things you need to do:
99

10-
1. Bump the `rust-version` field in our [Workspace `Cargo.toml`](/Cargo.toml) and in the [Bazel `WORKSPACE`](/WORKSPACE).
10+
1. Pick a version of the Nightly Rust compiler. Materialize builds with the Stable compiler, but we
11+
run [Miri](https://github.com/rust-lang/miri) in CI which requires Nightly.
12+
* First, look at this list of [available components](https://rust-lang.github.io/rustup-components-history/aarch64-unknown-linux-gnu.html)
13+
and make sure you pick a version that has everything available.
14+
* Second, check the [rust-lang GitHub Issue Tracker](https://github.com/rust-lang/rust/issues?q=is%3Aopen%20label%3AP-critical)
15+
to make sure the Nightly version you pick does not have any open `P-critical` issues.
16+
2. Package the toolchain for consumption by Bazel using the [Rust GitHub Action](https://github.com/MaterializeInc/toolchains/actions/workflows/rust.yml)
17+
in our `toolchains` repository. Example options you would run the GitHub action with are:
18+
* (Stable): "1.83.0", "rust-1.83.0"
19+
* (Nightly): "nightly/2024-12-02", "rust-nightly/2024-12-02"
20+
* **Note:** It's important to follow this exact naming convention because the Tag at which
21+
the release is uploaded to determines the URL it can be fetched with.
22+
3. Bump the `rust-version` field in our [Workspace `Cargo.toml`](/Cargo.toml) and in the [Bazel `WORKSPACE`](/WORKSPACE).
23+
* Run `bin/bazel integrity toolchains <stable version> <nightly version>` to generate the hashes for the `rust_toolchains`
24+
rule in our `WORKSPACE` file.
1125
2. Bump the `NIGHTLY_RUST_DATE` value in the [`ci-builder`](/bin/ci-builder) script.
1226
* Note: CI has a nightly version of Rust so we can run [Miri](https://github.com/rust-lang/miri).
1327
3. Locally run `rustup upgrade stable` to pull the latest version of the Rust toolchain, or
1428
whatever version you're upgrading to.
1529
4. From the root of the repository run `cargo clippy --workspace --tests`, fix any new clippy lints
1630
that were introduced.
31+
* First try running `cargo fix`, that should go a long way in automatically fixing many of the lints.
1732
5. Check if Rust's unicode version has changed. If it has make sure to include in the release notes
1833
what version it previously was, and what version it got bumped to.
1934
* The [Releases](https://github.com/rust-lang/rust/releases) page for the Rust repository

misc/bazel/cargo-gazelle/src/targets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ pub fn crate_features<'a>(
12341234
/// TODO(parkmycar): Make the list of platforms configurable.
12351235
pub fn platform_feature_sets<'a>(
12361236
package: &'a PackageMetadata<'a>,
1237-
) -> BTreeMap<PlatformVariant, FeatureSet> {
1237+
) -> BTreeMap<PlatformVariant, FeatureSet<'a>> {
12381238
// Resolve a feature graph for all crates that depend on this one.
12391239
let dependents = package
12401240
.to_package_query(DependencyDirection::Reverse)

misc/bazel/rust_deps/cxxbridge-cmd/Cargo.cxxbridge-cmd.lock

Lines changed: 2 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "1b88de7d7f3ec7292f59a809812300eeed87d6453d1f6b712059b88cd3f31140",
2+
"checksum": "b2b75eaba9abbc55071dcf7f2ded98069da446c19b24e7ac327c70bc8edf867e",
33
"crates": {
44
"anstyle 1.0.4": {
55
"name": "anstyle",
@@ -713,22 +713,6 @@
713713
"compile_data_glob": [
714714
"**"
715715
],
716-
"crate_features": {
717-
"common": [
718-
"consoleapi",
719-
"errhandlingapi",
720-
"fileapi",
721-
"minwindef",
722-
"processenv",
723-
"std",
724-
"sysinfoapi",
725-
"winbase",
726-
"wincon",
727-
"winerror",
728-
"winnt"
729-
],
730-
"selects": {}
731-
},
732716
"deps": {
733717
"common": [
734718
{
@@ -964,111 +948,20 @@
964948
"aarch64-apple-darwin": [
965949
"aarch64-apple-darwin"
966950
],
967-
"aarch64-apple-ios": [
968-
"aarch64-apple-ios"
969-
],
970-
"aarch64-apple-ios-sim": [
971-
"aarch64-apple-ios-sim"
972-
],
973-
"aarch64-fuchsia": [
974-
"aarch64-fuchsia"
975-
],
976-
"aarch64-linux-android": [
977-
"aarch64-linux-android"
978-
],
979-
"aarch64-pc-windows-msvc": [
980-
"aarch64-pc-windows-msvc"
981-
],
982951
"aarch64-unknown-linux-gnu": [
983952
"aarch64-unknown-linux-gnu"
984953
],
985-
"aarch64-unknown-nixos-gnu": [
986-
"aarch64-unknown-nixos-gnu"
987-
],
988-
"aarch64-unknown-nto-qnx710": [
989-
"aarch64-unknown-nto-qnx710"
990-
],
991-
"arm-unknown-linux-gnueabi": [
992-
"arm-unknown-linux-gnueabi"
993-
],
994-
"armv7-linux-androideabi": [
995-
"armv7-linux-androideabi"
996-
],
997-
"armv7-unknown-linux-gnueabi": [
998-
"armv7-unknown-linux-gnueabi"
999-
],
1000-
"cfg(windows)": [
1001-
"aarch64-pc-windows-msvc",
1002-
"i686-pc-windows-msvc",
1003-
"x86_64-pc-windows-msvc"
1004-
],
1005-
"i686-apple-darwin": [
1006-
"i686-apple-darwin"
1007-
],
1008-
"i686-linux-android": [
1009-
"i686-linux-android"
1010-
],
954+
"cfg(windows)": [],
1011955
"i686-pc-windows-gnu": [],
1012-
"i686-pc-windows-msvc": [
1013-
"i686-pc-windows-msvc"
1014-
],
1015-
"i686-unknown-freebsd": [
1016-
"i686-unknown-freebsd"
1017-
],
1018-
"i686-unknown-linux-gnu": [
1019-
"i686-unknown-linux-gnu"
1020-
],
1021-
"powerpc-unknown-linux-gnu": [
1022-
"powerpc-unknown-linux-gnu"
1023-
],
1024-
"riscv32imc-unknown-none-elf": [
1025-
"riscv32imc-unknown-none-elf"
1026-
],
1027-
"riscv64gc-unknown-none-elf": [
1028-
"riscv64gc-unknown-none-elf"
1029-
],
1030-
"s390x-unknown-linux-gnu": [
1031-
"s390x-unknown-linux-gnu"
1032-
],
1033-
"thumbv7em-none-eabi": [
1034-
"thumbv7em-none-eabi"
1035-
],
1036-
"thumbv8m.main-none-eabi": [
1037-
"thumbv8m.main-none-eabi"
1038-
],
1039956
"wasm32-unknown-unknown": [
1040957
"wasm32-unknown-unknown"
1041958
],
1042-
"wasm32-wasi": [
1043-
"wasm32-wasi"
1044-
],
1045959
"x86_64-apple-darwin": [
1046960
"x86_64-apple-darwin"
1047961
],
1048-
"x86_64-apple-ios": [
1049-
"x86_64-apple-ios"
1050-
],
1051-
"x86_64-fuchsia": [
1052-
"x86_64-fuchsia"
1053-
],
1054-
"x86_64-linux-android": [
1055-
"x86_64-linux-android"
1056-
],
1057962
"x86_64-pc-windows-gnu": [],
1058-
"x86_64-pc-windows-msvc": [
1059-
"x86_64-pc-windows-msvc"
1060-
],
1061-
"x86_64-unknown-freebsd": [
1062-
"x86_64-unknown-freebsd"
1063-
],
1064963
"x86_64-unknown-linux-gnu": [
1065964
"x86_64-unknown-linux-gnu"
1066-
],
1067-
"x86_64-unknown-nixos-gnu": [
1068-
"x86_64-unknown-nixos-gnu"
1069-
],
1070-
"x86_64-unknown-none": [
1071-
"x86_64-unknown-none"
1072965
]
1073966
},
1074967
"direct_deps": [

misc/bazel/rust_deps/repositories.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ def rust_repositories():
4242
cargo_lockfile = "@cxxbridge-cmd//:Cargo.lock",
4343
lockfile = "//misc/bazel/rust_deps:cxxbridge-cmd/Cargo.cxxbridge-cmd.lock",
4444
manifests = ["@cxxbridge-cmd//:Cargo.toml"],
45+
# Restricting the number of platforms we support _greatly_ reduces the
46+
# amount of time it takes to "Splice Cargo Workspace".
47+
supported_platform_triples = [
48+
"aarch64-unknown-linux-gnu",
49+
"x86_64-unknown-linux-gnu",
50+
"aarch64-apple-darwin",
51+
"x86_64-apple-darwin",
52+
"wasm32-unknown-unknown",
53+
],
4554
isolated = False,
4655
# Only used if developing rules_rust.
4756
# generator = "@cargo_bazel_bootstrap//:cargo-bazel",

0 commit comments

Comments
 (0)