majra 1.0.2

Distributed queue & multiplex engine — pub/sub, priority queues, relay, IPC, heartbeat, and rate limiting for Rust
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.89"
name = "majra"
version = "1.0.2"
build = false
exclude = [
    ".claude/",
    "target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Distributed queue & multiplex engine — pub/sub, priority queues, relay, IPC, heartbeat, and rate limiting for Rust"
homepage = "https://github.com/MacCracken/majra"
documentation = "https://docs.rs/majra"
readme = "README.md"
keywords = [
    "queue",
    "pubsub",
    "relay",
    "ipc",
    "distributed",
]
categories = [
    "asynchronous",
    "concurrency",
    "network-programming",
]
license = "AGPL-3.0-only"
repository = "https://github.com/MacCracken/majra"

[features]
barrier = []
dag = ["queue"]
default = [
    "pubsub",
    "queue",
    "relay",
    "heartbeat",
]
fleet = [
    "queue",
    "heartbeat",
]
full = [
    "pubsub",
    "queue",
    "relay",
    "ipc",
    "ipc-encrypted",
    "heartbeat",
    "ratelimit",
    "barrier",
    "dag",
    "sqlite",
    "logging",
    "prometheus",
    "fleet",
    "redis-backend",
    "quic",
    "postgres",
    "ws",
]
heartbeat = []
ipc = []
ipc-encrypted = [
    "ipc",
    "dep:ring",
]
logging = ["dep:tracing-subscriber"]
postgres = [
    "dep:tokio-postgres",
    "dep:deadpool-postgres",
]
prometheus = ["dep:prometheus"]
pubsub = []
queue = []
quic = [
    "dep:quinn",
    "dep:rustls",
    "dep:rcgen",
    "relay",
]
ratelimit = []
redis-backend = [
    "dep:redis",
    "dep:futures-util",
]
relay = []
sqlite = ["dep:rusqlite"]
ws = [
    "pubsub",
    "dep:tokio-tungstenite",
]

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

[[example]]
name = "managed_queue"
path = "examples/managed_queue.rs"
required-features = [
    "queue",
    "ratelimit",
]

[[example]]
name = "pubsub_tiers"
path = "examples/pubsub_tiers.rs"
required-features = ["pubsub"]

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

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

[[bench]]
name = "concurrent"
path = "benches/concurrent.rs"
harness = false
required-features = [
    "queue",
    "heartbeat",
    "ratelimit",
    "relay",
    "barrier",
]

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

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

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

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

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

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

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

[dependencies.dashmap]
version = "6"

[dependencies.deadpool-postgres]
version = "0.14"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.prometheus]
version = "0.14"
optional = true

[dependencies.quinn]
version = "0.11"
optional = true

[dependencies.rcgen]
version = "0.13"
optional = true

[dependencies.redis]
version = "1"
features = [
    "tokio-comp",
    "aio",
]
optional = true

[dependencies.ring]
version = "0.17"
optional = true

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

[dependencies.rustls]
version = "0.23"
features = ["ring"]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
    "net",
    "macros",
    "rt",
    "io-util",
]

[dependencies.tokio-postgres]
version = "0.7"
optional = true

[dependencies.tokio-tungstenite]
version = "0.24"
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

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

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

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

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