package data-encoding

  1. Overview
  2. Docs
Library of JSON and binary encoding combinators

Install

Dune Dependency

Authors

Maintainers

Sources

data-encoding-v0.5.1.tar.gz
md5=c91116d318ffd0e3f5d75f307d9cc2ce
sha512=495bc4058b8fc1051d16e64ab77dea288675c39574acb603be514ee7c497be26baa0944bdc081f4faa34ba03c0b3dbd6059544375d2f2bee6c634a5ec11d899b

doc/CHANGES.html

v0.1: Initial Release

v0.1.1:

  • customizable initial size for internal buffer
  • remove single lwt related function and lwt dependency

v0.2:

  • CI tests
  • error management improvements (use result, allow exn and option)
  • do not print 0-sized fields in binary descriptions

v0.3:

  • Adapt to json-data-encoding.0.9.1 and provide json-lexeme seq to string seq
  • Improved performance
  • maximum_length to determine static size bounds (when possible)
  • provide to_/of_string alongside to_/of_bytes
  • Improved documentation
  • Increase test coverage
  • Fix JSON encoding of Result

v0.4:

  • catch exceptions in user-provided functions
  • provide conv_guard to help enforce invariants
  • remove unused read_error constructor: Invalid_size
  • check that int31 is actually within int31 bounds
  • add "slicing" feature to analyse binary encoded values

v0.5:

  • add compact encoding combinators
  • add fixed-length list and fixed-length array combinators
  • fix bug wherein mu (… option …) caused an infinite recursion
  • fix roundtrip property of BSON
  • fix error management of lazy encodings (consistent with non-lazy encodings)
  • add a default argument to Json.construct: ?include_default_fields, which is simply passed on to Json_encoding.construct
  • fix missing exported type

v0.5.1:

  • fix bug wherein infinite recursion protection prevented some legitimate uses
OCaml

Innovation. Community. Security.