mirror of
https://github.com/Darkatse/TauriTavern.git
synced 2026-10-14 02:21:24 +00:00
perf: package size optimization
This commit is contained in:
parent
8fb5dcbf95
commit
95927c47ab
8 changed files with 41 additions and 712 deletions
|
|
@ -1 +1,3 @@
|
|||
src-tauri/data
|
||||
src-tauri/data
|
||||
src/webfonts/**/*.woff
|
||||
src/webfonts/*.ttf
|
||||
|
|
|
|||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
|
@ -92,9 +92,6 @@ importers:
|
|||
'@tauri-apps/plugin-fs':
|
||||
specifier: ~2.4.5
|
||||
version: 2.4.5
|
||||
'@tauri-apps/plugin-opener':
|
||||
specifier: ~2.5.3
|
||||
version: 2.5.3
|
||||
'@zeldafan0225/ai_horde':
|
||||
specifier: ^5.2.0
|
||||
version: 5.2.0
|
||||
|
|
@ -937,9 +934,6 @@ packages:
|
|||
'@tauri-apps/plugin-fs@2.4.5':
|
||||
resolution: {integrity: sha512-dVxWWGE6VrOxC7/jlhyE+ON/Cc2REJlM35R3PJX3UvFw2XwYhLGQVAIyrehenDdKjotipjYEVc4YjOl3qq90fA==}
|
||||
|
||||
'@tauri-apps/plugin-opener@2.5.3':
|
||||
resolution: {integrity: sha512-CCcUltXMOfUEArbf3db3kCE7Ggy1ExBEBl51Ko2ODJ6GDYHRp1nSNlQm5uNCFY5k7/ufaK5Ib3Du/Zir19IYQQ==}
|
||||
|
||||
'@thunder04/supermap@3.0.5':
|
||||
resolution: {integrity: sha512-dVlKfY/+Kiy3Vyy7zUj/X2ZB+6e+2QWsEqMOVAQc15FYNV1lmw4sHn3YE4VBsfmm0Iu/0MABUla8WZMGIdMYwg==}
|
||||
|
||||
|
|
@ -4042,10 +4036,6 @@ snapshots:
|
|||
dependencies:
|
||||
'@tauri-apps/api': 2.10.1
|
||||
|
||||
'@tauri-apps/plugin-opener@2.5.3':
|
||||
dependencies:
|
||||
'@tauri-apps/api': 2.10.1
|
||||
|
||||
'@thunder04/supermap@3.0.5': {}
|
||||
|
||||
'@tokenizer/token@0.3.0': {}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
Subproject commit f63399a4f9c5ef0f311b305e82b8734333375ab2
|
||||
696
src-tauri/Cargo.lock
generated
696
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -22,37 +22,42 @@ serde_json = "1"
|
|||
tauri = { version = "2.10.2", features = ["protocol-asset"] }
|
||||
tauri-plugin-opener = "2.5.3"
|
||||
tauri-plugin-fs = "2.4.5"
|
||||
tauri-plugin-http = "2.5.7"
|
||||
tauri-plugin-dialog = "2.6.0"
|
||||
tauri-plugin-shell = "2.3.5"
|
||||
tauri-plugin-notification = "2.3.1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
thiserror = "1.0"
|
||||
log = "0.4"
|
||||
env_logger = "0.10"
|
||||
tracing = "0.1"
|
||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||
tracing-subscriber = { version = "0.3", default-features = false, features = ["ansi", "env-filter", "fmt", "std"] }
|
||||
tracing-appender = "0.2"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
tokio = { version = "1", features = ["full"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
chrono = { version = "0.4", default-features = false, features = ["clock", "serde", "std"] }
|
||||
tokio = { version = "1", default-features = false, features = ["fs", "io-util", "macros", "rt-multi-thread", "sync"] }
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
|
||||
base64 = "0.21"
|
||||
sha2 = "0.10"
|
||||
hmac = "0.12"
|
||||
rand = "0.8"
|
||||
uuid = { version = "1.4", features = ["v4", "serde"] }
|
||||
uuid = { version = "1.4", default-features = false, features = ["serde", "std", "v4"] }
|
||||
async-trait = "0.1"
|
||||
url = "2.4"
|
||||
zip = "0.6"
|
||||
image = "0.24"
|
||||
zip = { version = "0.6", default-features = false, features = ["deflate"] }
|
||||
image = { version = "0.24", default-features = false, features = ["bmp", "gif", "ico", "jpeg", "png", "webp"] }
|
||||
png = "0.17"
|
||||
mime_guess = "2.0.5"
|
||||
flate2 = "1.1.9"
|
||||
miktik = "0.1.1"
|
||||
ureq = "3.2.0"
|
||||
miktik = { version = "0.1.2", default-features = false, features = ["openai", "huggingface", "sentencepiece"] }
|
||||
ureq = { version = "3.2.0", default-features = false, features = ["rustls"] }
|
||||
|
||||
[features]
|
||||
default = ["custom-protocol"]
|
||||
custom-protocol = ["tauri/custom-protocol"]
|
||||
portable = []
|
||||
|
||||
[profile.dev]
|
||||
incremental = true
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
lto = true
|
||||
opt-level = "s"
|
||||
panic = "abort"
|
||||
strip = "symbols"
|
||||
|
|
|
|||
|
|
@ -7,9 +7,7 @@
|
|||
],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"dialog:default",
|
||||
"opener:default",
|
||||
"shell:allow-open",
|
||||
"fs:allow-read-text-file",
|
||||
"fs:allow-resource-read-recursive",
|
||||
"fs:default",
|
||||
|
|
|
|||
|
|
@ -13,11 +13,7 @@ use tauri::Manager;
|
|||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub async fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(tauri_plugin_http::init())
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.plugin(tauri_plugin_notification::init())
|
||||
.setup(move |app| {
|
||||
let app_handle = app.handle().clone();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
"version": "1.2.0-beta",
|
||||
"identifier": "com.tauritavern.client",
|
||||
"build": {
|
||||
"frontendDist": "../src"
|
||||
"frontendDist": "../src",
|
||||
"removeUnusedCommands": true
|
||||
},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue