crate_cli/sync/struct.rs
1use super::*;
2
3/// Result of a sync operation: which entries were rewritten.
4#[derive(Clone, Debug, Eq, Getter, New, PartialEq)]
5pub struct SyncReport {
6 /// Workspace version that was applied to every member entry.
7 pub(crate) workspace_version: String,
8 /// Pair of (old dep LHS, new dep LHS) for entries whose dep alias
9 /// was renamed to match the member's actual `[package].name`.
10 pub(crate) renamed_entries: Vec<(String, String)>,
11 /// Pair of (member path, new dep LHS) for entries whose version
12 /// literal was rewritten to `workspace_version`.
13 pub(crate) versioned_entries: Vec<(String, String)>,
14 /// `true` if the workspace Cargo.toml was mutated by this run.
15 #[get(type(copy))]
16 pub(crate) file_changed: bool,
17}