ruststream 0.2.3

Async messaging framework for Rust: broker-agnostic traits, router, codecs, and a conformance harness for broker authors.
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 = "ruststream"
version = "0.2.3"
authors = ["RustStream contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async messaging framework for Rust: broker-agnostic traits, router, codecs, and a conformance harness for broker authors."
readme = "README.md"
keywords = [
    "messaging",
    "async",
    "broker",
    "faststream",
    "nats",
]
categories = [
    "asynchronous",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/powersemmi/ruststream"

[features]
asyncapi = [
    "json",
    "dep:schemars",
    "dep:serde_norway",
]
cbor = ["dep:ciborium"]
cli = [
    "dep:clap",
    "dep:anyhow",
]
conformance = []
default = ["json"]
json = ["dep:serde_json"]
logging = ["dep:tracing-subscriber"]
macros = ["dep:ruststream-macros"]
memory = ["dep:tokio-stream"]
metrics = ["dep:prometheus"]
msgpack = ["dep:rmp-serde"]

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

[[bin]]
name = "ruststream"
path = "src/bin/ruststream/main.rs"
required-features = ["cli"]

[[example]]
name = "asyncapi_http"
path = "examples/asyncapi_http.rs"
required-features = [
    "macros",
    "memory",
    "asyncapi",
]

[[example]]
name = "logging"
path = "examples/logging.rs"
required-features = [
    "macros",
    "memory",
    "json",
    "logging",
]

[[example]]
name = "macro_app"
path = "examples/macro_app.rs"
required-features = [
    "macros",
    "memory",
]

[[example]]
name = "metrics_http"
path = "examples/metrics_http.rs"
required-features = [
    "macros",
    "memory",
    "metrics",
]

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
required-features = [
    "macros",
    "memory",
    "json",
]

[[example]]
name = "routed_service"
path = "examples/routed_service/main.rs"
required-features = [
    "macros",
    "memory",
    "json",
]

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

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

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

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

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

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bytes]
version = "1"

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

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.prometheus]
version = "0.13"
optional = true
default-features = false

[dependencies.rmp-serde]
version = "1"
optional = true

[dependencies.ruststream-macros]
version = "0.2.3"
optional = true

[dependencies.schemars]
version = "0.8"
optional = true

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

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

[dependencies.serde_norway]
version = "0.9"
optional = true

[dependencies.thiserror]
version = "2"

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

[dependencies.tokio-stream]
version = "0.1"
optional = true

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

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.axum]
version = "0.8"

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

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

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

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

[dev-dependencies.tokio-stream]
version = "0.1"

[lints.clippy]
missing_const_for_fn = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
redundant_pub_crate = "allow"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "warn"