-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assorted cleanups of stable runtime crates #3205
Conversation
A new generated diff is ready to view.
A new doc preview is ready to view. |
3c52d0f
to
62d5b9f
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
d71f5bf
to
b4ebfee
Compare
if (it.name == "aws-sigv4") { | ||
print(contents) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a debug print? Did you intend to keep this?
// Invalid table definition on line 54: [target.'cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))'.dev-dependencies]] | ||
logger.info("failed to read ${it.name} as TOML: $e") | ||
Toml() | ||
// sigv4 doesn't parse but it's stable now, hax hax hax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆
stable: bool, | ||
} | ||
|
||
pub(crate) struct StableCratesExposeStableCrates { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! Check external types inception
No will remove
…On Wed, Nov 15, 2023, 10:05 PM John DiSanti ***@***.***> wrote:
***@***.**** approved this pull request.
------------------------------
In buildSrc/src/test/kotlin/CrateSetTest.kt
<#3205 (comment)>
:
> + if (it.name == "aws-sigv4") {
+ print(contents)
+ }
Looks like a debug print? Did you intend to keep this?
------------------------------
In buildSrc/src/test/kotlin/CrateSetTest.kt
<#3205 (comment)>
:
> } catch (e: java.lang.IllegalStateException) {
- // Currently, `aws-sigv4` cannot be read as a `TOML` because of the following error:
- // Invalid table definition on line 54: [target.'cfg(not(any(target_arch = "powerpc", target_arch = "powerpc64")))'.dev-dependencies]]
- logger.info("failed to read ${it.name} as TOML: $e")
- Toml()
+ // sigv4 doesn't parse but it's stable now, hax hax hax
😆
------------------------------
In tools/ci-build/sdk-lints/src/lint_cargo_toml.rs
<#3205 (comment)>
:
> @@ -224,3 +227,170 @@ fn fix_docs_rs(contents: &str) -> Result<String> {
)?;
Ok(new)
}
+
+#[derive(Deserialize)]
+struct SmithyRsMetadata {
+ #[serde(rename = "smithy-rs-release-tooling")]
+ smithy_rs_release_tooling: ToolingMetadata,
+}
+
+#[derive(Deserialize)]
+struct ToolingMetadata {
+ stable: bool,
+}
+
+pub(crate) struct StableCratesExposeStableCrates {
Neat! Check external types inception
—
Reply to this email directly, view it on GitHub
<#3205 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYKZ53252AJESWDLKUTKLYEV7JHAVCNFSM6AAAAAA7NCZMYCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTOMZTGQYTGMRUHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this lint ❤️
bda5699
to
37f4005
Compare
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Motivation and Context
Stable crates MUST only expose other stable crates.
Description
This:
Testing
CI run
Checklist
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.