Skip to content

Simplify Smithy integration #82

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

Merged
merged 3 commits into from
May 7, 2025
Merged

Conversation

kubukoz
Copy link
Contributor

@kubukoz kubukoz commented May 7, 2025

  • deprecate FS2Channel.apply in favor of .stream
  • simplify the interpreter due to previously missing FunctorEndpointCompiler (also kill the Ref)
  • make smithy4s integration independent of the fs2 module

@kubukoz kubukoz changed the base branch from main to smithy4s-integration May 7, 2025 00:29
@kubukoz kubukoz mentioned this pull request May 7, 2025
@kubukoz kubukoz marked this pull request as ready for review May 7, 2025 00:33
Comment on lines +21 to +27
def compile: service.Impl[F] = {
val interpreter = new service.FunctorEndpointCompiler[F] {
def apply[I, E, O, SI, SO](e: service.Endpoint[I, E, O, SI, SO]): I => F[O] = {
val shapeId = e.id
val spec = EndpointSpec.fromHints(e.hints).toRight(NotJsonRPCEndpoint(shapeId)).toTry.get

jsonRPCStub(e, spec)

Choose a reason for hiding this comment

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

awesome! :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

smithy4s 0.18 really was a game changer

@ghostbuster91 ghostbuster91 merged commit 1ca96ee into smithy4s-integration May 7, 2025
2 checks passed
@ghostbuster91 ghostbuster91 deleted the smithy-simplify branch May 7, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants