| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- [package]
- name = "kuatia-storage-sql"
- description = "SQLite/PostgreSQL storage backend for the Kuatia ledger."
- version.workspace = true
- edition.workspace = true
- rust-version.workspace = true
- license.workspace = true
- repository.workspace = true
- authors.workspace = true
- keywords.workspace = true
- categories.workspace = true
- [lints]
- workspace = true
- [dependencies]
- kuatia-types.workspace = true
- kuatia-storage.workspace = true
- sqlx = { workspace = true, features = ["macros"] }
- async-trait.workspace = true
- serde.workspace = true
- serde_json.workspace = true
- # Pinned to the exact version sqlx-sqlite depends on, with default features off
- # to match: it is a `links = "sqlite3"` crate, so the whole graph must resolve to
- # one instance. Only needed to register the money functions (see `sqlite_ext`).
- libsqlite3-sys = { version = "0.30.1", default-features = false, optional = true }
- [dev-dependencies]
- tokio = { workspace = true, features = ["full"] }
- paste.workspace = true
- kuatia-types.workspace = true
- kuatia-storage.workspace = true
- sqlx = { workspace = true, features = ["macros"] }
- serde_json.workspace = true
- [features]
- default = ["sqlite"]
- sqlite = ["sqlx/sqlite", "dep:libsqlite3-sys"]
- postgres = ["sqlx/postgres"]
- # Opt-in gate for the Postgres conformance suite (`tests/postgres.rs`), which
- # needs a live `DATABASE_URL`. Kept distinct from `postgres` so that a plain
- # `cargo test` (which unifies `postgres` on via the dashboard's dependency) does
- # not try to run it; only the dedicated CI job enables `test-postgres`.
- test-postgres = ["postgres"]
- # Pass through to the domain crates: swap the Cent backing to i128.
- i128 = ["kuatia-types/i128", "kuatia-storage/i128"]
|