DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
18.5k stars 703 forks source link

dx build recompiles everything every time when using a cargo workspace #2326

Open ochrons opened 2 weeks ago

ochrons commented 2 weeks ago

Problem

When having a Dioxus fullstack app as part of cargo workspace, running dx build always recompiles everything. The same doesn't happen with dx serve though.

Steps To Reproduce

Create a new Rust project using cargo workspace. Add a Dioxus fullstack project as a workspace member. Run dx build in the fullstack project dir. Run it again.

Expected behavior

It should not recompile anything, when nothing is changed.

This problem does not happen when having a standalone Dioxus fullstack or desktop app that is not part of a workspace.

Environment: