{erl_opts, [debug_info, warnings_as_errors]}.

{deps, [
    {h2, "~> 0.10.4"},
    {quic, "~> 1.6.5"}
]}.

{profiles, [
    {test, [
        {deps, [
            {proper, "1.5.0"}
        ]}
    ]}
]}.

{cover_enabled, true}.
{cover_opts, [verbose]}.

{xref_checks, [undefined_function_calls,
               undefined_functions,
               locals_not_used,
               deprecated_function_calls,
               deprecated_functions]}.

{dialyzer, [
    {warnings, [unknown]},
    {plt_extra_apps, [public_key, ssl, crypto, inets]}
]}.

{project_plugins, [rebar3_ex_doc]}.

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

{ex_doc, [
    {extras, [
        {"README.md", #{title => "Overview"}},
        {"docs/getting-started.md", #{title => "Getting Started"}},
        {"docs/handlers.md", #{title => "Writing Handlers"}},
        {"docs/configuration.md", #{title => "Configuration"}},
        {"docs/integration.md", #{title => "Embedding in an HTTP Server"}},
        {"docs/examples.md", #{title => "Examples"}},
        {"CHANGELOG.md", #{title => "Changelog"}},
        {"LICENSE", #{title => "License"}}
    ]},
    {main, "README.md"},
    {source_url, "https://github.com/benoitc/erlang-webtransport"},
    {groups_for_modules, [
        {<<"Public API">>, [webtransport, webtransport_handler]},
        {<<"Session">>, [webtransport_session, webtransport_stream]},
        {<<"HTTP/3">>, [webtransport_h3, wt_h3, wt_h3_capsule,
                        webtransport_h3_router]},
        {<<"HTTP/2">>, [webtransport_h2, wt_h2_capsule, wt_h2_init]},
        {<<"Utilities">>, [wt_error, webtransport_client_handler]}
    ]}
]}.
