aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri
diff options
context:
space:
mode:
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/Cargo.toml60
-rw-r--r--src-tauri/src/main.rs1
2 files changed, 34 insertions, 27 deletions
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index cf92627..28d600a 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,47 +1,53 @@
[package]
name = "dropout"
version = "0.2.0-alpha.1"
-edition = "2021"
+edition = "2024"
authors = ["HsiangNianian"]
description = "The DropOut Minecraft Game Launcher"
-license = "MIT"
repository = "https://github.com/HydroRoll-Team/DropOut"
+license = "MIT"
publish = false
+[package.metadata.deb]
+depends = "libgtk-3-0"
+section = "games"
+assets = [
+ ["target/release/dropout", "usr/bin/", "755"],
+]
+
[dependencies]
-dropout-macros = { version = "0.1.0", path = "../crates/macros" }
-serde = { version = "1.0", features = ["derive"] }
-toml = "0.5"
-log = "0.4"
+bytes = "1.11.0"
+chrono = "0.4"
+dirs = "5.0"
+dropout-core = { path = "../crates/core", version = "0.1.0" }
+dropout-macros = { path = "../crates/macros", version = "0.1.0" }
env_logger = "0.9"
-tokio = { version = "1.49.0", features = ["full"] }
-reqwest = { version = "0.11", features = ["json", "blocking", "stream", "multipart"] }
-serde_json = "1.0.149"
-tauri = { version = "2.9", features = [] }
-tauri-plugin-shell = "2.3"
-uuid = { version = "1.10.0", features = ["v3", "v4", "serde"] }
+flate2 = "1.0"
futures = "0.3"
+hex = "0.4"
+log = "0.4"
+regex = "1.12.2"
+reqwest = { version = "0.11", features = [
+ "blocking",
+ "json",
+ "multipart",
+ "stream"
+] }
+serde = { version = "1.0", features = ["derive"] }
+serde_json = "1.0.149"
+serde_urlencoded = "0.7.1"
sha1 = "0.10"
sha2 = "0.10"
-hex = "0.4"
-zip = "2.2.2"
-flate2 = "1.0"
tar = "0.4"
-dirs = "5.0"
-serde_urlencoded = "0.7.1"
+tauri = { version = "2.9", features = [] }
tauri-plugin-dialog = "2.6.0"
tauri-plugin-fs = "2.4.5"
-bytes = "1.11.0"
-chrono = "0.4"
-regex = "1.12.2"
+tauri-plugin-shell = "2.3"
+tokio = { version = "1.49.0", features = ["full"] }
+toml = "0.5"
ts-rs = { version = "11.1.0", features = ["serde-compat"] }
+uuid = { version = "1.10.0", features = ["serde", "v3", "v4"] }
+zip = "2.2.2"
[build-dependencies]
tauri-build = { version = "2.0", features = [] }
-
-[package.metadata.deb]
-depends = "libgtk-3-0"
-section = "games"
-assets = [
- ["target/release/dropout", "usr/bin/", "755"],
-]
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index b74c746..f652012 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -896,6 +896,7 @@ fn parse_jvm_arguments(
}
#[tauri::command]
+#[dropout_macros::api]
async fn get_versions(
_window: Window,
instance_state: State<'_, core::instance::InstanceState>,