davenverse / http4s-grpc   0.0.4

MIT License Website GitHub
Scala versions: 3.x 2.13 2.12
Scala.js versions: 1.x
Scala Native versions: 0.4
sbt plugins: 1.0


A pure Scala gRPC implementation! Use it with http4s Ember and deploy on JVM, Node.js, and Native.

The generated APIs use Cats Effect and FS2, and are nearly drop-in replacements for code generated by fs2-grpc.

Quick Start

First add the plugin to project/plugins.sbt.

addSbtPlugin("io.chrisdavenport" % "sbt-http4s-grpc" % "0.0.1")

Then in your build.sbt enable the Http4sGrpcPlugin to configure the http4s-grpc codegen. In addition, you will need to configure the ScalaPB codegen by following their installation docs.

Compile / PB.targets ++= Seq(
  // set grpc = false because http4s-grpc generates its own code
  scalapb.gen(grpc = false) -> (Compile / sourceManaged).value / "scalapb"