Current section
Files
Jump to
Current section
Files
rocksky_erl
rebar.config
rebar.config
%% rocksky — official Erlang SDK for Rocksky (Rustler NIF over the shared Rust
%% core, crates/rocksky-nif). For local monorepo development, `./build-core.sh`
%% builds priv/rocksky_nif.so directly.
{erl_opts, [debug_info]}.
{deps, []}.
{shell, [{apps, [rocksky_erl]}]}.
{project_plugins, [rebar3_hex, rebar3_ex_doc]}.
{ex_doc, [
{source_url, <<"https://github.com/tsirysndr/rocksky">>},
{source_ref, <<"main">>},
%% This package lives in a monorepo subdirectory, so ex_doc's source links
%% (README + module sources) must be prefixed with sdk/erlang/ — ex_doc emits
%% %{path} relative to the rebar3 cwd (sdk/erlang/).
{source_url_pattern,
<<"https://github.com/tsirysndr/rocksky/blob/main/sdk/erlang/%{path}#L%{line}">>},
{extras, [<<"README.md">>]},
{main, <<"readme">>}
]}.
%% The Hex package name is the OTP application name — `rocksky_erl` (see
%% src/rocksky_erl.app.src) — avoiding the unscoped `rocksky`. The .so is
%% intentionally excluded (fetched on first load); priv/ ships only the manifest.
{hex, [
{doc, ex_doc},
{files, [
"src",
"rebar.config",
"README.md",
"LICENSE",
"priv/rocksky_nif.manifest"
]}
]}.