DioxusLabs / DioxusLabs/dioxus
DX / Subsecond doesn't correctly monitor all workspace crates for updates
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
Hot patching now works not only in tip crate, but theoretically in all workspace crates. (https://github.com/DioxusLabs/dioxus/pull/5291)
But it seems like dx tool doesn't detect changes in crates that are not direct dependency to root crate that is being built.
**Steps To Reproduce**
Create workspace with one binary and two library crates.
Make them depend on each other.
Binary -> Library 1 -> Library 2.
If changes are done in Library 1, hot patching works.
If changes are done in Library 2, tool doesn't detect any changes in source files.
**Expected behavior**
Changes in Library 2 are detected and project is hot-patched.
**WORKAROUND**
Add Library 2 as direct dependency to root crate too. Then hot patching works.
**Environment:**
- Dioxus version: main
- Subsecond version: 0.7.3
- Rust version: nightly
- OS info: Ubuntu 24.04
- App platform: bevy
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.