Support automatic rebuilds for path dependencies of kernel
mkroening opened this issue · comments
Martin Kröning commented
In hermit-os/kernel#846 (comment) it came up, that automatic rebuilding does not happen if the kernel has changed path dependencies that are not tracked already.
We could parse the kernel's Cargo.toml
and explicitly add all path dependencies, but I am uncertain if it was worthwhile to include a whole TOML parsing apparatus for this.
Martin Kröning commented
I think a way forward would be parsing cargo tree
. That would avoid needing to compile extra dependencies:
$ cargo tree -f "{p}"
hermit-kernel v0.6.4 (/Users/mkroening/devel/hermit-rs/kernel)
├── aarch64 v0.0.10
├── hermit-sync v0.1.4 (/Users/mkroening/devel/hermit-sync)
│ ├── aarch64-cpu v9.3.1 (*)