fix: include host targets in rust toolchain file

This commit is contained in:
Santo Shakil 2026-07-04 16:06:36 +06:00
parent bb8e242fbe
commit 3919887c2a

View file

@ -1,6 +1,10 @@
# The build hook (native_toolchain_rust) drives cargo via rustup and auto-installs
# this toolchain + targets. Pin a version (never bare stable/beta) for reproducible
# builds. Keep the channel in sync with mise.toml's rust pin.
#
# Full default target set from native_toolchain_rust: the hook validates the HOST
# triple too (any dart/flutter command builds a host code asset), so linux + windows
# must stay in for CI runners and contributor machines, not just the app targets.
[toolchain]
channel = "1.92.0"
targets = [
@ -12,7 +16,13 @@ targets = [
"aarch64-apple-ios",
"aarch64-apple-ios-sim",
"x86_64-apple-ios",
# host (local test / macOS)
# Windows
"aarch64-pc-windows-msvc",
"x86_64-pc-windows-msvc",
# Linux
"aarch64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
# macOS
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]