[package]
name = "trailbase-sqlite"
version = "0.3.0"
edition = "2024"
license = "OSL-3.0"
description = "Async SQLite connection for TrailBase"
homepage = "https://trailbase.io"
repository = "https://github.com/trailbaseio/trailbase"
readme = "../../README.md"
autobenches = false

[[bench]]
name = "synthetic"
path = "benches/synthetic/benchmark.rs"
harness = false

[[bench]]
name = "join-order"
path = "benches/join-order/main.rs"
harness = false

[features]
default = []
generic = ["pg"]
pg = ["dep:postgres", "dep:bytes", "dep:pgrow2serde", "dep:regex"]

[dependencies]
bytes = { version = "1.11.1", optional = true }
flume = { workspace = true }
log = { version = "^0.4.21", default-features = false }
parking_lot = { workspace = true }
pgrow2serde = { git = "https://github.com/deknowny/pgrow2serde", optional = true }
postgres = { version = "0.19.12", optional = true, features = ["with-serde_json-1"] }
regex = { version = "1.12.3", optional = true}
rusqlite = { workspace = true }
serde = { workspace = true }
serde_rusqlite = { workspace = true }
smallvec = { version = "1.15.1", features = ["const_generics"] }
thiserror = "2.0.12"
tokio = { workspace = true }

[dev-dependencies]
chrono = "0.4.43"
criterion = { version = "0.8", features = ["html_reports", "async_tokio"] }
csv = "1.4.0"
env_logger.workspace = true
futures-util = { workspace = true }
glob = "0.3.3"
itertools = "0.14.0"
rand = { workspace = true }
tempfile = "3.19.1"
uuid = { workspace = true }
