Skip to content

Commit

Permalink
fixup! Use patch-based Cairo dependencies specification
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput committed Dec 11, 2024
1 parent 94f1543 commit eae4b81
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xtask/src/set_cairo_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ fn simplify_dependency_table(dep: &mut Value) {
}
}

/// Remove any unused patches from the `[patch.crates-io]` table.
///
/// We are adding patch entries for **all** Cairo crates existing, and some may end up being unused.
/// Cargo is emitting warnings about unused patches and keeps a record of them in the `Cargo.lock`.
/// The goal of this function is to resolve these warnings.
fn purge_unused_patches(cargo_toml: &mut DocumentMut) -> Result<()> {
let sh = Shell::new()?;
let cargo_lock = sh.read_file("Cargo.lock")?.parse::<DocumentMut>()?;
Expand Down

0 comments on commit eae4b81

Please sign in to comment.