Skip to content

Commit 4e6e1ba

Browse files
committed
Upgrade azure_data_cosmos to 0.36.0
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
1 parent c8a88b9 commit 4e6e1ba

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/key-value-azure/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ azure_core = { version = "1.0", default-features = false }
1515
# Use native-tls (OpenSSL) rather than the SDK-default rustls. The default
1616
# `rustls` feature drags in reqwest's aws-lc-rs provider, which collides with
1717
# Spin's workspace-pinned `ring` provider and panics at runtime.
18-
azure_data_cosmos = { version = "0.35", default-features = false, features = ["key_auth", "native_tls", "hmac_rust"] }
18+
azure_data_cosmos = { version = "0.36", default-features = false, features = ["key_auth", "native_tls", "hmac_rust"] }
1919
azure_identity = { version = "1.0", default-features = false, features = ["tokio"] }
2020
futures = { workspace = true }
2121
serde = { workspace = true }

crates/key-value-azure/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod auth;
22
mod store;
33

4-
use azure_data_cosmos::Region;
4+
use azure_data_cosmos::options::Region;
55
use serde::Deserialize;
66
use spin_factor_key_value::runtime_config::spin::MakeKeyValueStore;
77

crates/key-value-azure/src/store.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use anyhow::Result;
22
use async_trait::async_trait;
33
use azure_core::credentials::Secret;
4-
use azure_data_cosmos::query::FeedScope;
5-
use azure_data_cosmos::{AccountReference, PatchInstructions, PatchOperation};
4+
use azure_core::http::Etag;
5+
use azure_data_cosmos::models::{PatchInstructions, PatchOperation};
6+
use azure_data_cosmos::options::{ItemWriteOptions, Precondition, Region};
67
use azure_data_cosmos::{
7-
CosmosClient, Precondition, Query, Region, RoutingStrategy, clients::ContainerClient,
8-
options::ItemWriteOptions,
8+
AccountReference, ContainerClient, CosmosClient, FeedScope, Query, RoutingStrategy,
99
};
1010
use futures::TryStreamExt;
1111
use serde::{Deserialize, Serialize};
@@ -358,7 +358,7 @@ struct CompareAndSwap {
358358
key: String,
359359
client: ContainerClient,
360360
bucket_rep: u32,
361-
etag: Mutex<Option<azure_data_cosmos::ETag>>,
361+
etag: Mutex<Option<Etag>>,
362362
store_id: Option<String>,
363363
}
364364

0 commit comments

Comments
 (0)