[package] name = "nats-aflowt" version = "0.16.105" description = "Unofficial port of NATS rust client to pure async" authors = ["client by NATS team", "async port by stevelr"] #authors = ["Derek Collison ", "Tyler Neely ", "Stjepan Glavina "] edition = "2021" license = "Apache-2.0" documentation = "https://docs.rs/nats-aflowt" homepage = "https://github.com/stevelr/nats.rs" repository = "https://github.com/stevelr/nats.rs" readme = "README.md" keywords = ["nats", "client", "messaging", "api", "async"] categories = ["network-programming", "api-bindings"] [features] # enable kv and object_store code and tests default = [] fault_injection = [] otel = [ "tracing", "tracing-subscriber", "tracing-opentelemetry" ] # (ss) enable "failing_tests" to run tests that still need to be debugged failing_tests=[] [package.metadata.docs.rs] features = ["unstable"] rustdoc-args = ["--cfg", "docsrs"] [badges] maintenance = { status = "actively-developed" } [profile.release] debug = true split-debuginfo = "unpacked" [profile.dev] panic = 'abort' split-debuginfo = "unpacked" [dependencies] async-stream = "0.3" #console-subscriber = "0.1" async-trait = "0.1" base64 = "0.13.0" base64-url = "1.4.10" blocking = "1.1.0" fastrand = "1.5.0" futures = "0.3" itoa = "1.0" json = "0.12.4" lazy_static = "1.4.0" log = "0.4.14" memchr = "2.4.0" nkeys = "0.2.0" nuid = "0.3.0" once_cell = "1.8.0" parking_lot = "0.12" pin-project = "1.0" pin-utils = "0.1" regex = { version = "1.5.4", default-features = false, features = ["std", "unicode-perl"] } rustls-native-certs = "0.6" rustls-pemfile = "0.3" serde_json = "1.0.64" serde_nanos = "0.1.1" serde_repr = "0.1.7" serde = { version = "1.0.126", features = ["derive"] } time = { version = "0.3.7", features = ["parsing", "formatting", "serde", "serde-well-known"]} tokio-rustls = "0.23" tokio-stream = "0.1" tokio = { version = "1", features=["full"]} url = "2.2.2" webpki = "0.22.0" # tracing dependencies tracing = { version = "0.1", optional = true } tracing-subscriber = {version="0.3", features=["env-filter", "registry"], optional = true} tracing-opentelemetry = { version = "0.17", optional = true } opentelemetry-otlp = { version = "0.10", optional = true } opentelemetry = { version="0.17", features=["rt-tokio"], optional = true} [target.'cfg(unix)'.dependencies] libc = "0.2.98" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3.9", features = ["winsock2"] } [dev-dependencies] criterion = { version ="0.3.5", features = ["html_reports", "async_tokio"] } env_logger = "0.9.0" historian = "4.0.4" rand = "0.8.4" nats_test_server = { path = "nats_test_server" } quicli = "0.4.0" smol = "1.2.5" structopt = "0.3.21" #nats = { version="0.16", package="nats-aflowt", path="." } [[bench]] name = "nats_bench" harness = false [[example]] name = "nats-box" path = "examples/nats-box/main.rs" [[example]] name = "serde-json" path = "examples/serde-json/main.rs" [[example]] name = "async_nats_bench" path = "examples/async_nats_bench.rs"