-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring (dependencies processor)
- Loading branch information
1 parent
2ed5841
commit 4a7f44d
Showing
23 changed files
with
1,033 additions
and
617 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Copyright 2023 Thomas Hügel. | ||
* This file is part of Cargo Graphmod. | ||
* SPDX-License-Identifier: GPL-3.0-only | ||
*/ | ||
|
||
#[derive(Clone, Debug, PartialEq)] | ||
pub struct FilePath(pub Vec<String>); | ||
|
||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] | ||
pub struct DependencyPath(pub Vec<String>); | ||
|
||
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] | ||
pub struct Dependencies { | ||
pub dependencies: Vec<DependencyPath>, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
use crate::{dependencies::DependencyPath, trie::Trie}; | ||
|
||
/** | ||
* Copyright 2023 Thomas Hügel. | ||
* This file is part of Cargo Graphmod. | ||
* SPDX-License-Identifier: GPL-3.0-only | ||
*/ | ||
use crate::{dependency_components::DependencyComponents, trie::Trie}; | ||
|
||
pub type DependenciesGraph = Trie<String, Vec<DependencyComponents>>; | ||
/** | ||
* At each node, the value represents the full path from the root, and the dependencies read at this node. | ||
*/ | ||
pub type DependenciesGraph = Trie<String, Vec<DependencyPath>>; |
Oops, something went wrong.