pub struct CrateDeps {
pub deps: HashMap<String, Vec<String>>,
}Expand description
Crate dependency graph for transitive invalidation analysis.
When a file in crate A changes, crate A needs recompilation. If crate B depends on A, B also needs recompilation (its inputs changed). This propagates transitively through the dependency graph.
Fields§
§deps: HashMap<String, Vec<String>>Crate name → list of crate names it depends on.
Implementations§
Source§impl CrateDeps
impl CrateDeps
Sourcepub fn nusy_workspace() -> Self
pub fn nusy_workspace() -> Self
Build the NuSy workspace dependency graph.
Hardcoded for the spike — a production version would parse Cargo.toml
or use cargo metadata.
Auto Trait Implementations§
impl Freeze for CrateDeps
impl RefUnwindSafe for CrateDeps
impl Send for CrateDeps
impl Sync for CrateDeps
impl Unpin for CrateDeps
impl UnsafeUnpin for CrateDeps
impl UnwindSafe for CrateDeps
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more