Skip to content

Commit

Permalink
[cosmos] use version-only references to avoid broken publish rewriting (
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
analogrelay authored Mar 5, 2025
1 parent 9c0ab12 commit be7185a
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 45 deletions.
154 changes: 124 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Get-rust-AdditionalValidationPackagesFromPackageSet ($packagesWithChang
[array]$additionalPackages = $affectedPackages | Where-Object { $packagesWithChanges -notcontains $_ }

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

Expand Down
10 changes: 3 additions & 7 deletions sdk/cosmos/azure_data_cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# Release History

## 0.23.0 (Unreleased)

### Features Added

### Breaking Changes
## 0.22.1 (2025-03-05)

### Bugs Fixed

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

## 0.22.0 (2025-02-25)

### Features Added

- Initial supported release.
* Initial supported release.
13 changes: 6 additions & 7 deletions sdk/cosmos/azure_data_cosmos/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "azure_data_cosmos"
version = "0.23.0"
version = "0.22.1"
description = "Rust wrappers around Microsoft Azure REST APIs - Azure Cosmos DB"
readme = "README.md"
authors.workspace = true
Expand All @@ -15,16 +15,16 @@ categories = ["api-bindings"]

[dependencies]
async-trait.workspace = true
azure_core.workspace = true
azure_core = "0.22.0"
futures.workspace = true
serde_json.workspace = true
serde.workspace = true
tracing.workspace = true
typespec_client_core = { workspace = true, features = ["derive"] }
typespec_client_core = { version = "0.1.0", features = ["derive"] }
url.workspace = true

[dev-dependencies]
azure_identity.path = "../../identity/azure_identity"
azure_identity = "0.22.0"
azure_core_test.path = "../../core/azure_core_test"
clap.workspace = true
reqwest.workspace = true
Expand All @@ -36,11 +36,10 @@ tokio = { workspace = true, features = ["rt-multi-thread", "macros", "time"] }
workspace = true

[features]
default = ["hmac_rust"]
key_auth = [] # Enables support for key-based authentication (Primary Keys and Resource Tokens)
hmac_rust = ["azure_core/hmac_rust"]
hmac_openssl = ["azure_core/hmac_openssl"]
key_auth = [
] # Enables support for key-based authentication (Primary Keys and Resource Tokens)
default = ["hmac_rust"]

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

0 comments on commit be7185a

Please sign in to comment.