# 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.94"
name = "ironflow-store"
version = "2.5.1"
authors = ["Thomas Tartrau"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Storage abstraction and implementations for ironflow run tracking"
readme = false
keywords = [
    "workflow",
    "store",
    "runs",
    "persistence",
]
categories = [
    "asynchronous",
    "database",
]
license = "MIT"
repository = "https://gitlab.com/ThomasTartrau/ironflow"
resolver = "2"

[features]
default = ["store-memory"]
store-memory = []
store-postgres = ["sqlx"]

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.rust_decimal]
version = "1"
features = ["serde-float"]

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.8"
features = [
    "postgres",
    "runtime-tokio-rustls",
    "uuid",
    "chrono",
    "json",
    "migrate",
    "rust_decimal",
]
optional = true

[dependencies.thiserror]
version = "2"

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.serde_json]
version = "1"

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