pub trait DependencyParser: Send + Sync {
// Required methods
fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>;
fn has_manifest(&self, root: &Path) -> bool;
}Expand description
Trait for language-specific dependency parsers
Required Methods§
Sourcefn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>
Parses dependencies from manifest files
Sourcefn has_manifest(&self, root: &Path) -> bool
fn has_manifest(&self, root: &Path) -> bool
Checks if the language’s manifest file exists