ASN.1 compiler mix task to generate erlang parser using asn1rt and asn1ct.
Add the following line on the project function of mix.exs file:
compilers: [:asn1] ++ Mix.compilers
and asn1ex as a dependency:
{:asn1ex, git: "git://github.com/vicentfg/asn1ex.git"}
Other configuration options:
-
:asn1_paths
- directories to find source files. Defaults to["asn1"]
. -
:erlc_paths
- directories to store generated source files. Defaults to["src"]
. -
:asn1_options
- compilation options that apply to ASN.1's compiler. There are many other available options here: http://erlang.org/doc/man/asn1ct.html#compile-2.