[package]
name = "evento"
version = "2.0.0-alpha.13"
edition.workspace = true
license.workspace = true
repository.workspace = true
publish = true
description = "Event sourcing and CQRS toolkit with SQL persistence, projections, and subscriptions"
documentation = "https://docs.rs/evento"
readme = "README.md"

[dependencies]
evento-core = { path = "../evento-core", version = "2.0.0-alpha.13" }
evento-sql = { path = "../evento-sql", optional = true, version = "2.0.0-alpha.13" }
evento-sql-migrator = { path = "../evento-sql-migrator", optional = true, version = "2.0.0-alpha.13" }
sqlx_migrator = { workspace = true, optional = true }

[dev-dependencies]
sqlx = { workspace = true, features = ["runtime-tokio", "any", "sqlite", "mysql", "postgres"] }
rand.workspace = true
bank = { path = "../examples/bank" }
ulid.workspace = true
tokio.workspace = true
sea-query = { workspace = true, features = ["backend-sqlite", "backend-mysql", "backend-postgres"] }
sea-query-sqlx = { workspace = true, features = ["sqlx-sqlite", "sqlx-mysql", "sqlx-postgres"] }
anyhow.workspace = true
evento-fjall = { path = "../evento-fjall" }
tempfile = "3.24"
once_cell.workspace = true
bitcode.workspace = true

[features]
default = ["macro"]
macro = ["evento-core/macro"]
group = ["evento-core/group"]
rw = ["evento-core/rw"]
sql = ["sqlite", "mysql", "postgres"]
sqlite = ["evento-sql/sqlite", "evento-sql-migrator/sqlite", "sqlx_migrator/sqlite"]
mysql = ["evento-sql/mysql", "evento-sql-migrator/mysql", "sqlx_migrator/mysql"]
postgres = ["evento-sql/postgres", "evento-sql-migrator/postgres", "sqlx_migrator/postgres"]
