51 lines
1.4 KiB
TOML
51 lines
1.4 KiB
TOML
[package]
|
|
name = "sqlite_database"
|
|
edition = "2024"
|
|
version = "0.0.1"
|
|
publish = false
|
|
|
|
[package.metadata.cargo-udeps.ignore]
|
|
normal = ["workspace-build-acceleration"]
|
|
|
|
[lib]
|
|
name = "sqlite_database"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
core_types.workspace = true
|
|
# cargo-hakari workspace hack (faster compile times)
|
|
workspace-build-acceleration.workspace = true
|
|
|
|
# Internal
|
|
errors.workspace = true
|
|
sqlite_identifiers.workspace = true
|
|
|
|
# External
|
|
anyhow.workspace = true
|
|
chrono.workspace = true
|
|
log.workspace = true
|
|
|
|
# TODO(bt,2025-07-09): Update sqlx ASAP. We're stuck on 0.7 because of the complex use of internal types and macros in the database crate.
|
|
# We're going to embed in-memory SQLite
|
|
sqlx = { package = "sqlx", version = "0.7.4", features = ["runtime-tokio-rustls", "sqlite", "chrono"] }
|
|
|
|
# Needed to safety check some queries we can't use escaping for
|
|
once_cell.workspace = true
|
|
regex.workspace = true
|
|
|
|
# Serialization
|
|
serde.workspace = true
|
|
serde_derive.workspace = true
|
|
serde_json.workspace = true
|
|
|
|
[dev-dependencies]
|
|
# Integration tests run queries against a throwaway migrated database.
|
|
tempfile.workspace = true
|
|
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
|
|
# serial_test = "3.0.0"
|
|
|
|
[build-dependencies]
|
|
tempfile.workspace = true
|
|
sqlx = { package = "sqlx", version = "0.7.4", features = ["runtime-tokio-rustls", "sqlite", "chrono"] }
|
|
#rusqlite = "0.25.4" # NB: For the build.rs file
|