neandertech / jsonrpclib   0.0.7

Apache License 2.0 GitHub

A cross-platform (JVM, JS, Native) pure-Scala JsonRPC library, made with Cats Effect, fs2, and jsoniter

Scala versions: 3.x 2.13
Scala.js versions: 1.x
Scala Native versions: 0.4

CI

jsonrpclib-fs2 Scala version support

jsonrpclib-fs2 Scala version support

jsonrpclib

This is a cross-platform, cross-scala-version library that provides construct for bidirectional communication using the jsonrpc protocol. It is built on top of fs2 and jsoniter-scala

This library does not enforce any transport, and can work on top of stdin/stdout or other channels.

Installation

The dependencies below are following cross-platform semantics. Adapt according to your needs

SBT

libraryDependencies += "tech.neander" %%% "jsonrpclib-fs2" % version

Mill

override def ivyDeps = super.ivyDeps() ++ Agg(ivy"tech.neander::jsonrpclib-fs2::$version")

Scala-cli

//> using lib "tech.neander::jsonrpclib-fs2:<VERSION>"

Usage

/!\ Please be aware that this library is in its early days and offers strictly no guarantee with regards to backward compatibility

See the examples folder