[package]
name         = "spgctl"
version      = { workspace = true }
edition      = { workspace = true }
rust-version = { workspace = true }
authors      = { workspace = true }
license      = { workspace = true }
description  = "SPG command-line client — speaks the self-built wire protocol."
repository   = { workspace = true }
categories   = ["command-line-utilities", "database"]
keywords     = ["spg", "cli", "database", "client"]

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

[dependencies]
spg-wire    = { workspace = true }
# Backup / restore subcommands talk directly to the on-disk format,
# never via the wire protocol — the server can be down or absent.
spg-storage = { workspace = true }
# v6.10.5 — `spg wal-lint` dry-run-applies WAL records against a
# catalog snapshot to validate operator commands before they
# reach a live server.
spg-engine  = { workspace = true }
spg-crypto  = { workspace = true }

[lints]
workspace = true

[dev-dependencies]
criterion   = { workspace = true }
spg-engine  = { workspace = true }
spg-crypto  = { workspace = true }

[[bench]]
name    = "backup"
harness = false
