es-entity 0.10.14

Event Sourcing Entity Framework
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 = "es-entity"
version = "0.10.14"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Event Sourcing Entity Framework"
documentation = "https://docs.rs/es-entity"
readme = "README.md"
categories = [
    "data-structures",
    "database",
]
license = "Apache-2.0"
repository = "https://github.com/GaloyMoney/es-entity"
resolver = "2"

[features]
event-context = [
    "es-entity-macros/event-context",
    "event-context-enabled",
]
event-context-enabled = ["es-entity-macros/event-context-enabled"]
fail-on-warnings = ["es-entity-macros/fail-on-warnings"]
graphql = [
    "es-entity-macros/graphql",
    "dep:async-graphql",
    "dep:base64",
]
instrument = [
    "es-entity-macros/instrument",
    "dep:tracing",
]
json-schema = ["dep:schemars"]
mdbook-test = ["dep:anyhow"]
tracing-context = [
    "dep:tracing",
    "dep:tracing-opentelemetry",
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
]

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

[[test]]
name = "clock"
path = "tests/clock.rs"

[[test]]
name = "context"
path = "tests/context.rs"

[[test]]
name = "es_query"
path = "tests/es_query.rs"

[[test]]
name = "from_async_trait"
path = "tests/from_async_trait.rs"

[[test]]
name = "helpers"
path = "tests/helpers.rs"

[[test]]
name = "hooks"
path = "tests/hooks.rs"

[[test]]
name = "nested_entities"
path = "tests/nested_entities.rs"

[[test]]
name = "repo"
path = "tests/repo.rs"

[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.async-graphql]
version = "7.2"
optional = true
default-features = false

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.derive_builder]
version = "0.20"

[dependencies.es-entity-macros]
version = "0.10.14"

[dependencies.im]
version = "15.1"
features = ["serde"]

[dependencies.opentelemetry]
version = "0.31.0"
optional = true
default-features = false

[dependencies.opentelemetry_sdk]
version = "0.31.0"
features = ["rt-tokio"]
optional = true

[dependencies.parking_lot]
version = "0.12"

[dependencies.pin-project]
version = "1.1"

[dependencies.schemars]
version = "1.0"
features = ["uuid1"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = [
    "macros",
    "runtime-tokio-rustls",
    "postgres",
    "uuid",
    "chrono",
    "json",
]
default-features = false

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[dependencies.tracing]
version = "0.1.41"
optional = true
default-features = false

[dependencies.tracing-opentelemetry]
version = "0.32.0"
optional = true
default-features = false

[dependencies.uuid]
version = "1.18"
features = [
    "serde",
    "v7",
]

[dev-dependencies.anyhow]
version = "1.0"

[dev-dependencies.async-trait]
version = "0.1"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.tokio]
version = "1.48"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[profile.mdbook-test]
inherits = "dev"