DioxusLabs / DioxusLabs/dioxus-code
Env - deps`arborium` build failed
- Vorherrschende Sprache
- CSS
- Sterne
- 8
- Forks
- 0
- Ø Merge
- 1 Std. 9 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
## Description
Using `dioxus-code` in a Dioxus web application causes the WASM build
to compile `arborium-sysroot`.
On macOS, the default Apple Clang does not include the WebAssembly
backend, so `dx serve` fails unless `CC` and `CXX` are explicitly set
to a Homebrew LLVM installation.
---
## Reproduction
Cargo.toml:
```toml
[dependencies]
dioxus = "0.7"
dioxus-code = "0.1"
```
Then run:
```bash
dx serve
```
---
## Environment
- macOS
- Apple Clang
- dioxus-code 0.1.2
- target: wasm32-unknown-unknown
---
## Output
```bash
[cargo] error: failed to run custom build command for `arborium-sysroot v2.18.1`
[cargo] Caused by:
...
[cargo] cargo:warning=error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne mit den Abhängigkeitsdeklarationen in Cargo.toml und reproduziere den Fehler mit dx serve für ein wasm32-unknown-unknown-Ziel. Lies die Build-Ausgabe von arborium-sysroot v2.18.1 und vergleiche, wie CC und CXX unter macOS behandelt werden; abgeschlossen ist die Aufgabe, wenn der dokumentierte Reproduktionsschritt ohne den Apple-Clang-Fehler für das WebAssembly-Ziel erfolgreich baut.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, rust, wasm
- Bereich
- build-system
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 52/100