[package]
name = "spacedrive"
version = "2.0.0-alpha.2"
edition = "2021"

[[bin]]
name = "Spacedrive"
path = "src/main.rs"

[build-dependencies]
tauri-build = { version = "2.0", features = [] }

[dependencies]
# Tauri
tauri = { version = "2.1", features = ["macos-private-api", "devtools", "protocol-asset"] }
tauri-plugin-dialog = "2.0"
tauri-plugin-fs = "2.0"
tauri-plugin-shell = "2.0"
tauri-plugin-clipboard-manager = "2.0"
tauri-plugin-os = "2.0"
tauri-plugin-updater = "2.0"

# Core bridge
sd-tauri-core = { path = "../sd-tauri-core" }

# File opening
file-opening = { path = "../crates/file-opening" }

# Async runtime
tokio = { version = "1.40", features = ["full"] }
tokio-util = { version = "0.7", features = ["io"] }

# HTTP server
axum = "0.7"

# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

# Drag and drop
uuid = { version = "1.11", features = ["v4", "serde"] }
parking_lot = "0.12"

[target.'cfg(target_os = "macos")'.dependencies]
sd-desktop-macos = { path = "../crates/macos" }
file-opening-macos = { path = "../crates/file-opening-macos" }

[target.'cfg(target_os = "windows")'.dependencies]
file-opening-windows = { path = "../crates/file-opening-windows" }

[target.'cfg(target_os = "linux")'.dependencies]
file-opening-linux = { path = "../crates/file-opening-linux" }

[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
