Skip to content

Commit

Permalink
update dependencies (#24)
Browse files Browse the repository at this point in the history
update all dependencies to the latest versions
  • Loading branch information
SpieringsAE authored Jan 6, 2024
1 parent 10f77c9 commit dbf4777
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ default = ["slint-backend-qt", "slint-backend-gl-all"]

[dependencies]
anyhow = "1.0.53"
cargo_metadata = "0.15"
crates-index = { version = "0.19.0" }
cargo_metadata = "0.18"
crates-index = { version = "2", features = ["git"] }
dunce = "1.0.2"
futures = "0.3"
itertools = "0.10"
open = "4.0"
rfd = { version = "0.11", default-features = false, features = [ "xdg-portal" ] }
itertools = "0.12"
open = "5"
rfd = { version = "0.12", default-features = false, features = [ "xdg-portal" ] }
serde = "1.0.136"
serde_json = "1.0.78"
shlex = "1.1"
slint = { version = "1.1", default-features = false, features = [ "compat-1-0" ] }
slint = { version = "1.3", default-features = false, features = [ "compat-1-0" ] }
tokio = { version = "1.24.2", features= ["full"] }
toml_edit = "0.19.0"
git2 = "0.16.1"
toml_edit = "0.21"
git2 = "0.18"

[build-dependencies]
slint-build = { version = "1.1" }
Expand Down
10 changes: 5 additions & 5 deletions src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ async fn cargo_worker_loop(
) -> tokio::io::Result<()> {
let mut manifest: Manifest = default_manifest().into();
let mut metadata: Option<Metadata> = None;
let mut crates_index: Option<crates_index::Index> = None;
let mut crates_index: Option<crates_index::GitIndex> = None;
let mut package = SharedString::default();
let mut update_features = true;
let mut install_queue = VecDeque::new();
Expand Down Expand Up @@ -318,9 +318,9 @@ async fn cargo_worker_loop(
}
}

async fn load_crate_index() -> Result<crates_index::Index, String> {
async fn load_crate_index() -> Result<crates_index::GitIndex, String> {
tokio::task::spawn_blocking(|| {
let mut index = crates_index::Index::new_cargo_default().map_err(|x| x.to_string())?;
let mut index = crates_index::GitIndex::new_cargo_default().map_err(|x| x.to_string())?;
index.update().map_err(|x| x.to_string())?;
Ok(index)
})
Expand Down Expand Up @@ -555,7 +555,7 @@ async fn read_metadata(manifest: Manifest, handle: slint::Weak<CargoUI>) -> Opti

fn apply_metadata(
metadata: &Metadata,
crates_index: Option<&crates_index::Index>,
crates_index: Option<&crates_index::GitIndex>,
mut update_features: bool,
package: &mut SharedString,
handle: slint::Weak<CargoUI>,
Expand Down Expand Up @@ -712,7 +712,7 @@ fn build_dep_tree(
depgraph_tree: &mut Vec<TreeNode>,
duplicates: &mut HashSet<PackageId>,
metadata: &Metadata,
crates_index: Option<&crates_index::Index>,
crates_index: Option<&crates_index::GitIndex>,
map: &HashMap<PackageId, &Node>,
indentation: i32,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub async fn process_install(job: InstallJob, handle: slint::Weak<CargoUI>) -> s

pub fn apply_install_list(
mut list: Vec<InstalledCrate>,
crates_index: Option<&crates_index::Index>,
crates_index: Option<&crates_index::GitIndex>,
install_queue: &VecDeque<InstallJob>,
currently_installing: &SharedString,
handle: slint::Weak<CargoUI>,
Expand Down

0 comments on commit dbf4777

Please sign in to comment.