Skip to content

Commit

Permalink
Merge pull request #105 from danicheg/versatility
Browse files Browse the repository at this point in the history
Make the `http4s-grpc` versatile in terms of underlying Backends
  • Loading branch information
danicheg committed May 6, 2024
2 parents 4ad0e99 + b457d59 commit a280388
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
![Maven Central](https://img.shields.io/maven-central/v/org.http4s/http4s-grcp_2.13?style=flat)


A pure Scala [gRPC] implementation! Use it with [http4s Ember] and deploy on JVM, Node.js, and Native.
A pure Scala [gRPC] implementation! Use it with [http4s Ember] or any other applicable Backend 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].

Expand Down
8 changes: 5 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ ThisBuild / tlCiDependencyGraphJob := false
val catsV = "2.10.0"
val catsEffectV = "3.5.4"
val fs2V = "3.9.2"
val http4sV = "0.23.26"
val http4sV = "0.23.27"
val munitCatsEffectV = "2.0.0-M5"
import scalapb.compiler.Version.scalapbVersion

ThisBuild / resolvers ++=
Resolver.sonatypeOssRepos("snapshots")

// Projects
lazy val `http4s-grpc` = tlCrossRootProject
.aggregate(core, codeGenerator, codeGeneratorTesting, codeGeneratorPlugin)
Expand All @@ -50,8 +53,7 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
"co.fs2" %%% "fs2-io" % fs2V,
"co.fs2" %%% "fs2-scodec" % fs2V,
"org.http4s" %%% "http4s-dsl" % http4sV,
"org.http4s" %%% "http4s-ember-server" % http4sV,
"org.http4s" %%% "http4s-ember-client" % http4sV,
"org.http4s" %%% "http4s-client" % http4sV,
"org.typelevel" %%% "munit-cats-effect" % munitCatsEffectV % Test,
"com.thesamet.scalapb" %%% "scalapb-runtime" % scalapbVersion,
),
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala/org/http4s/grpc/ClientGrpc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import cats.syntax.all._
import fs2._
import org.http4s._
import org.http4s.client.Client
import org.http4s.ember.core.h2.H2Keys
import org.http4s.grpc.codecs.NamedHeaders
import org.http4s.h2.H2Keys
import scodec.Decoder
import scodec.Encoder

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# http4s-grpc

A pure Scala [gRPC] implementation! Use it with [http4s Ember] and deploy on JVM, Node.js, and Native.
A pure Scala [gRPC] implementation! Use it with [http4s Ember] or any other applicable Backend 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].

Expand Down

0 comments on commit a280388

Please sign in to comment.