Packages

Reference implementation of Hex specifications

Security advisory: This version has known vulnerabilities. View advisories

Current section

Files

Jump to
hex_core rebar.config
Raw

rebar.config

{erl_opts, [
debug_info
]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc, erlfmt]}.
{gpb_opts, [
{i, "proto"},
{o_erl, "src"},
{o_hrl, "src"},
{verify, always},
{strings_as_binaries, true},
{maps, true},
{maps_unset_optional, omitted},
{report_warnings, true},
{target_erlang_version, 17}
]}.
{ex_doc, [
{source_url, <<"https://github.com/hexpm/hex_core">>},
{extras, [<<"README.md">>, <<"CHANGELOG.md">>]},
{main, <<"readme">>}
]}.
{hex, [{doc, #{provider => ex_doc}}, {repos, [
#{
name => <<"hexpm">>,
repo_url => <<"https://repo.staging.hex.pm">>,
api_url => <<"https://staging.hex.pm/api/">>,
repo_public_key => <<"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA56Ac/wvs6VjHOC48BNFO\nWPrxrogxKEvD3DeYWEbJaPvRLtlan9mw5fIjlA5zHsmwyWfItQmOWxayWD1rHPjP\nFW7WHs7h3ceSI6g3sIgsUp5Tw1x1gedPm5n+pkPovfhLGADpi+WmkHLLIIAQUrmP\n7mlRgnfkdizGuqTbG7qmRoGmAXqEiZMNBsm8TtfIsBPUjnZcHizwMdytSkwqfQsP\nK0kbtVsGPpdRKdkf+uMfIG+mJPKrIc0YZdhfAiD2kwmzoij2K01l7TrI/U5g1Yb7\n6O9nw0Y47KB6o9Hzwfkk/KUVPn0hrcGmkbAOKe03PxYTlyrockvEP9Hu6ncGvyby\nFQIDAQAB\n-----END PUBLIC KEY-----\n">>
}
]}]}.
{rebar_packages_cdn, "https://repo.staging.hex.pm"}.
{erlfmt, [
write,
{files, ["{src,test,examples}/*.{hrl,erl,app.src}", "rebar.config"]},
{exclude_files, ["src/hex_pb_*.erl", "src/hex_erl_tar.{hrl,erl}"]}
]}.
{profiles, [
{dev, [
{deps, [
{gpb, "4.21.1"}
]},
{plugins, [
{rebar3_gpb_plugin, "2.23.1"}
]},
{overrides, [
{del, rebar3_gpb_plugin, [
{deps, [gpb]}
]}
]},
{provider_hooks, [
{pre, [
{compile, {protobuf, compile}},
{clean, {protobuf, clean}}
]}
]}
]},
{test, [
{erl_opts, [nowarn_export_all]},
{ct_opts, [
{create_priv_dir, auto_per_tc},
{config, "test/ct.config"}
]},
{plugins, [
rebar3_proper
]},
{deps, [
{proper, "1.3.0"}
]},
{extra_src_dirs, ["test/support"]}
]}
]}.