fix blocking UI when select the file in Status also select in the file History
42 lines
1.5 KiB
TOML
42 lines
1.5 KiB
TOML
[package]
|
|
name = "git_lite"
|
|
version = "0.1.0"
|
|
description = "Rust backend for a lightweight Git desktop client"
|
|
edition = "2021"
|
|
rust-version = "1.77"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-dialog = "=2.7.0"
|
|
keyring = { version = "3", features = ["apple-native", "windows-native", "async-secret-service", "crypto-rust", "async-io"] }
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
tauri-plugin-updater = "2"
|
|
|
|
# ── Build profiles ───────────────────────────────────────────────────────────
|
|
# Dev: keep incremental compilation and emit only line-table debug info instead
|
|
# of full debuginfo. This cuts link time noticeably (linking is the slow part of
|
|
# a `tauri dev` recompile) while still giving panic backtraces with line numbers.
|
|
[profile.dev]
|
|
incremental = true
|
|
debug = "line-tables-only"
|
|
|
|
# Optimize third-party dependencies once (they are cached), so the running dev
|
|
# build is snappy without slowing down rebuilds of our own crate.
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
|
|
# Release: smaller binary (also shrinks the auto-updater download) without
|
|
# regressing runtime performance of the code-search feature.
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
strip = true
|