[package]
name         = "spg-embedded"
version      = { workspace = true }
edition      = { workspace = true }
rust-version = { workspace = true }
authors      = { workspace = true }
license      = { workspace = true }
readme       = "README.md"
repository   = { workspace = true }
description  = "Embedded SQL database for Rust. Single-writer, WAL-backed, crash-safe. Zero external dependencies. PG-flavoured SQL with FOREIGN KEY, JOINs, vectors (HNSW/pgvector ops), and a cold tier."
categories   = ["database", "database-implementations", "embedded"]
keywords     = ["spg", "database", "embedded", "sql", "vector"]

[dependencies]
spg-engine   = { workspace = true }
spg-storage  = { workspace = true }
# v7.1 — WAL record CRC32 (same algo + same on-disk format as
# `spg-server`, so an embedded-written DB boots cleanly on the
# server and vice versa).
spg-crypto   = { workspace = true }
# v7.1.4 — cold-segment manifest persistence (SPGMAN01 v10).
# Same bytes spg-server reads + writes, so a database an
# embedded process produces boots cleanly on the server (and
# vice versa) even with cold-tier state.
spg-manifest = { workspace = true }

[dev-dependencies]
criterion = { workspace = true }
# v7.18 PITR integration tests need scratch directories.
tempfile  = "3"

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

[lints]
workspace = true
