fix: cleanup dependencies

This commit is contained in:
DecDuck
2025-09-14 09:27:49 +10:00
parent c1beef380e
commit ab219670dc
9 changed files with 67 additions and 856 deletions

857
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -27,13 +27,7 @@ name = "drop_app_lib"
# rustflags = ["-C", "target-feature=+aes,+sse2"] # rustflags = ["-C", "target-feature=+aes,+sse2"]
[dependencies] [dependencies]
atomic-instant-full = "0.1.0"
bitcode = "0.6.6"
boxcar = "0.2.7" boxcar = "0.2.7"
bytes = "1.10.1"
cacache = "13.1.0"
chrono = "0.4.38"
deranged = "=0.4.0"
dirs = "6.0.0" dirs = "6.0.0"
drop-database = { path = "./drop-database" } drop-database = { path = "./drop-database" }
drop-downloads = { path = "./drop-downloads" } drop-downloads = { path = "./drop-downloads" }
@ -41,33 +35,16 @@ drop-errors = { path = "./drop-errors" }
drop-native-library = { path = "./drop-native-library" } drop-native-library = { path = "./drop-native-library" }
drop-process = { path = "./drop-process" } drop-process = { path = "./drop-process" }
drop-remote = { path = "./drop-remote" } drop-remote = { path = "./drop-remote" }
droplet-rs = "0.7.3"
filetime = "0.2.25"
futures-core = "0.3.31"
futures-lite = "2.6.0" futures-lite = "2.6.0"
gethostname = "1.0.1"
hex = "0.4.3" hex = "0.4.3"
http = "1.1.0" http = "1.1.0"
http-serde = "2.1.1"
humansize = "2.1.3"
known-folders = "1.2.0" known-folders = "1.2.0"
log = "0.4.22" log = "0.4.22"
md5 = "0.7.0" md5 = "0.7.0"
page_size = "0.6.0"
parking_lot = "0.12.3"
rand = "0.9.1"
rayon = "1.10.0" rayon = "1.10.0"
regex = "1.11.1" regex = "1.11.1"
reqwest-middleware = "0.4.0"
reqwest-middleware-cache = "0.1.1"
reqwest-websocket = "0.5.0" reqwest-websocket = "0.5.0"
schemars = "0.8.22"
serde_json = "1" serde_json = "1"
serde_with = "3.12.0"
sha1 = "0.10.6"
shared_child = "1.0.1"
slice-deque = "0.3.0"
sysinfo = "0.36.1"
tar = "0.4.44" tar = "0.4.44"
tauri = { version = "2.7.0", features = ["protocol-asset", "tray-icon"] } tauri = { version = "2.7.0", features = ["protocol-asset", "tray-icon"] }
tauri-plugin-autostart = "2.0.0" tauri-plugin-autostart = "2.0.0"
@ -77,20 +54,10 @@ tauri-plugin-opener = "2.4.0"
tauri-plugin-os = "2" tauri-plugin-os = "2"
tauri-plugin-shell = "2.2.1" tauri-plugin-shell = "2.2.1"
tempfile = "3.19.1" tempfile = "3.19.1"
throttle_my_fn = "0.2.6"
tokio-util = { version = "0.7.16", features = ["io"] }
umu-wrapper-lib = "0.1.0"
url = "2.5.2" url = "2.5.2"
urlencoding = "2.1.3"
walkdir = "2.5.0"
webbrowser = "1.0.2" webbrowser = "1.0.2"
whoami = "1.6.0" whoami = "1.6.0"
zstd = "0.13.3" zstd = "0.13.3"
# tailscale = { path = "./tailscale" }
[dependencies.dynfmt]
version = "0.1.5"
features = ["curly"]
[dependencies.log4rs] [dependencies.log4rs]
version = "1.3.0" version = "1.3.0"
@ -109,10 +76,6 @@ features = [
"stream", "stream",
] ]
[dependencies.rustbreak]
version = "2"
features = ["other_errors"] # You can also use "yaml_enc" or "bin_enc"
[dependencies.rustix] [dependencies.rustix]
version = "0.38.37" version = "0.38.37"
features = ["fs"] features = ["fs"]
@ -121,10 +84,6 @@ features = ["fs"]
version = "1" version = "1"
features = ["derive", "rc"] features = ["derive", "rc"]
[dependencies.tokio]
version = "1.40.0"
features = ["rt", "signal", "tokio-macros"]
[dependencies.uuid] [dependencies.uuid]
version = "1.10.0" version = "1.10.0"
features = ["fast-rng", "macro-diagnostics", "v4"] features = ["fast-rng", "macro-diagnostics", "v4"]

View File

@ -9,11 +9,10 @@ chrono = "0.4.42"
dirs = "6.0.0" dirs = "6.0.0"
log = "0.4.28" log = "0.4.28"
native_model = { git = "https://github.com/Drop-OSS/native_model.git", version = "0.6.4", features = [ native_model = { git = "https://github.com/Drop-OSS/native_model.git", version = "0.6.4", features = [
"rmp_serde_1_3", "rmp_serde_1_3"
] } ] }
rustbreak = "2.0.0" rustbreak = "2.0.0"
serde = { version = "1.0.219", features = ["derive"] } serde = { version = "1.0.219", features = ["derive"] }
serde_json = "1.0.143"
serde_with = "3.14.0" serde_with = "3.14.0"
url = "2.5.7" url = "2.5.7"
whoami = "1.6.1" whoami = "1.6.1"

View File

@ -39,7 +39,7 @@ impl<T: native_model::Model + Serialize + DeserializeOwned> DeSerializer<T>
fn deserialize<R: std::io::Read>(&self, mut s: R) -> rustbreak::error::DeSerResult<T> { fn deserialize<R: std::io::Read>(&self, mut s: R) -> rustbreak::error::DeSerResult<T> {
let mut buf = Vec::new(); let mut buf = Vec::new();
s.read_to_end(&mut buf) s.read_to_end(&mut buf)
.map_err(|e| rustbreak::error::DeSerError::Other(e.into()))?; .map_err(|e| rustbreak::error::DeSerError::Internal(e.to_string()))?;
let (val, _version) = native_model::decode(buf) let (val, _version) = native_model::decode(buf)
.map_err(|e| DeSerError::Internal(e.to_string()))?; .map_err(|e| DeSerError::Internal(e.to_string()))?;
Ok(val) Ok(val)

View File

@ -6,7 +6,6 @@ edition = "2024"
[dependencies] [dependencies]
bitcode = "0.6.7" bitcode = "0.6.7"
drop-database = { path = "../drop-database" } drop-database = { path = "../drop-database" }
drop-downloads = { path = "../drop-downloads" }
drop-errors = { path = "../drop-errors" } drop-errors = { path = "../drop-errors" }
drop-remote = { path = "../drop-remote" } drop-remote = { path = "../drop-remote" }
log = "0.4.28" log = "0.4.28"

View File

@ -8,10 +8,9 @@ chrono = "0.4.42"
drop-database = { path = "../drop-database" } drop-database = { path = "../drop-database" }
drop-errors = { path = "../drop-errors" } drop-errors = { path = "../drop-errors" }
drop-native-library = { path = "../drop-native-library" } drop-native-library = { path = "../drop-native-library" }
dynfmt = "0.1.5" dynfmt = { version = "0.1.5", features = ["curly"] }
log = "0.4.28" log = "0.4.28"
page_size = "0.6.0" page_size = "0.6.0"
serde = "1.0.220"
shared_child = "1.1.1" shared_child = "1.1.1"
sysinfo = "0.37.0" sysinfo = "0.37.0"
tauri = "2.8.5" tauri = "2.8.5"

View File

@ -15,7 +15,6 @@ http = "1.3.1"
log = "0.4.28" log = "0.4.28"
md5 = "0.8.0" md5 = "0.8.0"
reqwest = "0.12.23" reqwest = "0.12.23"
reqwest-websocket = "0.5.1"
serde = { version = "1.0.220", features = ["derive"] } serde = { version = "1.0.220", features = ["derive"] }
tauri = "2.8.5" tauri = "2.8.5"
url = "2.5.7" url = "2.5.7"

View File

@ -4,7 +4,6 @@
#![feature(duration_millis_float)] #![feature(duration_millis_float)]
#![feature(iterator_try_collect)] #![feature(iterator_try_collect)]
#![deny(clippy::all)] #![deny(clippy::all)]
#![warn(unused_extern_crates)]
mod auth; mod auth;
mod client; mod client;
@ -16,7 +15,7 @@ mod remote;
mod setup; mod setup;
use crate::auth::recieve_handshake; use crate::auth::recieve_handshake;
use crate::native_library::collection_commands::fetch_collections; use crate::native_library::collection_commands::{add_game_to_collection, create_collection, delete_collection, delete_game_in_collection, fetch_collection, fetch_collections};
use crate::native_library::commands::{ use crate::native_library::commands::{
fetch_game, fetch_game_status, fetch_game_version_options, fetch_library, uninstall_game, fetch_game, fetch_game_status, fetch_game_version_options, fetch_library, uninstall_game,
}; };
@ -152,11 +151,11 @@ pub fn run() {
update_game_configuration, update_game_configuration,
// Collections // Collections
fetch_collections, fetch_collections,
// fetch_collection, fetch_collection,
// create_collection, create_collection,
// add_game_to_collection, add_game_to_collection,
// delete_collection, delete_collection,
// delete_game_in_collection, delete_game_in_collection,
// Downloads // Downloads
download_game, download_game,
resume_download, resume_download,

View File

@ -1,4 +1,4 @@
use std::{collections::HashMap, env, path::Path, str::FromStr as _, sync::{Arc, Mutex}}; use std::{env, path::Path, str::FromStr as _, sync::{Arc, Mutex}};
use drop_database::{borrow_db_checked, borrow_db_mut_checked, db::{DatabaseImpls as _, DATA_ROOT_DIR}, models::data::GameDownloadStatus, DB}; use drop_database::{borrow_db_checked, borrow_db_mut_checked, db::{DatabaseImpls as _, DATA_ROOT_DIR}, models::data::GameDownloadStatus, DB};
use drop_downloads::download_manager_builder::DownloadManagerBuilder; use drop_downloads::download_manager_builder::DownloadManagerBuilder;