Skip to content

Commit 9fbbc1c

Browse files
authored
Release patch semver for core crates (Azure#3120)
Fixes Azure#3117 and fixes Azure#3118 by renaming `doc_auto_cfg` and `doc_cfg_hide` to just `doc_cfg` after rust-lang/rust#138907 was merged and released in the new nightly toolchain docs.rs uses.
1 parent d258a11 commit 9fbbc1c

File tree

38 files changed

+113
-48
lines changed

38 files changed

+113
-48
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,28 @@ rust-version = "1.85"
4040
[workspace.dependencies.typespec]
4141
default-features = false
4242
path = "sdk/typespec"
43-
version = "0.9.0"
43+
version = "0.9.1"
4444

4545
[workspace.dependencies.typespec_client_core]
4646
default-features = false
4747
path = "sdk/typespec/typespec_client_core"
48-
version = "0.8.0"
48+
version = "0.8.1"
4949

5050
[workspace.dependencies.typespec_macros]
51-
version = "0.8.0"
51+
version = "0.8.1"
5252
path = "sdk/typespec/typespec_macros"
5353

5454
[workspace.dependencies.azure_core]
5555
default-features = false
56-
version = "0.29.0"
56+
version = "0.29.1"
5757
path = "sdk/core/azure_core"
5858

5959
[workspace.dependencies.azure_core_macros]
60-
version = "0.3.0"
60+
version = "0.3.1"
6161
path = "sdk/core/azure_core_macros"
6262

6363
[workspace.dependencies.azure_core_amqp]
64-
version = "0.8.0"
64+
version = "0.8.1"
6565
path = "sdk/core/azure_core_amqp"
6666

6767
[workspace.dependencies.azure_messaging_eventhubs]

eng/pipelines/templates/jobs/analyze.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
parameters:
2222
paths:
2323
- "/*"
24-
24+
2525
- ${{ if ne(parameters.Toolchain, 'nightly') }}:
2626
- template: /eng/pipelines/templates/steps/use-rust.yml@self
2727
parameters:
@@ -40,6 +40,7 @@ jobs:
4040
filePath: $(Build.SourcesDirectory)/eng/scripts/Analyze-Code.ps1
4141
arguments: >
4242
-PackageInfoDirectory '$(Build.ArtifactStagingDirectory)/PackageInfo'
43+
-Toolchain 'nightly'
4344
-SkipPackageAnalysis:('$(NoPackagesChanged)' -eq 'true')
4445
-Deny
4546

eng/scripts/Analyze-Code.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#Requires -Version 7.0
44
param(
55
[string]$PackageInfoDirectory,
6+
[string]$Toolchain = 'stable',
67
[switch]$CheckWasm = $true,
78
[switch]$Deny,
89
[switch]$SkipPackageAnalysis
@@ -115,6 +116,16 @@ if (!$SkipPackageAnalysis) {
115116
return $result
116117
}
117118

119+
if ($Toolchain -eq 'nightly') {
120+
# Temporary fix to exit immediately on failure. LogError should Write-Error
121+
# instead
122+
$command = "cargo install --locked cargo-docs-rs"
123+
Invoke-LoggedCommand $command
124+
if ($LastExitCode) {
125+
Write-Error "Failed to execute $command"
126+
}
127+
}
128+
118129
$packagesToTest = Get-ChildItem $PackageInfoDirectory -Filter "*.json" -Recurse
119130
| Get-Content -Raw
120131
| ConvertFrom-Json
@@ -128,5 +139,15 @@ if (!$SkipPackageAnalysis) {
128139
if ($LastExitCode) {
129140
Write-Error "Failed to execute $command"
130141
}
142+
143+
if ($Toolchain -eq 'nightly') {
144+
# Temporary fix to exit immediately on failure. LogError should Write-Error
145+
# instead
146+
$command = "cargo +nightly docs-rs --package $($package.Name)"
147+
Invoke-LoggedCommand $command
148+
if ($LastExitCode) {
149+
Write-Error "Failed to execute $command"
150+
}
151+
}
131152
}
132153
}

sdk/canary/azure_canary_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT License.
33

44
#![doc = include_str!("../README.md")]
5-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66
#![warn(missing_docs)]
77

88
/// Core numeric traits and types

sdk/core/azure_core/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Release History
22

3+
## 0.29.1 (2025-10-06)
4+
5+
### Breaking Changes
6+
7+
- Removed the `azurite_workaround` feature (unused).
8+
9+
### Bugs Fixed
10+
11+
- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))
12+
313
## 0.29.0 (2025-10-03)
414

515
### Features Added

sdk/core/azure_core/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "azure_core"
3-
version = "0.29.0"
3+
version = "0.29.1"
44
description = "Rust wrappers around Microsoft Azure REST APIs - Core crate"
55
readme = "README.md"
66
authors.workspace = true
@@ -61,7 +61,6 @@ default = [
6161
"reqwest_gzip",
6262
"reqwest_native_tls",
6363
]
64-
azurite_workaround = []
6564
debug = ["typespec_client_core/debug"]
6665
decimal = ["typespec_client_core/decimal"]
6766
hmac_openssl = ["dep:openssl"]

sdk/core/azure_core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ We guarantee that all client instance methods are thread-safe and independent of
5555
- `reqwest` (default): enables and sets `reqwest` as the default `HttpClient`.
5656
- `reqwest_deflate` (default): enables deflate compression for `reqwest`.
5757
- `reqwest_gzip` (default): enables gzip compression for `reqwest`.
58-
- `reqwest_native-tls` (default): enables `reqwest`'s `native-tls` feature, which uses schannel on Windows and openssl elsewhere.
58+
- `reqwest_native_tls` (default): enables `reqwest`'s `native-tls` feature, which uses schannel on Windows and openssl elsewhere.
5959
- `tokio`: enables and sets `tokio` as the default async runtime.
6060
- `wasm_bindgen`: enables the async runtime for WASM.
6161
- `xml`: enables XML support.

sdk/core/azure_core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#![forbid(unsafe_code)]
55
#![deny(missing_debug_implementations, nonstandard_style)]
66
#![doc = include_str!("../README.md")]
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
#![warn(missing_docs)]
99

1010
#[macro_use]

sdk/core/azure_core_amqp/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.8.1 (2025-10-06)
4+
5+
### Bugs Fixed
6+
7+
- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))
8+
39
## 0.8.0 (2025-10-03)
410

511
### Breaking Changes

0 commit comments

Comments
 (0)