petr_ast/
dependency.rs

1use crate::Ast;
2
3/// Describes the AST of a dependency package
4pub struct Dependency {
5    /// The unique key that identifies this source package, agnostic of the alias given to it in
6    /// the manifest file
7    pub key:          String,
8    /// The name of the package as given in the manifest file
9    pub name:         String,
10    /// The keys of any packages that this package depends on
11    pub dependencies: Vec<String>,
12    /// The AST of the source code of this package
13    pub ast:          Ast,
14}