Easily use and document any config from anywhere in ZIO apps
See the codeZIO Config is a ZIO-based library and act as an extension to core library ZIO's Config language.
Let's enumerate some key features of this library:
IndexedFlat.If you are only interested in automatic derivation of configuration, find the details here
In order to use this library, we need to add the following line in our build.sbt file:
libraryDependencies += "dev.zio" %% "zio-config" % "<version>"
Add the modules you need for your config sources:
// HOCON / JSON
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "<version>"
// YAML
libraryDependencies += "dev.zio" %% "zio-config-yaml" % "<version>"
// TOML
libraryDependencies += "dev.zio" %% "zio-config-toml" % "<version>"
// XML (experimental)
libraryDependencies += "dev.zio" %% "zio-config-xml" % "<version>"
See Read from various Sources for examples of each.
Let's add these four lines to our build.sbt file as we are using these modules in our examples:
libraryDependencies += "dev.zio" %% "zio-config" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-magnolia" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-refined" % "<version>"
There are many examples in here
Learn more on the ZIO Config homepage!
For the general guidelines, see ZIO contributor's guide.
See the Code of Conduct
(top 30 of 70)
222 commits
192 commits
131 commits
41 commits
Scala
99.3%
Easily use and document any config from anywhere in ZIO apps
See the codeZIO Config is a ZIO-based library and act as an extension to core library ZIO's Config language.
Let's enumerate some key features of this library:
IndexedFlat.If you are only interested in automatic derivation of configuration, find the details here
In order to use this library, we need to add the following line in our build.sbt file:
libraryDependencies += "dev.zio" %% "zio-config" % "<version>"
Add the modules you need for your config sources:
// HOCON / JSON
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "<version>"
// YAML
libraryDependencies += "dev.zio" %% "zio-config-yaml" % "<version>"
// TOML
libraryDependencies += "dev.zio" %% "zio-config-toml" % "<version>"
// XML (experimental)
libraryDependencies += "dev.zio" %% "zio-config-xml" % "<version>"
See Read from various Sources for examples of each.
Let's add these four lines to our build.sbt file as we are using these modules in our examples:
libraryDependencies += "dev.zio" %% "zio-config" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-magnolia" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-typesafe" % "<version>"
libraryDependencies += "dev.zio" %% "zio-config-refined" % "<version>"
There are many examples in here
Learn more on the ZIO Config homepage!
For the general guidelines, see ZIO contributor's guide.
See the Code of Conduct
(top 30 of 70)
222 commits
192 commits
131 commits
41 commits
Scala
99.3%