[package]
edition = "2024"
rust-version = "1.88"
name = "ruststream-nats"
version = "0.4.0"
authors = ["RustStream contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "NATS / JetStream broker implementation for the RustStream messaging framework."
readme = "README.md"
keywords = [
"nats",
"messaging",
"jetstream",
"broker",
"faststream",
]
categories = [
"asynchronous",
"network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/powersemmi/ruststream-nats"
[features]
default = []
testing = ["ruststream/conformance"]
[lib]
name = "ruststream_nats"
path = "src/lib.rs"
[[example]]
name = "nats_core"
path = "examples/nats_core.rs"
[[example]]
name = "nats_jetstream"
path = "examples/nats_jetstream.rs"
[[example]]
name = "nats_request_reply"
path = "examples/nats_request_reply.rs"
[[test]]
name = "conformance_nats"
path = "tests/conformance_nats.rs"
[[test]]
name = "integration_nats"
path = "tests/integration_nats.rs"
[[test]]
name = "integration_nats_batch"
path = "tests/integration_nats_batch.rs"
[[test]]
name = "testing_core"
path = "tests/testing_core.rs"
[dependencies.async-nats]
version = "0.49"
[dependencies.bytes]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.ruststream]
version = ">=0.4.0, <0.5.0"
default-features = false
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"signal",
]
[dependencies.tracing]
version = "0.1"
[dev-dependencies.ruststream]
version = ">=0.4.0, <0.5.0"
features = [
"conformance",
"macros",
"json",
]
default-features = false
[dev-dependencies.serde]
version = "1"
features = ["derive"]
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"sync",
"time",
"signal",
"rt-multi-thread",
"macros",
"sync",
"time",
]
[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"