azure-cosmos-rust
Azure Cosmos DB for Rust (NoSQL API): document CRUD, containers and globally distributed data.
- Kind
- Skill
- Works with
- Claude Code
- Languages
- Rust
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/plugins/azure-sdk-rust/skills/azure-cosmos-rust/SKILL.md
- License
- MIT
- Jobs
- Implementation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Azure Cosmos DB library for Rust Client library for Azure Cosmos DB NoSQL API — document CRUD, containers, and globally distributed data. Use this skill when: - An app needs to store or query documents in Cosmos DB from Rust - You need CRUD operations on items with partition keys - You need key-based auth as an alternative to Entra ID > **IMPORTANT:** Only use the official `azure_data_cosmos` crate published by the [azure-sdk](https://crates.io/users/azure-sdk) crates.io user. Do NOT use the unofficial `azure_cosmos` or `azure_sdk_for_rust` community crates. Official crates use underscores in names and none have version 0.21.0. ## Installation ```sh cargo add azure_data_cosmos azure_identity serde serde_json tokio ``` > If your code uses `azure_core` types directly (for example, `azure_core::credentials::TokenCredential`), add `azure_core` to `Cargo.toml`. If you only use `azure_data_cosmos` re-exports, direct `azure_core` dependency is optional. ## Environment Variables ```bash COSMOS_ENDPOINT=https://<account>.documents.azure.com/ # Required for all operations ``` ## Authentication …