[[bench]]
name = "core_nats"
path = "benches/core_nats.rs"
[[bench]]
name = "jetstream"
path = "benches/jetstream.rs"
[[bench]]
harness = false
name = "main"
path = "benches/main.rs"
[dependencies.aws-lc-rs]
optional = true
version = "1.6"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
features = ["serde"]
version = "1.4.0"
[dependencies.futures]
default-features = false
features = ["std"]
version = "0.3.28"
[dependencies.memchr]
version = "2.4"
[dependencies.nkeys]
version = "0.4"
[dependencies.nuid]
version = "0.5"
[dependencies.once_cell]
version = "1.18.0"
[dependencies.portable-atomic]
version = "1"
[dependencies.rand]
version = "0.8"
[dependencies.regex]
version = "1.9.1"
[dependencies.ring]
optional = true
version = "0.17"
[dependencies.rustls-native-certs]
version = "0.7"
[dependencies.rustls-pemfile]
version = "2"
[dependencies.serde]
features = ["derive"]
version = "1.0.184"
[dependencies.serde_json]
version = "1.0.104"
[dependencies.serde_nanos]
version = "0.1.3"
[dependencies.serde_repr]
version = "0.1.16"
[dependencies.thiserror]
version = "1.0"
[dependencies.time]
features = ["parsing", "formatting", "serde", "serde-well-known"]
version = "0.3.36"
[dependencies.tokio]
features = ["macros", "rt", "fs", "net", "sync", "time", "io-util"]
version = "1.36"
[dependencies.tokio-rustls]
default-features = false
version = "0.26"
[dependencies.tokio-util]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dependencies.tryhard]
version = "0.5"
[dependencies.url]
version = "2"
[dependencies.webpki]
package = "rustls-webpki"
version = "0.102"
[dev-dependencies.criterion]
features = ["async_tokio"]
version = "0.5"
[dev-dependencies.futures]
default-features = false
features = ["std", "async-await"]
version = "0.3.28"
[dev-dependencies.jsonschema]
version = "0.17.1"
[dev-dependencies.num]
version = "0.4.1"
[dev-dependencies.rand]
version = "0.8"
[dev-dependencies.reqwest]
version = "0.11.18"
[dev-dependencies.ring]
version = "0.17"
[dev-dependencies.tokio]
features = ["rt-multi-thread"]
version = "1.25.0"
[dev-dependencies.tracing-subscriber]
version = "0.3"
[[example]]
name = "concurrent"
path = "examples/concurrent.rs"
[[example]]
name = "jetstream_pull"
path = "examples/jetstream_pull.rs"
[[example]]
name = "jetstream_push"
path = "examples/jetstream_push.rs"
[[example]]
name = "json"
path = "examples/json.rs"
[[example]]
name = "kv"
path = "examples/kv.rs"
[[example]]
name = "multiple_subs"
path = "examples/multiple_subs.rs"
[[example]]
name = "pub"
path = "examples/pub.rs"
[[example]]
name = "sub"
path = "examples/sub.rs"
[[example]]
name = "sync_context"
path = "examples/sync_context.rs"
[features]
aws-lc-rs = ["dep:aws-lc-rs", "tokio-rustls/aws-lc-rs"]
compatibility_tests = []
default = ["server_2_10", "ring"]
experimental = ["service"]
fips = ["aws-lc-rs", "tokio-rustls/fips"]
ring = ["dep:ring", "tokio-rustls/ring"]
server_2_10 = []
service = []
slow_tests = []
[lib]
name = "async_nats"
path = "src/lib.rs"
[package]
authors = ["Tomasz Pietrek <tomasz@nats.io>", "Casper Beyer <caspervonb@pm.me>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["network-programming", "api-bindings"]
description = "A async Rust NATS client"
documentation = "https://docs.rs/async-nats"
edition = "2021"
homepage = "https://github.com/nats-io/nats.rs"
keywords = ["nats", "client", "messaging", "api"]
license = "Apache-2.0"
name = "async-nats"
readme = "README.md"
repository = "https://github.com/nats-io/nats.rs"
version = "0.37.0"
[package.metadata.docs.rs]
features = ["server_2_10", "service", "experimental", "ring", "aws-lc-rs"]
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "client_tests"
path = "tests/client_tests.rs"
[[test]]
name = "compatibility"
path = "tests/compatibility.rs"
[[test]]
name = "jetstream_tests"
path = "tests/jetstream_tests.rs"
[[test]]
name = "jwt_tests"
path = "tests/jwt_tests.rs"
[[test]]
name = "kv_tests"
path = "tests/kv_tests.rs"
[[test]]
name = "nkey_tests"
path = "tests/nkey_tests.rs"
[[test]]
name = "object_store"
path = "tests/object_store.rs"
[[test]]
name = "service_tests"
path = "tests/service_tests.rs"
[[test]]
name = "tls_tests"
path = "tests/tls_tests.rs"