[workspace]
resolver = "2"
members = [
    "src-tauri",
<% if enable_proto_gen %>
    "tools/proto-gen",
<% endif %>
<% if enable_error_gen %>
    "tools/error-gen",
<% endif %>
]

[workspace.package]
version = "0.1.0"
edition = "2024"
authors = ["<<author>>"]
license = "<<license>>"

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

# Error handling
anyhow = "1.0"
thiserror = "2.0"

# Async runtime
tokio = { version = "1", features = ["full"] }

# CLI
clap = { version = "4", features = ["derive"] }

<% if enable_proto_gen %>
# Protobuf and gRPC
prost = "0.13"
prost-build = "0.13"
prost-types = "0.13"
tonic = "0.12"
tonic-build = "0.12"
<% endif %>

# Regex
regex = "1.12"

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

# Tauri
tauri = { version = "2", features = [] }
tauri-build = { version = "2", features = [] }
