View gist:592b3e38dcddff5bc770
λ ./rebar3 help compile                     
Usage: rebar compile [-j <jobs>]

  -j, --jobs  Number of concurrent workers the compiler may use. Default: 3
View hello.c
1 2 3 4 5 6 7 8 9 10
#include "erl_nif.h"
 
static ERL_NIF_TERM world(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{
return enif_make_string(env, "Hello world!", ERL_NIF_LATIN1);
}
 
static ErlNifFunc nif_funcs[] = {
{"world", 0, world}
};
View erl_nif.rs
1 2 3 4 5 6 7 8 9 10
/* automatically generated by rust-bindgen */
extern crate libc;
use libc::size_t;
use libc::ssize_t;
 
#[repr(C)]
pub struct ErlDrvSysInfo {
pub driver_major_version: ::libc::c_int,
pub driver_minor_version: ::libc::c_int,
pub erts_version: *mut ::libc::c_char,
View erl_nif.rs
1 2 3 4 5 6 7 8 9 10
/* automatically generated by rust-bindgen */
 
pub type ErlNifUInt64 = ::libc::c_ulong;
pub type ErlNifSInt64 = ::libc::c_long;
pub type ERL_NIF_TERM = ::libc::c_ulong;
pub type ERL_NIF_UINT = ERL_NIF_TERM;
pub enum Struct_enif_environment_t { }
pub type ErlNifEnv = Struct_enif_environment_t;
#[repr(C)]
pub struct ErlNifFunc {
View gist:4f9ef949281acfe9d4c7
1 2 3 4 5 6
dialyzer --fullpath --plt /home/tristan/Devel/rebar/.depsolver_plt -Wno_opaque -Wrace_conditions -r ./ebin
Checking whether the PLT /home/tristan/Devel/rebar/.depsolver_plt is up-to-date... yes
Proceeding with analysis...
dialyzer: Analysis failed with error:
Could not scan the following file(s):
Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_version.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_update.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_shell.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_tar.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_release.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_packages.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_new.beam Could not get core Erlang code for: /home/tristan/Devel/rebar/ebin/rebar_prv_lock.beam Could
View gist:dbdd7e8d5a38a93247f8
1 2 3 4 5 6 7 8 9 10
1> beam_lib:chunks("/home/tristan/Devel/rebar/ebin/rebar_prv_version.beam", [compile_info]).
{ok,{rebar_prv_version,
[{compile_info,
[{options,
[{outdir,"ebin"},
debug_info,
{d,namespaced_types},
debug_info,warnings_as_errors,
{i,"include"}]},
{version,"5.0.2"},
View gist:3e024f796bb2fef48674
1 2 3 4 5 6 7 8 9
my_project:
{:foo, git: "https://github.com/elixir-lang/foo.git", tag: "0.1"}
{:bar, git: "https://github.com/elixir-lang/bar.git", tag: "0.1"}
 
foo 0.1:
{:bar, git: "https://github.com/elixir-lang/bar.git", tag: "0.1"}
 
foo 0.2:
{:bar, git: "https://github.com/elixir-lang/bar.git", tag: "0.2"}
View gist:ab748cb69807ac241d26
1 2 3 4 5 6 7
top_level:
cowboy 1.0.0
ranch 1.0.1
 
cowboy 1.0.0:
ranch 1.0.0
cowlib 1.0.0
View gist:4cf90de8b42c7a9f3bd6
1 2 3 4 5 6 7 8 9
%% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
 
-module(dummy).
 
-behaviour(rebar_provider).
 
-export([init/1,
do/1]).
View gist:d4b35b07e8e6cb059689
1 2 3 4 5 6 7 8 9
λ ../rebar/rebar3 compile
===> Compiling minasan
Opts [{outdir,"/home/tristan/Devel/minasan/ebin"},
debug_info,
{i,"rebar/include"},
{i,"/home/tristan/Devel/minasan/include"},
return]
===> Compiling /home/tristan/Devel/minasan/src/dummy.erl failed:
/home/tristan/Devel/minasan/src/dummy.erl:11: can't find include file "rebar.hrl"
Something went wrong with that request. Please try again.