-
Notifications
You must be signed in to change notification settings - Fork 193
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
Conversation
c7006d4
to
d3d6880
Compare
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" |
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.
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. |
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. |
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. |
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
#1679
Description
ServerProtocol
interface to allow for server side protocol specific methods.ServerOperationGenerator
, which generates a ZST and implementsOperationShape
on it.ServerServiceGeneratorV2
, which generates the service newtype around a router and a service builder.hidden
argument toRustModule
which allows modules to be marked with#[doc(hidden)]
.BuildModifier
trait to provide a common interface for extending service builders.Upgradable
trait to simplifying bounds when upgrading from anOperation
to a HTTP service.FromRequest
,FromParts
, andIntoResponse
implementations.RoutingService
accept general body typesB
for the inner serviceshttp::Response<B>
.Notes
operation_shape.rs
andservice.rs
. These are both marked as#[doc(hidden)]
for now.OperationRegistryBuilder
andRouter
#1707from_request
/into_response
methods #1706unchecked_builder
method to the service builder #1705