Skip to content

Commit 0d0f551

Browse files
authored
Merge pull request #275 from tdroxler/feature/vertx-streams
Add `VertxStreams`
2 parents fed11c9 + 06ec004 commit 0d0f551

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

build.sbt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ val commonNativeSettings = commonSettings ++ Seq(
7575
)
7676

7777
lazy val allProjectRefs =
78-
core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ armeria.projectRefs ++ fs2ce2.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio1.projectRefs ++ zio.projectRefs
78+
core.projectRefs ++ ws.projectRefs ++ akka.projectRefs ++ armeria.projectRefs ++ fs2ce2.projectRefs ++ fs2.projectRefs ++ monix.projectRefs ++ zio1.projectRefs ++ zio.projectRefs ++ vertx.projectRefs
7979

8080
lazy val projectAggregates: Seq[ProjectReference] = if (sys.env.isDefinedAt("STTP_NATIVE")) {
8181
println("[info] STTP_NATIVE defined, including sttp-native in the aggregate projects")
@@ -245,3 +245,15 @@ lazy val zio = (projectMatrix in file("zio"))
245245
settings = commonNativeSettings
246246
)
247247
.dependsOn(core)
248+
249+
lazy val vertx = (projectMatrix in file("vertx"))
250+
.settings(
251+
name := "vertx"
252+
)
253+
.jvmPlatform(
254+
scalaVersions = List(scala2_12, scala2_13) ++ scala3,
255+
settings = commonJvmSettings ++ Seq(
256+
libraryDependencies += "io.vertx" % "vertx-core" % "4.4.0"
257+
)
258+
)
259+
.dependsOn(core)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package sttp.capabilities.vertx
2+
3+
import io.vertx.core.buffer.Buffer
4+
import io.vertx.core.streams.ReadStream
5+
import sttp.capabilities.Streams
6+
7+
trait VertxStreams extends Streams[VertxStreams] {
8+
override type BinaryStream = ReadStream[Buffer]
9+
override type Pipe[A, B] = ReadStream[A] => ReadStream[B]
10+
}
11+
12+
object VertxStreams extends VertxStreams

0 commit comments

Comments
 (0)