Skip to content

Commit d8fc77e

Browse files
committed
Reduce number of default supported_platform_triples for crate_universe
1 parent 59c980d commit d8fc77e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

crate_universe/private/crates_vendor.bzl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
load("//crate_universe/private:generate_utils.bzl", "compile_config", generate_render_config = "render_config")
44
load("//crate_universe/private:splicing_utils.bzl", "kebab_case_keys", generate_splicing_config = "splicing_config")
55
load("//crate_universe/private:urls.bzl", "CARGO_BAZEL_LABEL")
6-
load("//rust/platform:triple_mappings.bzl", "SUPPORTED_PLATFORM_TRIPLES")
76

87
_UNIX_WRAPPER = """\
98
#!/usr/bin/env bash
@@ -570,7 +569,14 @@ CRATES_VENDOR_ATTRS = {
570569
),
571570
"supported_platform_triples": attr.string_list(
572571
doc = "A set of all platform triples to consider when generating dependencies.",
573-
default = SUPPORTED_PLATFORM_TRIPLES,
572+
default = [
573+
"aarch64-apple-darwin",
574+
"wasm32-unknown-unknown",
575+
"wasm32-wasip1",
576+
"x86_64-pc-windows-msvc",
577+
"x86_64-unknown-linux-gnu",
578+
"x86_64-unknown-nixos-gnu",
579+
],
574580
),
575581
"vendor_path": attr.string(
576582
doc = "The path to a directory to write files into. Absolute paths will be treated as relative to the workspace root",

0 commit comments

Comments
 (0)