Skip to main content
Version: 2.x

Modules

Getting Started covers the zio core artifact, which is all most applications need. ZIO also publishes several additional artifacts for streaming, testing, and other specialized use cases. Add only the ones your project actually uses.

Core​

libraryDependencies += "dev.zio" %% "zio" % "2.1.26"
ArtifactDescription
zioThe ZIO effect system itself: ZIO, fibers, Ref, Promise, Queue, Hub, Schedule, ZLayer, and Software Transactional Memory (STM/TRef).

Streaming​

libraryDependencies += "dev.zio" %% "zio-streams" % "2.1.26"
ArtifactDescription
zio-streamsZStream, ZSink, and ZPipeline for pull-based, effectful, backpressured streaming.

Testing​

libraryDependencies += "dev.zio" %% "zio-test" % "2.1.26" % Test
libraryDependencies += "dev.zio" %% "zio-test-sbt" % "2.1.26" % Test
testFrameworks += new TestFramework("zio.test.sbt.ZTestFramework")
ArtifactDescription
zio-testThe core ZIO Test framework: ZIOSpecDefault, assertions, generators (Gen), and test aspects.
zio-test-sbtsbt test framework integration, so sbt test runs ZIO Test specs.
zio-test-magnoliaDerives Gen and Diff instances automatically for case classes and sealed traits via Magnolia.
zio-test-refinedGenerators for refined refinement types.
zio-test-scalacheckAdapters for reusing existing ScalaCheck Gen and Arbitrary instances as ZIO Test generators.
zio-test-junitRuns ZIO Test specs as JUnit tests, for build tools and IDEs that only understand JUnit.
zio-test-junit-engineJUnit Platform TestEngine for ZIO Test, for IDEs/tools that integrate via the JUnit Platform instead of the legacy JUnit 4 runner.

Concurrency​

ArtifactDescription
zio-concurrentThread-safe concurrent data structures — ConcurrentMap and ConcurrentSet — built on Java's java.util.concurrent.

Other​

ArtifactDescription
zio-managedThe legacy ZManaged resource-management API, kept for migration. New code should use Scope, which is built into zio.
zio-macrosMacro-generated helpers (e.g. @mockable) used internally and by libraries built on ZIO.
zio-stacktracerLightweight fiber-tracing support used internally by zio for readable async stack traces.

zio-internal-macros is also published but is an internal implementation detail with no stable public API — do not depend on it directly.

Not every artifact supports every platform — see Platforms for the full breakdown.