Skip to content

Commit 06e66d1

Browse files
authored
Scrape doc examples (#3334)
## Motivation and Context Extracted from #3308, this adds doc example scraping. This won't make much of a difference yet but it will help if we're able to move example repos directly under the SDKs themselves when appropriate. ## Description https://doc.rust-lang.org/rustdoc/scraped-examples.html ## Testing verified that examples appear in docs when expected ## Checklist no changelog ---- _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 ee5ae95 commit 06e66d1

File tree

36 files changed

+256
-380
lines changed

36 files changed

+256
-380
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ aws-smithy-async = { path = "../../sdk/build/aws-sdk/sdk/aws-smithy-async", feat
7777
[package.metadata.docs.rs]
7878
all-features = true
7979
targets = ["x86_64-unknown-linux-gnu"]
80+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
8081
rustdoc-args = ["--cfg", "docsrs"]
8182
# End of docs.rs metadata
8283

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ tokio = { version = "1.23.1", features = ["full", "test-util", "rt"] }
2424
[package.metadata.docs.rs]
2525
all-features = true
2626
targets = ["x86_64-unknown-linux-gnu"]
27+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
2728
rustdoc-args = ["--cfg", "docsrs"]
2829
# End of docs.rs metadata
2930

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ repository = "https://github.com/smithy-lang/smithy-rs"
1010
[package.metadata.docs.rs]
1111
all-features = true
1212
targets = ["x86_64-unknown-linux-gnu"]
13+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
1314
rustdoc-args = ["--cfg", "docsrs"]
1415
# End of docs.rs metadata

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ tokio = { version = "1.23.1", features = ["macros", "rt", "time"] }
2424
[package.metadata.docs.rs]
2525
all-features = true
2626
targets = ["x86_64-unknown-linux-gnu"]
27+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
2728
rustdoc-args = ["--cfg", "docsrs"]
2829
# End of docs.rs metadata

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ repository = "https://github.com/smithy-lang/smithy-rs"
1010
[package.metadata.docs.rs]
1111
all-features = true
1212
targets = ["x86_64-unknown-linux-gnu"]
13+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
1314
rustdoc-args = ["--cfg", "docsrs"]
1415
# End of docs.rs metadata

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@ tokio = { version = "1.23.1", features = ["macros", "rt", "io-util"] }
4040
[package.metadata.docs.rs]
4141
all-features = true
4242
targets = ["x86_64-unknown-linux-gnu"]
43+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
4344
rustdoc-args = ["--cfg", "docsrs"]
4445
# End of docs.rs metadata

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ repository = "https://github.com/smithy-lang/smithy-rs"
1212
[package.metadata.docs.rs]
1313
all-features = true
1414
targets = ["x86_64-unknown-linux-gnu"]
15+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
1516
rustdoc-args = ["--cfg", "docsrs"]
1617
# End of docs.rs metadata
1718

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ tracing-test = "0.2.4"
4343
[package.metadata.docs.rs]
4444
all-features = true
4545
targets = ["x86_64-unknown-linux-gnu"]
46+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
4647
rustdoc-args = ["--cfg", "docsrs"]
4748
# End of docs.rs metadata
4849

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ repository = "https://github.com/smithy-lang/smithy-rs"
1010
[package.metadata.docs.rs]
1111
all-features = true
1212
targets = ["x86_64-unknown-linux-gnu"]
13+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
1314
rustdoc-args = ["--cfg", "docsrs"]
1415
# End of docs.rs metadata

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ required-features = [ "sigv4a" ]
6868
[package.metadata.docs.rs]
6969
all-features = true
7070
targets = ["x86_64-unknown-linux-gnu"]
71+
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
7172
rustdoc-args = ["--cfg", "docsrs"]
7273
# End of docs.rs metadata
7374

0 commit comments

Comments
 (0)