# 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 = "2021" name = "async-nats" version = "0.38.0" authors = [ "Tomasz Pietrek ", "Casper Beyer ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A async Rust NATS client" homepage = "https://github.com/nats-io/nats.rs" documentation = "https://docs.rs/async-nats" readme = "README.md" keywords = [ "nats", "client", "messaging", "api", ] categories = [ "network-programming", "api-bindings", ] license = "Apache-2.0" repository = "https://github.com/nats-io/nats.rs" [package.metadata.docs.rs] features = [ "server_2_10", "service", "experimental", "ring", "aws-lc-rs", ] rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "async_nats" path = "src/lib.rs" [[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" [[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" [[test]] name = "websocket_test" path = "tests/websocket_test.rs" [[bench]] name = "core_nats" path = "benches/core_nats.rs" [[bench]] name = "jetstream" path = "benches/jetstream.rs" [[bench]] name = "main" path = "benches/main.rs" harness = false [dependencies.aws-lc-rs] version = "1.6" optional = true [dependencies.base64] version = "0.22" [dependencies.bytes] version = "1.4.0" features = ["serde"] [dependencies.futures] version = "0.3.28" features = ["std"] default-features = false [dependencies.memchr] version = "2.4" [dependencies.nkeys] version = "0.4" [dependencies.nuid] version = "0.5" [dependencies.once_cell] version = "1.18.0" [dependencies.pin-project] version = "1.0" [dependencies.portable-atomic] version = "1" [dependencies.rand] version = "0.8" [dependencies.regex] version = "1.9.1" [dependencies.ring] version = "0.17" optional = true [dependencies.rustls-native-certs] version = "0.7" [dependencies.rustls-pemfile] version = "2" [dependencies.serde] version = "1.0.184" features = ["derive"] [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] version = "0.3.36" features = [ "parsing", "formatting", "serde", "serde-well-known", ] [dependencies.tokio] version = "1.36" features = [ "macros", "rt", "fs", "net", "sync", "time", "io-util", ] [dependencies.tokio-rustls] version = "0.26" default-features = false [dependencies.tokio-util] version = "0.7" [dependencies.tokio-websockets] version = "0.10" features = [ "client", "rand", "rustls-native-roots", ] optional = true [dependencies.tracing] version = "0.1" [dependencies.tryhard] version = "0.5" [dependencies.url] version = "2" [dependencies.webpki] version = "0.102" package = "rustls-webpki" [dev-dependencies.criterion] version = "0.5" features = ["async_tokio"] [dev-dependencies.futures] version = "0.3.28" features = [ "std", "async-await", ] default-features = false [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] version = "1.25.0" features = ["rt-multi-thread"] [dev-dependencies.tracing-subscriber] version = "0.3" [features] aws-lc-rs = [ "dep:aws-lc-rs", "tokio-rustls/aws-lc-rs", "tokio-websockets/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", "tokio-websockets/ring", ] server_2_10 = [] service = [] slow_tests = [] websockets = ["dep:tokio-websockets"]