Skip to content

Commit eb261a4

Browse files
authored
Replace doc_auto_cfg with doc_cfg to allow docsrs build to succeed (#4331)
## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here --> Our docrs builds started [failing](https://docs.rs/crate/aws-sdk-dynamodb/1.94.0/builds/2555063) recently with the error: ``` [INFO] [stderr] Documenting aws-sdk-dynamodb v1.94.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0557]: feature has been removed [INFO] [stderr] --> src/lib.rs:21:29 [INFO] [stderr] | [INFO] [stderr] 21 | #![cfg_attr(docsrs, feature(doc_auto_cfg))] [INFO] [stderr] | ^^^^^^^^^^^^ feature has been removed [INFO] [stderr] | [INFO] [stderr] = note: removed in CURRENT_RUSTC_VERSION; see <rust-lang/rust#138907> for more information [INFO] [stderr] = note: merged into `doc_cfg` [INFO] [stderr] [INFO] [stderr] error: Compilation failed, aborting rustdoc [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0557`. [INFO] [stderr] error: could not document `aws-sdk-dynamodb` ``` The [linked issue](rust-lang/rust#138907) shows that `doc_auto_cfg` has recently been merged into `doc_cfg`. docsrs builds with the latest nightly toolchain, so the change has impacted our doc builds. This PR makes that change in codegen and in all of our runtime crates. ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [ ] For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "client," "server," or both in the `applies_to` key. - [ ] For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "aws-sdk-rust" in the `applies_to` key. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent dc7ef5d commit eb261a4

File tree

67 files changed

+92
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+92
-96
lines changed

aws/rust-runtime/aws-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-config"
3-
version = "1.8.7"
3+
version = "1.8.8"
44
authors = [
55
"AWS Rust SDK Team <[email protected]>",
66
"Russell Cohen <[email protected]>",

aws/rust-runtime/aws-config/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Automatically managed default lints */
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
/* End of automatically managed default lints */
99
#![allow(clippy::derive_partial_eq_without_eq)]
1010
#![warn(

aws/rust-runtime/aws-credential-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-credential-types"
3-
version = "1.2.7"
3+
version = "1.2.8"
44
authors = ["AWS Rust SDK Team <[email protected]>"]
55
description = "Types for AWS SDK credentials."
66
edition = "2021"

aws/rust-runtime/aws-credential-types/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Automatically managed default lints */
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
/* End of automatically managed default lints */
99
//! `aws-credential-types` provides types concerned with AWS SDK credentials including:
1010
//! * Traits for credentials providers and for credentials caching

aws/rust-runtime/aws-inlineable/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Automatically managed default lints */
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
/* End of automatically managed default lints */
99
//! Collection of modules that get conditionally included directly into the code generated
1010
//! SDK service crates. For example, when generating S3, the `s3_errors` module will get copied

aws/rust-runtime/aws-runtime-api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-runtime-api"
3-
version = "1.1.8"
3+
version = "1.1.9"
44
authors = ["AWS Rust SDK Team <[email protected]>"]
55
description = "Runtime support code for the AWS SDK. This isn't intended to be used directly."
66
edition = "2021"

aws/rust-runtime/aws-runtime-api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Automatically managed default lints */
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
/* End of automatically managed default lints */
99
//! Runtime support code for the AWS SDK. This crate isn't intended to be used directly.
1010

aws/rust-runtime/aws-runtime/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-runtime"
3-
version = "1.5.11"
3+
version = "1.5.12"
44
authors = ["AWS Rust SDK Team <[email protected]>"]
55
description = "Runtime support code for the AWS SDK. This crate isn't intended to be used directly."
66
edition = "2021"

aws/rust-runtime/aws-runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
/* Automatically managed default lints */
7-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7+
#![cfg_attr(docsrs, feature(doc_cfg))]
88
/* End of automatically managed default lints */
99
//! Runtime support code for the AWS SDK. This crate isn't intended to be used directly.
1010

aws/rust-runtime/aws-sigv4/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-sigv4"
3-
version = "1.3.4"
3+
version = "1.3.5"
44
authors = ["AWS Rust SDK Team <[email protected]>", "David Barsky <[email protected]>"]
55
description = "SigV4 signer for HTTP requests and Event Stream messages."
66
edition = "2021"

0 commit comments

Comments
 (0)