Error with cargo metadata following the tutorial
Author: junelacCreated May 29, 2026Updated Sep 18, 2026
Labelsbug
Problem
Following the tutorial, when running "dx serve" for the first time, the following error message loops over:
warning: Waiting for cargo-metadata...
warning: maybe check your network connection or build lock?
Steps To Reproduce
Steps to reproduce the behavior:
- follow the steps from the tutorial (https://dioxuslabs.com/learn/0.7/tutorial/new_app) until the first "dx serve"
- type "dx serve"
Expected behavior
"cargo build" runs
Environment:
- Dioxus version: 0.7.9, from cargo bininstall
- Rust version: stable, 1.96
- OS info: windows 11
- App platform: web
Questionnaire
Running "cargo metadata" first in the app directory solved the issue
Source: DioxusLabs/dioxus