Skip to main content

crate_cli/sync/
struct.rs

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