Skip to content
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

Add new service builder codegen #1693

Merged
merged 81 commits into from
Sep 12, 2022
Merged

Add new service builder codegen #1693

merged 81 commits into from
Sep 12, 2022

Conversation

hlbarber
Copy link
Contributor

@hlbarber hlbarber commented Aug 31, 2022

Motivation and Context

#1679

Description

  • Add ServerProtocol interface to allow for server side protocol specific methods.
  • Make public the structs merged in Add new service builder machinery #1679.
  • Add ServerOperationGenerator, which generates a ZST and implements OperationShape on it.
  • Add ServerServiceGeneratorV2, which generates the service newtype around a router and a service builder.
  • Add hidden argument to RustModule which allows modules to be marked with #[doc(hidden)].
  • Add BuildModifier trait to provide a common interface for extending service builders.
  • Add Upgradable trait to simplifying bounds when upgrading from an Operation to a HTTP service.
  • Add FromRequest, FromParts, and IntoResponse implementations.
  • Make RoutingService accept general body types B for the inner services http::Response<B>.
  • Use new service builder in protocol tests.

Notes

@hlbarber hlbarber force-pushed the harryb/service-builder-codegen branch from c7006d4 to d3d6880 Compare September 1, 2022 00:22
@smithy-lang smithy-lang deleted a comment from github-actions bot Sep 5, 2022
@smithy-lang smithy-lang deleted a comment from github-actions bot Sep 5, 2022
@smithy-lang smithy-lang deleted a comment from github-actions bot Sep 5, 2022
@smithy-lang smithy-lang deleted a comment from github-actions bot Sep 5, 2022
@smithy-lang smithy-lang deleted a comment from github-actions bot Sep 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

override fun routerConstruction(service: ServiceShape, operationValues: Iterable<Writable>, model: Model): Writable = writable {
val allOperationShapes = allOperationShapes(service, model)

// TODO(restore): This causes a panic: "symbol visitor should not be invoked in service shapes"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

github-actions bot commented Sep 9, 2022

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@hlbarber
Copy link
Contributor Author

hlbarber commented Sep 10, 2022

Closes #1705 due to ba8d772 and a19fdf6

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@hlbarber hlbarber merged commit fd94858 into main Sep 12, 2022
@hlbarber hlbarber deleted the harryb/service-builder-codegen branch September 12, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Rust server SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants