diff --git a/.vscode/cspell.json b/.vscode/cspell.json index c0f1644c1c9..0c6f8d5ec19 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -30,6 +30,8 @@ "azsdk", "azurecli", "bugbug", + "callsite", + "callsites", "checkpointstore", "clippy", "codeowners", @@ -40,6 +42,7 @@ "cpus", "datalake", "datetime", + "decorrelates", "deserializers", "devicecode", "docsrs", @@ -52,6 +55,7 @@ "eventhub", "eventhubs", "execdir", + "finalizer", "fips", "hmac", "hostname", @@ -89,8 +93,8 @@ "schannel", "seekable", "servicebus", - "splitmix", "spector", + "splitmix", "startswith", "stylesheet", "subclient", @@ -105,13 +109,7 @@ "webpki", "windowspool", "windowsvmimage", - "webpki", - "worktree", - "decorrelates", - "finalizer", - "callsite", - "callsites", - "footgun" + "worktree" ], "dictionaryDefinitions": [ { diff --git a/Cargo.toml b/Cargo.toml index 220a1e705d6..08b4c059869 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -82,18 +82,6 @@ version = "1.0.0" [workspace.dependencies.azure_storage_blob] version = "1.0.0" -[workspace.dependencies.azure_data_cosmos] -version = "0.34.0" -path = "sdk/cosmos/azure_data_cosmos" - -[workspace.dependencies.azure_data_cosmos_driver] -default-features = false -version = "0.3.0" -path = "sdk/cosmos/azure_data_cosmos_driver" - -[workspace.dependencies.azure_data_cosmos_macros] -version = "0.1.0" - [workspace.dependencies] async-lock = "3.4" async-stream = { version = "0.3.6" } diff --git a/sdk/cosmos/.gitignore b/sdk/cosmos/.gitignore new file mode 100644 index 00000000000..07e4ffb2970 --- /dev/null +++ b/sdk/cosmos/.gitignore @@ -0,0 +1,2 @@ +# Temp files generated by agents/skills +.temp/ diff --git a/sdk/cosmos/azure_data_cosmos/Cargo.toml b/sdk/cosmos/azure_data_cosmos/Cargo.toml index 75c5f6b1822..57fc95da84a 100644 --- a/sdk/cosmos/azure_data_cosmos/Cargo.toml +++ b/sdk/cosmos/azure_data_cosmos/Cargo.toml @@ -17,7 +17,7 @@ categories = ["api-bindings"] async-lock.workspace = true async-trait.workspace = true azure_core = { workspace = true, default-features = false } -azure_data_cosmos_driver = { workspace = true, default-features = false } +azure_data_cosmos_driver = { version = "0.3.0", path = "../azure_data_cosmos_driver", default-features = false } base64.workspace = true futures.workspace = true pin-project.workspace = true @@ -48,7 +48,7 @@ azure_core_test = { workspace = true, features = ["tracing"] } # enable extra functionality only during tests. Cargo unions features across # dependency tables, so the production crate still gets its full feature set — # this entry only adds the internal test feature. -azure_data_cosmos_driver = { workspace = true, default-features = false, features = [ +azure_data_cosmos_driver = { path = "../azure_data_cosmos_driver", default-features = false, features = [ "__internal_test_diagnostics_construction", ] } azure_identity.workspace = true diff --git a/sdk/cosmos/azure_data_cosmos_driver/Cargo.toml b/sdk/cosmos/azure_data_cosmos_driver/Cargo.toml index 5c218994095..e8eef9a47b2 100644 --- a/sdk/cosmos/azure_data_cosmos_driver/Cargo.toml +++ b/sdk/cosmos/azure_data_cosmos_driver/Cargo.toml @@ -21,7 +21,7 @@ async-trait.workspace = true azure_core = { workspace = true, default-features = false, features = [ "hmac_rust", ] } -azure_data_cosmos_macros.workspace = true +azure_data_cosmos_macros.version = "0.1.0" base64.workspace = true bytes.workspace = true crossbeam-epoch = { workspace = true, features = ["std"] } diff --git a/sdk/cosmos/azure_data_cosmos_driver/docs/HEDGING_SPEC.md b/sdk/cosmos/azure_data_cosmos_driver/docs/HEDGING_SPEC.md index fa10118e23a..39290232bfe 100644 --- a/sdk/cosmos/azure_data_cosmos_driver/docs/HEDGING_SPEC.md +++ b/sdk/cosmos/azure_data_cosmos_driver/docs/HEDGING_SPEC.md @@ -1,8 +1,8 @@ # Cross-Region Hedging Availability Strategy Spec -**Status:** Draft +**Status:** Draft **Date:** 2026-05-14 -**Authors:** (team) +**Authors:** (team) **Crate:** `azure_data_cosmos_driver` --- @@ -1918,7 +1918,7 @@ behavior of every other awaited operation in the driver. > flight to multiple regions simultaneously via async replication. > - Adoption in Java v4 has been near-zero; the operational surprise > of a "successful" hedge that produces a 409 on the loser-region -> replay is consistently called out as a footgun. +> replay is consistently called out as a frequent customer issue. > - Single-master writes have never been hedged in any SDK; PPAF > handles write failover for single-master. > diff --git a/sdk/cosmos/azure_data_cosmos_perf/Cargo.toml b/sdk/cosmos/azure_data_cosmos_perf/Cargo.toml index 0bc85de59de..13e9aa1ca58 100644 --- a/sdk/cosmos/azure_data_cosmos_perf/Cargo.toml +++ b/sdk/cosmos/azure_data_cosmos_perf/Cargo.toml @@ -12,7 +12,7 @@ rust-version.workspace = true [dependencies] async-trait.workspace = true azure_core = { workspace = true, features = ["reqwest"] } -azure_data_cosmos = { workspace = true, features = ["key_auth"] } +azure_data_cosmos = { path = "../azure_data_cosmos", features = ["key_auth"] } azure_identity.workspace = true clap = { workspace = true, features = ["derive", "env"] } futures.workspace = true