mirror of
https://github.com/LittleQuartZ/addmon.git
synced 2026-02-07 02:45:28 +07:00
refactor: move Tauri window title to config and add mode toggle to header
This commit is contained in:
parent
0a4b289d70
commit
d19a7bdaa0
11 changed files with 489 additions and 65 deletions
|
|
@ -1,28 +1,56 @@
|
|||
[package]
|
||||
name = "app"
|
||||
name = "addmon"
|
||||
version = "0.1.0"
|
||||
description = "A Tauri App"
|
||||
description = "Alert Monitoring App"
|
||||
authors = ["you"]
|
||||
license = ""
|
||||
repository = ""
|
||||
edition = "2021"
|
||||
rust-version = "1.77.2"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
default-run = "addmon-desktop"
|
||||
|
||||
[lib]
|
||||
name = "app_lib"
|
||||
name = "addmon_lib"
|
||||
crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
|
||||
[[bin]]
|
||||
name = "addmon-desktop"
|
||||
path = "src/main.rs"
|
||||
required-features = ["desktop"]
|
||||
|
||||
[[bin]]
|
||||
name = "addmon-server"
|
||||
path = "src/bin/server.rs"
|
||||
required-features = ["server"]
|
||||
|
||||
[features]
|
||||
default = ["desktop"]
|
||||
desktop = [
|
||||
"tauri",
|
||||
"tauri-build",
|
||||
"tauri-plugin-log",
|
||||
"tauri-plugin-fs",
|
||||
"tauri-plugin-dialog",
|
||||
"tauri-plugin-axum",
|
||||
]
|
||||
server = ["tokio/full", "tower-http"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "2.5.3", features = [] }
|
||||
tauri-build = { version = "2.5.3", features = [], optional = true }
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = { version = "2.9.5", features = ["macos-private-api"] }
|
||||
tauri-plugin-log = "2"
|
||||
tauri-plugin-fs = "2"
|
||||
tauri-plugin-dialog = "2"
|
||||
thiserror = "1"
|
||||
axum = "0.8"
|
||||
tower = "0.5"
|
||||
|
||||
tauri = { version = "2.9.5", features = ["macos-private-api"], optional = true }
|
||||
tauri-plugin-log = { version = "2", optional = true }
|
||||
tauri-plugin-fs = { version = "2", optional = true }
|
||||
tauri-plugin-dialog = { version = "2", optional = true }
|
||||
tauri-plugin-axum = { git = "https://github.com/mcitem/tauri-plugin-axum", optional = true }
|
||||
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "macros"], default-features = false }
|
||||
tower-http = { version = "0.6", features = ["fs", "cors"], optional = true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue