bjyoungblood / restruct

An Elixir library for ensuring structs match their current definition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Restruct Hex Version Hex Docs CI Status

An Elixir library for ensuring structs match their current definition.

This is useful if you serialize structs using :erlang.term_to_binary/1 or are sending structs between nodes running different code versions.

Installation

The package can be installed by adding restruct to your list of dependencies in mix.exs:

def deps do
  [
    {:restruct, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/restruct.

About

An Elixir library for ensuring structs match their current definition.

License:Apache License 2.0


Languages

Language:Elixir 100.0%