mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 08:12:44 +10:00
refactor: Removed unnecessary dependencies
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
7
src-tauri/Cargo.lock
generated
7
src-tauri/Cargo.lock
generated
@ -298,12 +298,6 @@ dependencies = [
|
||||
"system-deps",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "atomic-counter"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "62f447d68cfa5a9ab0c1c862a703da2a65b5ed1b7ce1153c9eb0169506d56019"
|
||||
|
||||
[[package]]
|
||||
name = "atomic-waker"
|
||||
version = "1.1.2"
|
||||
@ -997,7 +991,6 @@ dependencies = [
|
||||
name = "drop-app"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"atomic-counter",
|
||||
"directories",
|
||||
"env_logger",
|
||||
"hex",
|
||||
|
||||
@ -42,7 +42,6 @@ http = "1.1.0"
|
||||
tokio = { version = "1.40.0", features = ["rt", "tokio-macros", "signal"] }
|
||||
urlencoding = "2.1.3"
|
||||
md5 = "0.7.0"
|
||||
atomic-counter = "1.0.1"
|
||||
|
||||
[dependencies.rustix]
|
||||
version = "0.38.37"
|
||||
|
||||
@ -5,12 +5,10 @@ use crate::remote::RemoteAccessError;
|
||||
use crate::DB;
|
||||
use log::info;
|
||||
use rayon::ThreadPoolBuilder;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::fmt::{Display, Formatter};
|
||||
use std::fs::{create_dir_all, File};
|
||||
use std::path::Path;
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::sync::Mutex;
|
||||
use urlencoding::encode;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
use std::sync::{atomic::Ordering, Arc, Mutex};
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use log::info;
|
||||
use rayon::spawn;
|
||||
@ -36,9 +36,9 @@ pub fn get_game_download_progress(
|
||||
state: tauri::State<'_, Mutex<AppState>>,
|
||||
game_id: String,
|
||||
) -> Result<f64, String> {
|
||||
let da = use_download_agent(state, game_id)?;
|
||||
let download_agent = use_download_agent(state, game_id)?;
|
||||
|
||||
let progress = &da.progress;
|
||||
let progress = &download_agent.progress;
|
||||
|
||||
Ok(progress.get_progress())
|
||||
}
|
||||
|
||||
@ -3,7 +3,6 @@ use crate::db::DatabaseImpls;
|
||||
use crate::downloads::manifest::DropDownloadContext;
|
||||
use crate::remote::RemoteAccessError;
|
||||
use crate::DB;
|
||||
use log::info;
|
||||
use md5::{Context, Digest};
|
||||
use reqwest::blocking::Response;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user