pub struct PackageCycleEdge {
pub from_package: String,
pub to_package: String,
pub path: PathBuf,
pub target_path: PathBuf,
pub line: u32,
pub col: u32,
pub type_only: bool,
}Expand description
One package hop in a PackageCycle: from_package imports
to_package, and path holds one example import for that hop.
The example import is the first runtime import by (path, line). When
every import on the hop is type-only, it is the first type-only import.
Fields§
§from_package: StringLabel of the importing workspace package, as in
PackageCycle::packages.
to_package: StringLabel of the imported workspace package, as in
PackageCycle::packages.
path: PathBufFile in from_package that holds the example import.
target_path: PathBufFile in to_package that the example import resolves to.
line: u321-based line number of the example import.
col: u320-based byte column offset of the example import.
type_only: boolTrue when every import from from_package to to_package is
type-only. A type-only hop has no runtime effect, but it can still
force a build order (for example with declaration builds).