Azure SDK for Rust Goes Beta
Written by Nikos Vaggalis   
Tuesday, 08 April 2025

The official Microsoft Azure SDK for Rust is a collection of libraries that make Rust developers' life that little bit easier in accessing various Azure services.

The SDK is part of Microsoft's ongoing attempt to embrace Rust more. By calling into the SDK's libraries, Rust developers can now access and interact with Azure based services from their code seamlessly.

The collection is comprised of libraries for :

Identity
The Azure Identity library provides Microsoft Entra ID (formerly Azure Active Directory) token authentication support across the Azure SDK. It provides a set of TokenCredential implementations that can be used to construct Azure SDK clients that support Microsoft Entra token authentication.

Key Vault secrets
The Azure Key Vault secrets client library allows you to securely store and control the access to tokens, passwords, API keys, and other secrets. This library offers operations to create, retrieve, update, delete, purge, backup, restore, and list the secrets and its versions.

Key Vault keys
Azure Key Vault Managed HSM is a fully-managed cloud service that enables you to safeguard cryptographic keys for your cloud applications using HSMs. The Azure Key Vault keys library client supports RSA keys and Elliptic Curve (EC) keys, each with corresponding support in hardware security modules (HSM). It offers operations to create, retrieve, update, delete, purge, backup, restore, and list the keys and its versions.

Event Hubs
Azure Event Hubs is a big data streaming platform and event ingestion service from Microsoft. The Azure Event Hubs client library allows you to send single events or batches of events to an event hub and consume events from an event hub.

Cosmos DB
Azure Cosmos DB is a globally distributed, multi-model database service and this client library enables client applications to connect to Azure Cosmos DB via the NoSQL API.

All libraries are available as crates and are published on crates.io, so that you can use cargo to install the crates from the SDK. For instance to install the Azure Event Hubs client library, you do:

cargo add azure_messaging_eventhubs

To then use it, first create an Event Hubs Namespace and an Event Hub Instance, as well as log in with Azure CLI.
Then you can write your Rust client as follows:

azuresdk

There's examples up on the project's Github repo to get you started. And with that, Rust infiltrates Microsoft too, or is it the other way around?

More Information

Azure Rust SDK on Github

Related Articles

Take The Beginner's Series to Rust

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Google Introduces Gemini Canvas
31/03/2025

Google has added a new tool to Gemini. Canvas is a new interactive space within Gemini that can be used to create and refine documents or code. 



Azure RAGChat Deep Dive
18/03/2025

Azure RAGChat is a very popular application developed by Microsoft and made available for free for creating ChatGPT-like experiences with your own data.


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 08 April 2025 )