rustqueue 0.2.0

Background jobs without infrastructure — embeddable job queue with zero external dependencies
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.85"
name = "rustqueue"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Background jobs without infrastructure — embeddable job queue with zero external dependencies"
homepage = "https://rustqueue.dev"
readme = "README.md"
keywords = [
    "job-queue",
    "background-jobs",
    "embedded",
    "async",
    "task-queue",
]
categories = [
    "asynchronous",
    "web-programming",
    "database-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ferax564/rustqueue"

[features]
axum-integration = []
cli = []
default = ["cli"]
otel = [
    "opentelemetry",
    "opentelemetry-otlp",
    "opentelemetry_sdk",
    "tracing-opentelemetry",
]
postgres = ["sqlx"]
sqlite = ["rusqlite"]
tls = [
    "rustls",
    "tokio-rustls",
    "rustls-pemfile",
]

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

[[bin]]
name = "rustqueue"
path = "src/main.rs"

[[example]]
name = "axum_background_jobs"
path = "examples/axum_background_jobs.rs"

[[example]]
name = "basic"
path = "examples/basic.rs"

[[example]]
name = "persistent"
path = "examples/persistent.rs"

[[example]]
name = "worker"
path = "examples/worker.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "throughput"
path = "benches/throughput.rs"
harness = false

[dependencies.anyhow]
version = "1"

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

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]

[dependencies.bytes]
version = "1"

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

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.config]
version = "0.15"

[dependencies.croner]
version = "2"

[dependencies.dashmap]
version = "6"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.metrics]
version = "0.24"

[dependencies.metrics-exporter-prometheus]
version = "0.16"

[dependencies.opentelemetry]
version = "0.27"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.27"
optional = true

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

[dependencies.redb]
version = "2"

[dependencies.reqwest]
version = "0.12"
features = ["json"]

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]
optional = true

[dependencies.rust-embed]
version = "8"
features = ["interpolate-folder-path"]

[dependencies.rustls]
version = "0.23"
optional = true

[dependencies.rustls-pemfile]
version = "2"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

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

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-rustls]
version = "0.26"
optional = true

[dependencies.toml]
version = "0.9"

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.28"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[dependencies.utoipa]
version = "5"
features = [
    "axum_extras",
    "chrono",
    "uuid",
]

[dependencies.utoipa-scalar]
version = "0.3"
features = ["axum"]

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

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

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

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

[dev-dependencies.predicates]
version = "3"

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

[dev-dependencies.reqwest]
version = "0.12"
features = ["json"]

[dev-dependencies.sysinfo]
version = "0.30"

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

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

[dev-dependencies.tokio-tungstenite]
version = "0.28"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = true