[workspace]
resolver = "2"
members = [
  "crates/nana-contracts",
  "crates/nana-domain",
  "crates/nana-engine",
  "crates/nana-runtime",
  "crates/nana-store",
  "src-tauri",
]

[workspace.package]
version = "0.1.0"
edition = "2024"
rust-version = "1.96"
license = "MIT"
authors = ["nana-story contributors"]

[workspace.dependencies]
nana-domain = { path = "crates/nana-domain" }
nana-engine = { path = "crates/nana-engine" }
nana-runtime = { path = "crates/nana-runtime" }
nana-store = { path = "crates/nana-store" }
openlapp = { path = "../lapp-rs", default-features = false, features = ["client-rustls", "system-vault"] }
rusqlite = { version = "0.38.0", features = ["bundled"] }
schemars = "1.0.4"
semver = { version = "1.0.27", features = ["serde"] }
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
sha2 = "0.10.9"
thiserror = "2.0.17"
tokio = { version = "1.44.2", features = ["rt", "time"] }
ts-rs = { version = "11.1.0", features = ["serde-compat"] }

[workspace.lints.rust]
unsafe_code = "deny"

[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
missing_errors_doc = "allow"
module_name_repetitions = "allow"
