Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local_path_override(
path = "../../../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "boringssl", version = "0.20241209.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local_path_override(
path = "../../../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.17")

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
Expand Down
2 changes: 1 addition & 1 deletion crate_universe/tests/integration/vendor/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local_path_override(
path = "../../../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_skylib", version = "1.8.1")

rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
Expand Down
2 changes: 1 addition & 1 deletion examples/all_crate_deps/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module(
version = "0.0.0",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "rules_rust", version = "0.0.0")
Expand Down
2 changes: 1 addition & 1 deletion examples/bazel_env/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module(
version = "0.0.0",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_rust", version = "0.0.0")
local_path_override(
module_name = "rules_rust",
Expand Down
2 changes: 1 addition & 1 deletion examples/cross_compile/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local_path_override(
path = "../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")

RUST_EDITION = "2024"
Expand Down
2 changes: 1 addition & 1 deletion examples/cross_compile_llvm/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local_path_override(
)

# https://github.com/bazelbuild/platforms/releases
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

# https://github.com/bazelbuild/rules_shell/releases
bazel_dep(name = "rules_shell", version = "0.7.1")
Expand Down
2 changes: 1 addition & 1 deletion examples/cross_compile_llvm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ You add the required rules for cross compilation to your MODULE.bazel as shown b
bazel_dep(name = "rules_rust", version = "0.70.0")

# https://github.com/bazelbuild/platforms/releases
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

# https://github.com/bazel-contrib/toolchains_llvm
bazel_dep(name = "toolchains_llvm", version = "1.5.0", dev_dependency = True)
Expand Down
2 changes: 1 addition & 1 deletion examples/cross_compile_musl/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ local_path_override(
path = "../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "bazel_skylib", version = "1.8.2")

Expand Down
2 changes: 1 addition & 1 deletion examples/cross_compile_nix/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local_path_override(
bazel_dep(name = "rules_nixpkgs_core", version = "0.13.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

internal = use_extension("//bazel:nix_repositories.bzl", "internal_ext")
use_repo(
Expand Down
2 changes: 1 addition & 1 deletion examples/ffi/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ local_path_override(
path = "../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.4")

###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local_path_override(
path = "../..",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_shell", version = "0.6.1")

Expand Down
2 changes: 1 addition & 1 deletion examples/ios_build/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ bazel_dep(name = "apple_support", version = "2.5.2")
bazel_dep(name = "rules_swift", version = "3.5.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

###############################################################################
# T O O L C H A I N S
Expand Down
2 changes: 1 addition & 1 deletion examples/override_target/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module(
version = "0.0.0",
)

bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_rust", version = "0.0.0")
local_path_override(
Expand Down
2 changes: 1 addition & 1 deletion examples/sys/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local_path_override(
)

bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")

Expand Down
2 changes: 1 addition & 1 deletion extensions/bindgen/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module(
bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "llvm-project", version = "17.0.3.bcr.4")

Expand Down
2 changes: 1 addition & 1 deletion extensions/mdbook/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

rust_ext = use_extension("//:extensions.bzl", "rust_ext")
use_repo(
Expand Down
2 changes: 1 addition & 1 deletion extensions/prost/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module(
)

bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "rules_cc", version = "0.2.4")
Expand Down
2 changes: 1 addition & 1 deletion extensions/pyo3/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module(
bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "rules_python", version = "1.6.3")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")

rust_ext = use_extension("//private:internal_extensions.bzl", "rust_ext")
use_repo(
Expand Down
2 changes: 1 addition & 1 deletion extensions/wasm_bindgen/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module(
bazel_dep(name = "rules_rust", version = "0.70.0")
bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "apple_support", version = "1.24.1")

Expand Down
20 changes: 13 additions & 7 deletions rust/platform/triple_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ SUPPORTED_T2_PLATFORM_TRIPLES = {
"armv7-unknown-linux-gnueabi": _support(std = True, host_tools = True),
"i686-linux-android": _support(std = True, host_tools = False),
"i686-unknown-freebsd": _support(std = True, host_tools = False),
"loongarch64-unknown-linux-gnu": _support(std = True, host_tools = True),
"powerpc-unknown-linux-gnu": _support(std = True, host_tools = True),
"riscv32imc-unknown-none-elf": _support(std = True, host_tools = False),
"riscv64gc-unknown-linux-gnu": _support(std = True, host_tools = False),
"riscv64gc-unknown-none-elf": _support(std = True, host_tools = False),
"s390x-unknown-linux-gnu": _support(std = True, host_tools = True),
"sparc64-unknown-linux-gnu": _support(std = True, host_tools = False),
"thumbv6m-none-eabi": _support(std = True, host_tools = False),
"thumbv7em-none-eabi": _support(std = True, host_tools = False),
"thumbv7em-none-eabihf": _support(std = True, host_tools = False),
Expand All @@ -80,8 +82,13 @@ SUPPORTED_T2_PLATFORM_TRIPLES = {

_T3_PLATFORM_TRIPLES = {
"aarch64-unknown-nto-qnx710": _support(std = True, host_tools = False),
"avr-none": _support(std = False, host_tools = False),
"bpfeb-unknown-none": _support(std = False, host_tools = False),
"bpfel-unknown-none": _support(std = False, host_tools = False),
"mips-unknown-linux-gnu": _support(std = True, host_tools = True),
"sparc64-unknown-netbsd": _support(std = True, host_tools = True),
"sparc64-unknown-openbsd": _support(std = True, host_tools = True),
"thumbv6-none-eabi": _support(std = False, host_tools = False),
"wasm64-unknown-unknown": _support(std = False, host_tools = False),
}

Expand Down Expand Up @@ -117,14 +124,16 @@ _CPU_ARCH_TO_BUILTIN_PLAT_SUFFIX = {
"armv7": "armv7",
"armv7s": None,
"asmjs": None,
"avr": "avr",
"bpfeb": "bpfeb",
"bpfel": "bpfel",
"hexagon": "hexagon",
"i386": "i386",
"i586": None,
"i686": "x86_32",
"le32": None,
"mips": None,
"mipsel": None,
"loongarch64": "loongarch64",
"mips": "mips32",
"powerpc": "ppc32",
"powerpc64": "ppc",
"powerpc64le": "ppc64le",
Expand All @@ -134,6 +143,8 @@ _CPU_ARCH_TO_BUILTIN_PLAT_SUFFIX = {
"riscv64gc": "riscv64",
"s390": None,
"s390x": "s390x",
"sparc64": "sparc64",
"thumbv6": "armv6",
"thumbv6m": "armv6-m",
"thumbv7em": "armv7e-m",
"thumbv7m": "armv7-m",
Expand Down Expand Up @@ -471,11 +482,6 @@ def triple_to_constraint_set(target_triple):
"@platforms//os:wasi",
"@rules_rust//rust/platform:wasi_preview_2",
]
if target_triple == "wasm32-unknown-emscripten":
return [
"@platforms//cpu:wasm32",
"@platforms//os:emscripten",
]
if target_triple == "wasm32-unknown-unknown":
return [
"@platforms//cpu:wasm32",
Expand Down
Loading
Loading