Skip to content

Commit

Permalink
Remove deprecations from aws/rust-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti committed Nov 17, 2023
1 parent b9fd197 commit 63bc762
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 221 deletions.
46 changes: 0 additions & 46 deletions aws/rust-runtime/aws-config/src/environment/app_name.rs

This file was deleted.

3 changes: 0 additions & 3 deletions aws/rust-runtime/aws-config/src/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@

//! Providers that load configuration from environment variables

/// Load app name from the environment
pub mod app_name;

use std::error::Error;
use std::fmt::{Display, Formatter};

Expand Down
43 changes: 0 additions & 43 deletions aws/rust-runtime/aws-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,14 +352,6 @@ mod loader {
self
}

/// Deprecated. Don't use.
#[deprecated(
note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance."
)]
pub fn http_connector(self, http_client: impl HttpClient + 'static) -> Self {
self.http_client(http_client)
}

/// Override the [`HttpClient`](aws_smithy_runtime_api::client::http::HttpClient) for this [`ConfigLoader`].
///
/// The HTTP client will be used for both AWS services and credentials providers.
Expand Down Expand Up @@ -396,14 +388,6 @@ mod loader {
self
}

/// The credentials cache has been replaced. Use the identity_cache() method instead. See its rustdoc for an example.
#[deprecated(
note = "The credentials cache has been replaced. Use the identity_cache() method instead for equivalent functionality. See its rustdoc for an example."
)]
pub fn credentials_cache(self) -> Self {
self
}

/// Override the identity cache used to build [`SdkConfig`](aws_types::SdkConfig).
///
/// The identity cache caches AWS credentials and SSO tokens. By default, a lazy cache is used
Expand Down Expand Up @@ -611,33 +595,6 @@ mod loader {
self
}

/// Set configuration for all sub-loaders (credentials, region etc.)
///
/// Update the `ProviderConfig` used for all nested loaders. This can be used to override
/// the HTTPs connector used by providers or to stub in an in memory `Env` or `Fs` for testing.
///
/// # Examples
/// ```no_run
/// # #[cfg(feature = "hyper-client")]
/// # async fn create_config() {
/// use aws_config::provider_config::ProviderConfig;
/// let custom_https_connector = hyper_rustls::HttpsConnectorBuilder::new()
/// .with_webpki_roots()
/// .https_only()
/// .enable_http1()
/// .build();
/// let provider_config = ProviderConfig::default().with_tcp_connector(custom_https_connector);
/// let shared_config = aws_config::defaults(BehaviorVersion::latest()).configure(provider_config).load().await;
/// # }
/// ```
#[deprecated(
note = "Use setters on this builder instead. configure is very hard to use correctly."
)]
pub fn configure(mut self, provider_config: ProviderConfig) -> Self {
self.provider_config = Some(provider_config);
self
}

/// Load the default configuration chain
///
/// If fields have been overridden during builder construction, the override values will be used.
Expand Down
106 changes: 0 additions & 106 deletions aws/rust-runtime/aws-config/src/profile/app_name.rs

This file was deleted.

1 change: 0 additions & 1 deletion aws/rust-runtime/aws-config/src/profile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ pub use parser::ProfileParseError;
#[doc(inline)]
pub use parser::{load, Profile, ProfileFileLoadError, ProfileSet, Property};

pub mod app_name;
pub mod credentials;
pub mod profile_file;
pub mod region;
Expand Down
8 changes: 0 additions & 8 deletions aws/rust-runtime/aws-config/src/provider_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,6 @@ impl ProviderConfig {
}
}

/// Deprecated. Don't use.
#[deprecated(
note = "HTTP connector configuration changed. See https://github.com/smithy-lang/smithy-rs/discussions/3022 for upgrade guidance."
)]
pub fn with_tcp_connector(self, http_client: impl HttpClient + 'static) -> Self {
self.with_http_client(http_client)
}

/// Override the HTTP client for this configuration
pub fn with_http_client(self, http_client: impl HttpClient + 'static) -> Self {
ProviderConfig {
Expand Down
14 changes: 0 additions & 14 deletions aws/rust-runtime/aws-types/src/config.rs

This file was deleted.

0 comments on commit 63bc762

Please sign in to comment.