DioxusLabs/dioxus · error · anyhow::Error
Unsupported architecture
Error message
Unsupported architecture
What it means
Platform guard in self_update: a compile-time cfg! cascade over target_arch recognized neither x86_64 nor aarch64, so the CLI build is running on a CPU architecture for which no prebuilt dx release asset exists. The input at fault is the current host architecture, which the updater cannot map to a downloadable binary.
Source
Thrown at packages/cli/src/cli/update.rs:96
.get_latest_release()
.context("Failed to fetch latest version")?,
};
if latest.version == cargo_crate_version!() && !force {
tracing::info!("Your version {} is up to date!", cargo_crate_version!());
return Ok(StructuredOutput::Success);
}
tracing::info!("Your version is out of date!");
tracing::info!("- Yours: {}", cargo_crate_version!());
tracing::info!("- Latest: {}", latest.version);
let cur_arch = if cfg!(target_arch = "x86_64") {
"x86_64"
} else if cfg!(target_arch = "aarch64") {
"aarch64"
} else {
bail!("Unsupported architecture");
};
let cur_os = if cfg!(target_os = "windows") {
"windows"
} else if cfg!(target_os = "linux") {
"linux"
} else if cfg!(target_os = "macos") {
"darwin"
} else {
bail!("Unsupported OS");
};
let zip_ext = "zip";
tracing::debug!("Available assets: {:?}", latest.assets);
let asset = latest
.assetsView on GitHub (pinned to 24f6a829df)
Solutions
- dx self-update does not support this architecture. Install dx manually for this platform.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at packages/cli/src/cli/update.rs:96 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of DioxusLabs/dioxus@24f6a829df (2026-08-23).
Data as JSON: /api/errors/18ecb97729953e29.
Report an issue: GitHub.