drvspw / rebar3-templates

rebar3 templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Templates

rebar3 custom template for creating

  • OTP library (without root supervisor)
  • OTP application (with root supervisor)
  • OTP release
  • NIF's using rustler

Installation

  1. Create the global variables file in $HOME/.config/rebar3/templates/globals with the following contents
{variables, [
    {copyright_owner, "YOUR NAME"},
	{gh_owner, "GITHUB OWNER"}
   ]}.
  1. 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.

Notes

  • The templates add a .gitattributes file with the following contents
    ## Do not export to source archive in github release
    * export-none
    
    Remove this file if not needed.

About

rebar3 templates

License:GNU General Public License v3.0


Languages

Language:Erlang 99.4%Language:Rust 0.6%