diff --git a/Cargo.toml b/Cargo.toml index a00c58a..2b2eb76 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,15 +17,15 @@ include = ["src/**/*", "LICENSE", "README.md"] color-eyre = "0.6.3" cargo-platform = "0.1.8" cargo_metadata = "0.18.1" -clap = { version = "4.5.1", features = ["color", "derive", "error-context", "help", "suggestions", "usage"], default-features = false } -clap_complete = "4.5.1" +clap = { version = "4.5.4", features = ["color", "derive", "error-context", "help", "suggestions", "usage"], default-features = false } +clap_complete = "4.5.2" console = { version = "0.15.8", default-features = false } -ctrlc = "3.4.2" +ctrlc = "3.4.4" fuzzy-matcher = "0.3.7" itertools = { version = "0.12.1", default-features = false, features = ["use_alloc"] } semver = { version = "1.0.22", default-features = false } -toml = { version = "0.8.10", default-features = false, features = ["parse"] } -toml_edit = { version = "0.22.6", default-features = false, features = ["display"] } +toml = { version = "0.8.12", default-features = false, features = ["parse"] } +toml_edit = { version = "0.22.12", default-features = false, features = ["display"] } [[bin]] name = "cargo-features" diff --git a/src/dependencies/mod.rs b/src/dependencies/mod.rs index 8710c13..6ee5ce2 100644 --- a/src/dependencies/mod.rs +++ b/src/dependencies/mod.rs @@ -28,7 +28,7 @@ pub fn get_path(kind: &DependencyType, target: &Option) -> String { pub fn get_mut_item_from_doc<'a>( path: &str, - document: &'a mut toml_edit::Document, + document: &'a mut toml_edit::DocumentMut, ) -> Result<&'a mut toml_edit::Item> { let mut item = document.as_item_mut(); @@ -71,7 +71,7 @@ pub fn get_mut_item_from_doc<'a>( pub fn get_item_from_doc<'a>( path: &str, - document: &'a toml_edit::Document, + document: &'a toml_edit::DocumentMut, ) -> Result<&'a toml_edit::Item> { let mut item = document.as_item(); diff --git a/src/parsing/mod.rs b/src/parsing/mod.rs index 40813c0..7184fd7 100644 --- a/src/parsing/mod.rs +++ b/src/parsing/mod.rs @@ -13,7 +13,7 @@ use std::path::Path; pub mod package; pub mod workspace; -pub fn toml_document_from_path>(dir_path: P) -> Result { +pub fn toml_document_from_path>(dir_path: P) -> Result { let file_content = fs::read_to_string(&dir_path) .map_err(|_| eyre!("could not find Cargo.toml at {:?}", dir_path.as_ref()))?; diff --git a/src/parsing/package.rs b/src/parsing/package.rs index 137dfb9..8d84bda 100644 --- a/src/parsing/package.rs +++ b/src/parsing/package.rs @@ -64,7 +64,7 @@ pub fn parse_package( pub fn parse_dependency( dependency: &cargo_metadata::Dependency, packages: &HashMap, - document: &toml_edit::Document, + document: &toml_edit::DocumentMut, ) -> Result { let package = get_package_from_version(&dependency.name, &dependency.req, packages)?;