rebar3_thrift

A rebar3 plugin that runs the thrift_generator IDL compiler over the Thrift IDL files declared in your rebar.config and keeps the generated Erlang sources fresh. The generated code depends on thrift_runtime — add it to your deps.

Install

%% rebar.config
{plugins, [rebar3_thrift]},
{deps, [thrift_runtime]},
{thrift, [
    {files, ["src/my_api.thrift"]},  %% required, one or more IDL files
    {out_dir, "src"}                 %% optional, default "src"
]}.

Commands

Four optional option axes in {thrift, [...]} mirror the generator's CLI flags and apply only where the IDL carries no explicit annotation of its own: {repr, record | map | native}, {union_type, record | sum}, {set, list | sets | ordset}, {typedef_type, alias | nominal}.

See the repository README for the full story.

License

Apache-2.0 — see LICENSE.md.