espg 0.2.0

An event sourcing library for Rust with PostgreSQL support
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "espg"
version = "0.2.0"
build = false
exclude = [
    "Tiltfile",
    ".vscode/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An event sourcing library for Rust with PostgreSQL support"
readme = false
license = "MIT"

[features]
async-graphql = ["dep:async-graphql"]
indexmap = ["dep:indexmap"]
inmem = ["indexmap"]
rocket = ["dep:rocket"]
rocket_db_pools = [
    "rocket",
    "dep:rocket_db_pools",
]
streaming = []
uuid = ["dep:uuid"]

[lib]
name = "espg"
path = "src/lib.rs"

[[example]]
name = "bank_account"
path = "examples/bank_account.rs"
required-features = [
    "inmem",
    "streaming",
    "uuid",
]

[[example]]
name = "bank_account_pg"
path = "examples/bank_account_pg.rs"
required-features = [
    "streaming",
    "uuid",
]

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"
required-features = ["inmem"]

[[example]]
name = "benchmark_pg"
path = "examples/benchmark_pg.rs"
required-features = []

[dependencies.async-graphql]
version = "7.0.19"
optional = true

[dependencies.async-trait]
version = "0.1.88"

[dependencies.futures]
version = "0.3.31"

[dependencies.futures-channel]
version = "0.3.31"

[dependencies.futures-util]
version = "0.3.31"

[dependencies.indexmap]
version = "2.9.0"
features = ["serde"]
optional = true

[dependencies.itertools]
version = "0.14.0"

[dependencies.md-5]
version = "0.10.6"

[dependencies.mutants]
version = "0.0.3"

[dependencies.rocket]
version = "0.5.1"
optional = true

[dependencies.rocket_db_pools]
version = "0.2.0"
features = ["deadpool_postgres"]
optional = true

[dependencies.serde]
version = "1.0.219"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.148"

[dependencies.thiserror]
version = "2.0.12"

[dependencies.tokio]
version = "1.0"
features = [
    "macros",
    "rt-multi-thread",
    "signal",
    "io-util",
    "io-std",
    "net",
]

[dependencies.tokio-postgres]
version = "0.7.15"
features = ["with-serde_json-1"]

[dependencies.tokio-stream]
version = "0.1.17"
features = ["sync"]

[dependencies.tokio-util]
version = "0.7.15"

[dependencies.uuid]
version = "1.17.0"
features = ["v4"]
optional = true

[dev-dependencies.deadpool-postgres]
version = "0.14.1"

[dev-dependencies.pgmanager]
version = "0.3.1"

[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"