dbos 0.6.0

Lightweight durable workflows on Postgres
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"
rust-version = "1.97"
name = "dbos"
version = "0.6.0"
authors = ["DBOS, Inc."]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight durable workflows on Postgres"
homepage = "https://dbos.dev"
documentation = "https://docs.rs/dbos"
readme = "README.md"
keywords = [
    "durable-execution",
    "workflow",
    "postgres",
    "orchestration",
    "queue",
]
categories = [
    "asynchronous",
    "database",
]
license = "MIT"
repository = "https://github.com/dbos-inc/dbos-transact-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[features]
default = [
    "engine",
    "macros",
    "runtime-tokio",
]
engine = [
    "tokio/rt",
    "tokio/macros",
    "dep:croner",
    "dep:jiff",
    "dep:erased-serde",
]
macros = [
    "engine",
    "dep:dbos-macros",
]
runtime-async-global-executor = [
    "sqlx/runtime-async-global-executor",
    "dep:async-global-executor",
    "dep:async-io",
]
runtime-smol = [
    "sqlx/runtime-smol",
    "dep:smol",
    "dep:async-io",
]
runtime-tokio = [
    "sqlx/runtime-tokio",
    "tokio/rt",
    "tokio/time",
]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "migrations"
path = "tests/migrations/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.async-global-executor]
version = "3.1"
features = ["async-io"]
optional = true
default-features = false

[dependencies.async-io]
version = "2.4"
optional = true

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

[dependencies.croner]
version = "4.0.1"
features = ["jiff"]
optional = true
default-features = false

[dependencies.dbos-macros]
version = "=0.6.0"
optional = true

[dependencies.erased-serde]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.jiff]
version = "0.2"
optional = true

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

[dependencies.serde_json]
version = "1"
features = ["raw_value"]

[dependencies.smol]
version = "2"
optional = true
default-features = false

[dependencies.sqlx]
version = "0.9"
features = [
    "tls-rustls",
    "postgres",
]
default-features = false

[dependencies.thiserror]
version = "2"

[dependencies.time]
version = "0.3"
features = [
    "parsing",
    "formatting",
]
default-features = false

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

[dependencies.tokio-util]
version = "0.7"
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.rmp-serde]
version = "1"

[dev-dependencies.sqlx]
version = "0.9"
features = [
    "runtime-tokio",
    "tls-rustls",
    "postgres",
]
default-features = false

[dev-dependencies.thiserror]
version = "2"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
    "sync",
    "test-util",
]

[lints.clippy]
disallowed_methods = "allow"
disallowed_types = "allow"