Skip to content
Draft
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
3 changes: 3 additions & 0 deletions Cargo.lock

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

946 changes: 460 additions & 486 deletions sdk/core/azure_core/src/http/pager.rs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions sdk/core/azure_core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,26 @@ pub mod tracing {
#[cfg(feature = "xml")]
pub use typespec_client_core::xml;

#[cfg(not(target_arch = "wasm32"))]
mod conditional_send {
/// Conditionally implements [`Send`] based on the `target_arch`.
///
/// This implementation requires `Send`.
pub trait ConditionalSend: Send {}

impl<T> ConditionalSend for T where T: Send {}
}

#[cfg(target_arch = "wasm32")]
mod conditional_send {
/// Conditionally implements [`Send`] based on the `target_arch`.
///
/// This implementation does not require `Send`.
pub trait ConditionalSend {}

impl<T> ConditionalSend for T {}
}

mod private {
pub trait Sealed {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ include-file.workspace = true
openssl.workspace = true
rand.workspace = true
tokio.workspace = true
tracing.workspace = true

[build-dependencies]
rustc_version.workspace = true
Expand Down

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async fn list_certificates(ctx: TestContext) -> Result<()> {
.await?;

// List certificates.
let mut pager = client.list_certificate_properties(None)?.into_stream();
let mut pager = client.list_certificate_properties(None)?;
while let Some(certificate) = pager.try_next().await? {
// Get the certificate name from the ID.
let name = certificate.resource_id()?.name;
Expand Down Expand Up @@ -268,11 +268,11 @@ async fn purge_certificate(ctx: TestContext) -> Result<()> {
loop {
match client.purge_deleted_certificate(NAME.as_ref(), None).await {
Ok(_) => {
println!("{NAME} has been purged");
tracing::debug!("{NAME} has been purged");
break;
}
Err(err) if matches!(err.http_status(), Some(StatusCode::Conflict)) => {
println!(
tracing::debug!(
"Retrying in {} seconds",
retry.duration().unwrap_or_default().as_secs_f32()
);
Expand Down
1 change: 1 addition & 0 deletions sdk/keyvault/azure_security_keyvault_keys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ rand_chacha.workspace = true
reqwest.workspace = true
sha2.workspace = true
tokio.workspace = true
tracing.workspace = true

[build-dependencies]
rustc_version.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ async fn purge_key(ctx: TestContext) -> Result<()> {
loop {
match client.purge_deleted_key(name.as_ref(), None).await {
Ok(_) => {
println!("{name} has been purged");
tracing::debug!("{name} has been purged");
break;
}
Err(err) if matches!(err.http_status(), Some(StatusCode::Conflict)) => {
println!(
tracing::debug!(
"Retrying in {} seconds",
retry.duration().unwrap_or_default().as_secs_f32()
);
Expand Down
1 change: 1 addition & 0 deletions sdk/keyvault/azure_security_keyvault_secrets/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ azure_security_keyvault_test = { path = "../azure_security_keyvault_test" }
include-file.workspace = true
rand.workspace = true
tokio.workspace = true
tracing.workspace = true

[build-dependencies]
rustc_version.workspace = true
Expand Down

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

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

Loading
Loading