azeventhubs
An unofficial and experimental Azure Event Hubs client library for Rust.
This crate follows a similar structure to that of the Azure SDK for .Net, and thus it should be familiar to anyone who has used the dotnet SDK. This crate is still in development, and not all features are implemented yet.
Examples
Event Hub Producer Example
use ;
async
Event Hub Consumer Example
use StreamExt;
use ;
async
What is implemented and what is not?
Feature | Supported |
---|---|
Event Hub Connection | Yes |
Event Hub Producer | Yes |
Event Hub Consumer | Yes |
Partition Receiver | Yes |
Event Hub Buffered Producer | Not yet |
Event Hub Processor | Not yet |
Checkpoint Store | Not yet |
TLS Support
Communication between a client application and an Azure Service Event Hub namespace is encrypted
using Transport Layer Security (TLS). The TLS implementation is exposed to the user through the
corresponding feature flags (please see the feature flag section below). The user should ensure
either the rustls
or native-tls
feature is enabled, and one and only one TLS implementation
must be enabled. Enabling both features is not supported and will result in an error.
The native-tls
feature is enabled by default, and it will use the native-tls
crate to
provide TLS support. The rustls
feature will use the rustls
crate and webpki-roots
crate
to provide TLS support.
Feature Flags
This crate supports the following feature flags:
Feature | Description |
---|---|
default |
Enables "native-tls" feature |
rustls |
Enables the use of the rustls crate for TLS support |
native-tls |
Enables the use of the native-tls crate for TLS support |
WebAssembly Support
WebAssembly is NOT supported yet.
MSRV
1.75.0
License: MIT