feat(bpapi): Move to emqx

Fix standalone build
This commit is contained in:
k32 2022-01-04 15:39:09 +01:00
parent 96fdd0c31f
commit 2c3af8d9fe
11 changed files with 5 additions and 22 deletions

View File

@ -4,6 +4,8 @@
{xref_checks,[undefined_function_calls,undefined_functions,locals_not_used, {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
deprecated_function_calls,warnings_as_errors,deprecated_functions]}. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
{erl_first_files, ["apps/emqx/src/bpapi/emqx_bpapi.erl"]}.
%% Deps here may duplicate with emqx.git root level rebar.config %% Deps here may duplicate with emqx.git root level rebar.config
%% but there not be any descrpancy. %% but there not be any descrpancy.
%% This rebar.config is necessary because the app may be used as a %% This rebar.config is necessary because the app may be used as a

View File

@ -17,7 +17,6 @@
, jiffy , jiffy
, lc , lc
, hocon , hocon
, emqx_bpapi
]}, ]},
{mod, {emqx_app,[]}}, {mod, {emqx_app,[]}},
{env, []}, {env, []},

View File

@ -22,7 +22,7 @@
, forward_async/3 , forward_async/3
]). ]).
-include_lib("emqx_bpapi/include/bpapi.hrl"). -include("bpapi.hrl").
-include("emqx.hrl"). -include("emqx.hrl").
-spec forward(node(), emqx_types:topic(), emqx_types:delivery()) -> emqx_types:deliver_result(). -spec forward(node(), emqx_types:topic(), emqx_types:delivery()) -> emqx_types:deliver_result().

View File

@ -1,5 +0,0 @@
emqx_bpapi
=====
A library that helps maintaining EMQX's backplane API backward and
forward compatibility.

View File

@ -1,15 +0,0 @@
{application, emqx_bpapi,
[{description, "A library for verifying safety of RPC calls"},
{vsn, "0.1.0"},
{registered, []},
{applications,
[kernel,
stdlib,
typerefl %% Just for some metaprogramming utils
]},
{env,[]},
{modules, []},
{licenses, ["Apache 2.0"]},
{links, []}
]}.

View File

@ -13,6 +13,8 @@
{d, snk_kind, msg} {d, snk_kind, msg}
]}. ]}.
{erl_first_files, ["apps/emqx/src/bpapi/emqx_bpapi.erl"]}.
{xref_checks,[undefined_function_calls,undefined_functions,locals_not_used, {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
deprecated_function_calls,warnings_as_errors,deprecated_functions]}. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.