[package]
license = "Apache-2.0"
name = "kigi-sqlite-journal"
version.workspace = true
edition.workspace = true
description = "Filesystem-aware SQLite journal-mode selection: WAL on local disks, rollback journal on network mounts where WAL's mmap'd -shm is unsafe"

[dependencies]
# Matches the pinned rusqlite of every consumer (bundled = self-contained SQLite).
rusqlite = { version = "0.37", features = ["bundled"] }
tracing = { workspace = true }

[target.'cfg(unix)'.dependencies]
libc = { workspace = true }

# Same per-crate pin as kigi-crash-handler / kigi-system-power / kigi-tui
# (windows-sys has no workspace entry).
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = [
    "Win32_Foundation",
    "Win32_Storage_FileSystem",
    "Win32_System_WindowsProgramming",
] }

[dev-dependencies]
tempfile = { workspace = true }

[lints]
workspace = true
