rebar3
custom template for creating
- OTP library (without root supervisor)
- OTP application (with root supervisor)
- OTP release
- NIF's using rustler
- Create the global variables file in
$HOME/.config/rebar3/templates/globals
with the following contents
{variables, [
{copyright_owner, "YOUR NAME"},
{gh_owner, "GITHUB OWNER"}
]}.
- Download the latest tarball from Releases page and extract into
$HOME/.config/rebar3/templates/
directory.rebar3
should list the new templates- application
- service
- library
- rustler
- script
$ rebar3 new
app (built-in): Complete OTP Application structure.
application (custom): Complete OTP application structure (with root supervisor)
cmake (built-in): Standalone Makefile for building C/C++ in c_src
escript (built-in): Complete escriptized application structure
lib (built-in): Complete OTP Library application (no processes) structure
library (custom): Complete OTP Library application structure
plugin (built-in): Rebar3 plugin project structure
release (built-in): OTP Release structure for executable programs
rustler (custom): Rust NIF's using rustler in rustler/
script (custom): Complete escriptize application structure
service (custom): Complete OTP Release application structure
umbrella (built-in): OTP structure for executable programs (alias of 'release' template)
$
For more information on the template please refer to README.md
in the appropriate directories.
- The templates add a
.gitattributes
file with the following contentsRemove this file if not needed.## Do not export to source archive in github release * export-none