| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- [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
- [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"]
- 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"]
|