{erl_opts, [debug_info, warnings_as_errors]}.

{deps, []}.

%% Build the bundled sied NIF on Linux/macOS if not already present.
%% On Windows the pre-built sied.dll shipped with the hex package is used.
%% On ARM (Raspberry Pi) cargo compiles from native/sied/ automatically.
{pre_hooks, [
    {"(linux|darwin)", compile,
     "[ -f Makefile ] && make -f Makefile build_if_needed || true"}
]}.

{ct_opts, []}.

{edoc_opts, [{preprocess, true}, {dir, "doc"}]}.

{profiles, [
    {test, [{erl_opts, [nowarn_export_all]}]},
    {bench, [
        {erl_opts, [debug_info]},
        {src_dirs, ["src", "bench"]},
        {shell, [{apps, [kvex]}]}
    ]}
]}.

{hex, [{doc, edoc}]}.
