-
Notifications
You must be signed in to change notification settings - Fork 206
refactor: RuntimeType creation and member resolution #2066
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
Conversation
refactor: RuntimeType companion functions add: AwsCargoDependency object refactor: move aws runtime crate fns into AwsRuntimeType update: all code affected by the above changes
rename: runtimeCrate to smithyRuntimeCrate remove: smithy prefix from RuntimeType
update: RuntimeType import
A new generated diff is ready to view.
A new doc preview is ready to view. |
rename: pascal-case functions to be camel-case
A new generated diff is ready to view.
A new doc preview is ready to view. |
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.
Thanks for making extensive changes. I like how the new codebase is more consistent & readable.
…awslabs/smithy-rs into refactor/RuntimeType-and-AwsRuntimeType
fix: outdated doc comment
A new generated diff is ready to view.
A new doc preview is ready to view. |
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.
LGTM.
A new generated diff is ready to view.
A new doc preview is ready to view. |
Apologies for the large PR
Motivation and Context
Maintainability and ease of use
Description
The short version:
RuntimeType
creation and member resolutionRuntimeType
companion functionsAwsCargoDependency
packageAwsRuntimeType
The long version:
This PR implements the another part of #1933.
runtimeCrate
has been renamed tosmithyRuntimeCrate
and now requires users to pass the "smithy-" prefix as part of the crate name:before:
val smithyHttp = runtimeCrate("http").asType()
after:
val smithyHttp = smithyRuntimeCrate("smithy-http").asType()
awsRuntimeDependency
has been renamed toawsRuntimeCrate
in order to matchsmithyRuntimeCrate
.RuntimeType
s have all been consolidated into static methods and fields in theRuntimeType
companion object . AWS-specificRuntimeType
functions have been centralized insoftware.amazon.smithy.rustsdk.AwsRuntimeType
.CargoDependency
andAwsCargoDependency
. TheawsRuntimeCrate
/smithyRuntimeCrate
functions still exist but you should avoid using them.Testing
Ran existing tests
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.