# 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 = "bellows"
version = "0.0.5"
authors = ["Jonathan LEI <me@xjonathan.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Durable task processing framework in Rust for applications of all sizes"
documentation = "https://docs.rs/bellows"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/xJonathanLEI/bellows"

[features]
default = [
    "in_memory",
    "sqlite",
    "postgres",
]
in_memory = ["serde_json"]
postgres = [
    "sqlx",
    "serde_json",
]
sqlite = [
    "sqlx",
    "serde_json",
]

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

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

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

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

[dependencies.rand]
version = "0.10.0"
features = ["thread_rng"]
default-features = false

[dependencies.serde]
version = "1.0.228"
default-features = false

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.sqlx]
version = "0.8.6"
features = [
    "runtime-tokio",
    "sqlite",
    "postgres",
]
optional = true
default-features = false

[dependencies.tokio]
version = "1.49.0"
features = [
    "macros",
    "rt",
    "sync",
]
default-features = false

[dependencies.tracing]
version = "0.1.44"
default-features = false

[dev-dependencies.serde]
version = "1.0.228"
features = [
    "std",
    "derive",
]
default-features = false

[dev-dependencies.tempfile]
version = "3.26.0"

[dev-dependencies.tokio]
version = "1.49.0"
features = ["rt-multi-thread"]
default-features = false
