# 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"
rust-version = "1.89"
name = "mako-engine"
version = "0.8.0"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Event-sourced process engine for German energy market communication (MaKo)"
readme = "README.md"
keywords = [
    "event-sourcing",
    "cqrs",
    "energy",
    "mako",
    "bdew",
]
categories = [
    "asynchronous",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/mako"
resolver = "2"

[features]
slatedb = ["dep:slatedb"]
testing = []
tracing = []

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

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

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

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

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

[[bench]]
name = "replay_latency"
path = "benches/replay_latency.rs"
harness = false
required-features = ["testing"]

[[bench]]
name = "storage"
path = "benches/storage.rs"
harness = false
required-features = ["testing"]

[[bench]]
name = "workers"
path = "benches/workers.rs"
harness = false
required-features = ["testing"]

[dependencies.rand]
version = "0.10"
features = [
    "std",
    "std_rng",
    "thread_rng",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.slatedb]
version = "0.14.1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "std",
    "macros",
    "serde-well-known",
    "parsing",
    "formatting",
]

[dependencies.time-tz]
version = "2"
features = ["db"]

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"
features = [
    "log",
    "attributes",
]
default-features = false

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "v5",
    "serde",
]

[dev-dependencies.criterion]
version = "0.5"
features = [
    "html_reports",
    "async_tokio",
]

[dev-dependencies.tokio]
version = "1"
features = ["full"]

[dev-dependencies.tokio-test]
version = "0.4"
