Skip to content

Commit be7185a

Browse files
authored
[cosmos] use version-only references to avoid broken publish rewriting (#2252)
* [cosmos] use version-only references to avoid broken publish rewriting * restore azure_core_test to a path dependency since it doesn't ship * make azure_core_test a path reference * fix changelog formatting and reorder features to ensure key_auth doesn't get removed * check "packagesWithChanges" to identify if no packages were affected instead of additional packages * mark 0.22.1 as next release
1 parent 9c0ab12 commit be7185a

File tree

4 files changed

+134
-45
lines changed

4 files changed

+134
-45
lines changed

Cargo.lock

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

eng/scripts/Language-Settings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function Get-rust-AdditionalValidationPackagesFromPackageSet ($packagesWithChang
132132
[array]$additionalPackages = $affectedPackages | Where-Object { $packagesWithChanges -notcontains $_ }
133133

134134
# if the change affected no packages, e.g. eng/common change, we use core and template for validation
135-
if ($additionalPackages.Length -eq 0) {
135+
if ($packagesWithChanges.Length -eq 0) {
136136
$additionalPackages += $allPackageProperties | Where-Object { $_.Name -eq "azure_core" -or $_.Name -eq "azure_template" }
137137
}
138138

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
# Release History
22

3-
## 0.23.0 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
3+
## 0.22.1 (2025-03-05)
84

95
### Bugs Fixed
106

11-
### Other Changes
7+
* Fixed a publishing issue that caused the `key_auth` feature to be omitted. ([#2241](https://github.com/Azure/azure-sdk-for-rust/issues/2241))
128

139
## 0.22.0 (2025-02-25)
1410

1511
### Features Added
1612

17-
- Initial supported release.
13+
* Initial supported release.

sdk/cosmos/azure_data_cosmos/Cargo.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "azure_data_cosmos"
3-
version = "0.23.0"
3+
version = "0.22.1"
44
description = "Rust wrappers around Microsoft Azure REST APIs - Azure Cosmos DB"
55
readme = "README.md"
66
authors.workspace = true
@@ -15,16 +15,16 @@ categories = ["api-bindings"]
1515

1616
[dependencies]
1717
async-trait.workspace = true
18-
azure_core.workspace = true
18+
azure_core = "0.22.0"
1919
futures.workspace = true
2020
serde_json.workspace = true
2121
serde.workspace = true
2222
tracing.workspace = true
23-
typespec_client_core = { workspace = true, features = ["derive"] }
23+
typespec_client_core = { version = "0.1.0", features = ["derive"] }
2424
url.workspace = true
2525

2626
[dev-dependencies]
27-
azure_identity.path = "../../identity/azure_identity"
27+
azure_identity = "0.22.0"
2828
azure_core_test.path = "../../core/azure_core_test"
2929
clap.workspace = true
3030
reqwest.workspace = true
@@ -36,11 +36,10 @@ tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] }
3636
workspace = true
3737

3838
[features]
39+
default = ["hmac_rust"]
40+
key_auth = [] # Enables support for key-based authentication (Primary Keys and Resource Tokens)
3941
hmac_rust = ["azure_core/hmac_rust"]
4042
hmac_openssl = ["azure_core/hmac_openssl"]
41-
key_auth = [
42-
] # Enables support for key-based authentication (Primary Keys and Resource Tokens)
43-
default = ["hmac_rust"]
4443

4544
[package.metadata.docs.rs]
4645
features = ["key_auth"]

0 commit comments

Comments
 (0)