Packages

Fast Google Protobuf (proto2/proto3) encoder and decoder for Erlang/OTP, implemented as a C NIF. Drop-in replacement for gpb encode_msg/1 and decode_msg/2.

Current section

Files

Jump to
pbwire rebar.config
Raw

rebar.config

{require_min_otp_vsn, "28"}.

{deps, []}.

{plugins, [{rebar3_hex, "~> 7.0"}]}.

{hex, [
    {doc, #{provider => edoc}}
]}.

{erl_opts, [debug_info]}.

{pre_hooks, [
    {"(linux|darwin|solaris)", compile, "make -C c_src"},
    {"(freebsd|openbsd)", compile, "gmake -C c_src"},
    {"win32", compile, "make -C c_src"}
]}.

{post_hooks, [
    {"(linux|darwin|solaris)", clean, "make -C c_src clean"},
    {"(freebsd|openbsd)", clean, "gmake -C c_src clean"},
    {"win32", clean, "make -C c_src clean"}
]}.

{eunit_opts, [
    verbose,
    {report,
        {
            eunit_surefire,
            [{dir, "./_build/test"}]
        }}
]}.

{profiles, [
    {test, [
        {deps, [
            {gpb, ".*", {git, "https://github.com/tomas-abrahamsson/gpb.git", {branch, "master"}}},
            {proper, ".*", {git, "https://github.com/proper-testing/proper.git", {branch, "master"}}}
        ]},
        {erl_opts, [{d, 'PROPER'}]}
    ]}
]}.