[package] name = "azservicebus" version = "0.20.3" description = "An unofficial AMQP 1.0 rust client for Azure Service Bus" readme = "README.md" authors = ["Minghua Wu"] license = "MIT" repository = "https://github.com/minghuaw/azservicebus" homepage = "https://github.com/minghuaw/azservicebus" documentation = "https://docs.rs/azservicebus" categories = ["api-bindings"] keywords = ["sdk", "azure", "servicebus", "amqp", "cloud"] edition = "2021" rust-version = "1.75.0" # docs.rs configurations # To test the docs locally, run # cargo +nightly doc --no-deps --open -Z unstable-options --config "build.rustdocflags=[\"--cfg\", \"docsrs\"]" # The nightly toolchain is only used to build the docs, the crate itself doesn't neet nightly. # TODO: enable all features when building docs [package.metadata.docs.rs] # all-features = true rustdoc-args = ["--cfg", "docsrs"] # for conditional intra-doc links [dependencies] base64 = "0.22" const_format = "0.2" digest = "0.10" futures-util = "0.3" hmac = "0.12" log = "0.4" rand = "0.8.5" serde = "1" sha2 = "0.10" thiserror = "1.0" time = { version = "0.3.10", features = ["macros"] } url = "2.2" urlencoding = "2" uuid = { version = "1", features=["v4"] } indexmap = { version = "2", features = ["std"] } # Azure dependencies azure_core = "0.20" # AMQP dependencies fe2o3-amqp-types = "0.10" fe2o3-amqp = {version = "0.10"} fe2o3-amqp-cbs = "0.10" fe2o3-amqp-management = "0.10" fe2o3-amqp-ws = { version = "0.10" } serde_amqp = { version = "0.10", features = ["time"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] timer-kit = { version = "0.1", features = ["tokio"] } tokio-util = {version = "0.7.3", features = ["time"]} tokio = {version = "1", features = ["rt", "macros", "sync", "time", "net"]} # "net" and "time" are not supported on wasm32-unknown-unknown [target.'cfg(target_arch = "wasm32")'.dependencies] # Add dependency to getrandom to enable WASM support getrandom = { version = "0.2", features = ["js"] } tokio = { version = "1", features = ["rt", "macros"]} tokio-util = {version = "0.7.3"} fluvio-wasm-timer = "0.2" timer-kit = { version = "0.1", features = ["fluvio-wasm-timer"] } js-sys = "0.3" # wasm32 target is not supported yet [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] anyhow = "1.0" mockall = "0.12" dotenv = "0.15" futures = "0.3" tokio = {version = "1.0", features = ["macros", "rt", "rt-multi-thread"]} env_logger = "0.11" azure_identity = "0.20" [features] default = ["native-tls"] # CI tests related features test_e2e = [] # This enables tests under the `sdk/messaging_servicebus/tests` directory test_integration = [] # TODO: this feature is not used for now # TODO: transaction is not implemented yet. # Transaction requires standard tier or above transaction = ["fe2o3-amqp/transaction"] rustls = ["fe2o3-amqp/rustls", "fe2o3-amqp-ws/rustls-tls-webpki-roots"] native-tls = ["fe2o3-amqp/native-tls", "fe2o3-amqp-ws/native-tls"]