xrepl/protocol

Build Status][gh-actions-badge]][gh-actions]
[![LFE Versions][lfe-badge]][lfe]
[![Erlang Versions][erlang-badge] [ Tags

Project Logo

Complete wire protocol implementation for xREPL - 83 operations across 12 modules with 100% spec coverage

Status

Production Ready - All 83 operations from the unified xREPL specification are implemented with 776 comprehensive tests.

Overview

This library provides a complete implementation of the xREPL protocol:

Protocol Operations

The protocol is organized into 12 modules covering:

Installation

Add to your rebar.config:

{deps, [
    {xrepl_protocol, "0.2.0"}
]}.

Usage

;; Encoding an eval request
(let ((request (xrepl-ptcl-ops-eval:eval-request #m(code "(+ 1 2)"))))
  (xrepl-ptcl-msgpack:encode request))

;; Decoding a response
(case (xrepl-ptcl-msgpack:decode binary-data)
  (`#(ok ,message)
   (xrepl-ptcl-ops-eval:parse-response 'eval message)))

Testing

Run the full test suite:

rebar3 as test eunit

All 776 tests passing ✅

License

Apache 2.0