%% project_plugins intentionally NOT listed here — they are dev-only and
%% must not appear in the published rebar.config (causes rebar3 hook failures
%% when onyx is used as a dependency on rebar3 >= 3.25).

{hex, [
    {doc, ex_doc},
    {files, [
        "src", "native",
        "priv/onyx.dll",
        "priv/onyx.so",
        "priv/onyx.dylib",
        "rebar.config", "Makefile", "README*", "LICENSE*", "test"
    ]},
    {maintainers, ["Steve Roques"]},
    {links, [{"GitHub", "https://github.com/roquess/onyx"}]},
    {licenses, ["Apache-2.0"]}
]}.

{ex_doc, [
    {source_url, <<"https://github.com/roquess/onyx">>},
    {extras, [<<"README.md">>, <<"LICENSE">>]},
    {main, <<"readme">>}
]}.

{erl_opts, [debug_info]}.

%% No pre_hooks — the NIF is shipped precompiled for Windows/Linux x86_64/macOS.
%% On other platforms (e.g. ARM) build manually: cd native/onyx && cargo build --release
%%   then cp native/onyx/target/release/libonyx.so priv/onyx.so

{deps, []}.
{profiles, [
    {test, [{erl_opts, [nowarn_export_all]}]}
]}.
{shell, [{apps, [onyx]}]}.
