Refactor: Use workspace dependencies
This commit is contained in:
parent
6ca5720a62
commit
a3d29d3d84
1 changed files with 19 additions and 19 deletions
38
Cargo.toml
38
Cargo.toml
|
|
@ -10,33 +10,33 @@ categories = ["gui", "network-programming"]
|
|||
|
||||
[dependencies]
|
||||
# Core from botlib
|
||||
botlib = { path = "../botlib", features = ["http-client"] }
|
||||
botlib = { workspace = true, features = ["http-client"] }
|
||||
|
||||
# Tauri
|
||||
tauri = { version = "2", features = ["unstable"] }
|
||||
tauri-plugin-dialog = "2"
|
||||
tauri-plugin-opener = "2"
|
||||
tauri = { workspace = true }
|
||||
tauri-plugin-dialog = { workspace = true }
|
||||
tauri-plugin-opener = { workspace = true }
|
||||
|
||||
# Common
|
||||
anyhow = "1.0"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
dirs = "6.0"
|
||||
log = "0.4"
|
||||
env_logger = "0.11"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
tokio = { version = "1.41", features = ["full"] }
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
anyhow = { workspace = true }
|
||||
chrono = { workspace = true, features = ["serde"] }
|
||||
dirs = { workspace = true }
|
||||
log = { workspace = true }
|
||||
env_logger = { workspace = true }
|
||||
serde = { workspace = true, features = ["derive"] }
|
||||
serde_json = { workspace = true }
|
||||
tokio = { workspace = true, features = ["full"] }
|
||||
reqwest = { workspace = true, features = ["json"] }
|
||||
|
||||
# Unix process control
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
libc = "0.2"
|
||||
ksni = { version = "0.2", optional = true }
|
||||
libc = { workspace = true }
|
||||
ksni = { workspace = true, optional = true }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
trayicon = { version = "0.2", optional = true }
|
||||
image = "0.25"
|
||||
thiserror = "2.0"
|
||||
trayicon = { workspace = true, optional = true }
|
||||
image = { workspace = true }
|
||||
thiserror = { workspace = true }
|
||||
|
||||
[features]
|
||||
default = ["desktop"]
|
||||
|
|
@ -44,7 +44,7 @@ desktop = []
|
|||
desktop-tray = ["dep:ksni", "dep:trayicon"]
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = "2"
|
||||
tauri-build = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue