Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Cargo.lock

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

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,28 @@ rust-version = "1.85"
[workspace.dependencies.typespec]
default-features = false
path = "sdk/typespec"
version = "0.9.0"
version = "0.9.1"

[workspace.dependencies.typespec_client_core]
default-features = false
path = "sdk/typespec/typespec_client_core"
version = "0.8.0"
version = "0.8.1"

[workspace.dependencies.typespec_macros]
version = "0.8.0"
version = "0.8.1"
path = "sdk/typespec/typespec_macros"

[workspace.dependencies.azure_core]
default-features = false
version = "0.29.0"
version = "0.29.1"
path = "sdk/core/azure_core"

[workspace.dependencies.azure_core_macros]
version = "0.3.0"
version = "0.3.1"
path = "sdk/core/azure_core_macros"

[workspace.dependencies.azure_core_amqp]
version = "0.8.0"
version = "0.8.1"
path = "sdk/core/azure_core_amqp"

[workspace.dependencies.azure_messaging_eventhubs]
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/templates/jobs/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
parameters:
paths:
- "/*"

- ${{ if ne(parameters.Toolchain, 'nightly') }}:
- template: /eng/pipelines/templates/steps/use-rust.yml@self
parameters:
Expand All @@ -40,6 +40,7 @@ jobs:
filePath: $(Build.SourcesDirectory)/eng/scripts/Analyze-Code.ps1
arguments: >
-PackageInfoDirectory '$(Build.ArtifactStagingDirectory)/PackageInfo'
-Toolchain 'nightly'
-SkipPackageAnalysis:('$(NoPackagesChanged)' -eq 'true')
-Deny

Expand Down
21 changes: 21 additions & 0 deletions eng/scripts/Analyze-Code.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#Requires -Version 7.0
param(
[string]$PackageInfoDirectory,
[string]$Toolchain = 'stable',
[switch]$CheckWasm = $true,
[switch]$Deny,
[switch]$SkipPackageAnalysis
Expand Down Expand Up @@ -115,6 +116,16 @@ if (!$SkipPackageAnalysis) {
return $result
}

if ($Toolchain -eq 'nightly') {
# Temporary fix to exit immediately on failure. LogError should Write-Error
# instead
$command = "cargo install --locked cargo-docs-rs"
Invoke-LoggedCommand $command
if ($LastExitCode) {
Write-Error "Failed to execute $command"
}
}

$packagesToTest = Get-ChildItem $PackageInfoDirectory -Filter "*.json" -Recurse
| Get-Content -Raw
| ConvertFrom-Json
Expand All @@ -128,5 +139,15 @@ if (!$SkipPackageAnalysis) {
if ($LastExitCode) {
Write-Error "Failed to execute $command"
}

if ($Toolchain -eq 'nightly') {
# Temporary fix to exit immediately on failure. LogError should Write-Error
# instead
$command = "cargo +nightly docs-rs --package $($package.Name)"
Invoke-LoggedCommand $command
if ($LastExitCode) {
Write-Error "Failed to execute $command"
}
}
}
}
2 changes: 1 addition & 1 deletion sdk/canary/azure_canary_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

/// Core numeric traits and types
Expand Down
10 changes: 10 additions & 0 deletions sdk/core/azure_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 0.29.1 (2025-10-06)

### Breaking Changes

- Removed the `azurite_workaround` feature (unused).

### Bugs Fixed

- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))

## 0.29.0 (2025-10-03)

### Features Added
Expand Down
3 changes: 1 addition & 2 deletions sdk/core/azure_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "azure_core"
version = "0.29.0"
version = "0.29.1"
description = "Rust wrappers around Microsoft Azure REST APIs - Core crate"
readme = "README.md"
authors.workspace = true
Expand Down Expand Up @@ -61,7 +61,6 @@ default = [
"reqwest_gzip",
"reqwest_native_tls",
]
azurite_workaround = []
debug = ["typespec_client_core/debug"]
decimal = ["typespec_client_core/decimal"]
hmac_openssl = ["dep:openssl"]
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ We guarantee that all client instance methods are thread-safe and independent of
- `reqwest` (default): enables and sets `reqwest` as the default `HttpClient`.
- `reqwest_deflate` (default): enables deflate compression for `reqwest`.
- `reqwest_gzip` (default): enables gzip compression for `reqwest`.
- `reqwest_native-tls` (default): enables `reqwest`'s `native-tls` feature, which uses schannel on Windows and openssl elsewhere.
- `reqwest_native_tls` (default): enables `reqwest`'s `native-tls` feature, which uses schannel on Windows and openssl elsewhere.
- `tokio`: enables and sets `tokio` as the default async runtime.
- `wasm_bindgen`: enables the async runtime for WASM.
- `xml`: enables XML support.
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![forbid(unsafe_code)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

#[macro_use]
Expand Down
6 changes: 6 additions & 0 deletions sdk/core/azure_core_amqp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.8.1 (2025-10-06)

### Bugs Fixed

- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))

## 0.8.0 (2025-10-03)

### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_amqp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# AMQP Stack for consumption by packages in the Azure SDK.
[package]
name = "azure_core_amqp"
version = "0.8.0"
version = "0.8.1"
description = "Rust client library for the AMQP protocol"
readme = "README.md"
authors.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_amqp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

#[cfg(all(feature = "fe2o3_amqp", not(target_arch = "wasm32")))]
Expand Down
6 changes: 6 additions & 0 deletions sdk/core/azure_core_macros/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.3.1 (2025-10-06)

### Bugs Fixed

- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))

## 0.3.0 (2025-10-03)

### Other Changes
Expand Down
4 changes: 2 additions & 2 deletions sdk/core/azure_core_macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "azure_core_macros"
version = "0.3.0"
version = "0.3.1"
description = "Procedural macros for client libraries built on azure_core."
readme = "README.md"
authors.workspace = true
Expand All @@ -20,8 +20,8 @@ proc-macro = true
proc-macro2.workspace = true
quote.workspace = true
syn.workspace = true
typespec_client_core = { workspace = true, features = ["http", "json"] }
tracing.workspace = true
typespec_client_core = { workspace = true, features = ["http", "json"] }

[dev-dependencies]
tokio.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

mod tracing;
Expand Down
6 changes: 6 additions & 0 deletions sdk/core/azure_core_opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.3.1 (2025-10-06)

### Bugs Fixed

- Fix feature documentation ([#3118](https://github.com/Azure/azure-sdk-for-rust/issues/3118))

## 0.3.0 (2025-10-03)

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "azure_core_opentelemetry"
version = "0.3.0"
version = "0.3.1"
description = "OpenTelemetry integration for the Azure SDK for Rust"
readme = "README.md"
authors.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/azure_core_opentelemetry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

mod attributes;
Expand Down
8 changes: 1 addition & 7 deletions sdk/cosmos/azure_data_cosmos/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
// Docs.rs build is done with the nightly compiler, so we can enable nightly features in that build.
// In this case we enable two features:
// - `doc_auto_cfg`: Automatically scans `cfg` attributes and uses them to show those required configurations in the generated documentation.
// - `doc_cfg_hide`: Ignore the `doc` configuration for `doc_auto_cfg`.
// See https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg for more details.
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg_hide))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod clients;
mod connection_string;
Expand Down
2 changes: 1 addition & 1 deletion sdk/eventhubs/azure_messaging_eventhubs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![recursion_limit = "128"]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

#[cfg(feature = "in_memory_checkpoint_store")]
mod in_memory_checkpoint_store;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![recursion_limit = "128"]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod checkpoint_store;
pub use checkpoint_store::BlobCheckpointStore;
2 changes: 1 addition & 1 deletion sdk/identity/azure_identity/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![warn(missing_docs)]

mod app_service_managed_identity_credential;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod clients;
#[allow(unused_imports)]
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure_security_keyvault_keys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod generated;
mod resource;
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/azure_security_keyvault_secrets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

mod generated;
mod resource;
Expand Down
2 changes: 1 addition & 1 deletion sdk/servicebus/azure_messaging_servicebus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#![recursion_limit = "128"]
#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

/// Service Bus client
pub mod client;
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/azure_storage_blob/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![doc = include_str!("../README.md")]
#![allow(dead_code)]
#![allow(unused_imports)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(docsrs, feature(doc_cfg))]

pub mod clients;
mod generated;
Expand Down
Loading