Unifex

Hex.pmAPI DocsCircleCI

Unifex is a tool for generating interfaces between native C code and Elixir, that:

API documentation is available at HexDocs.

Unifex uses Bundlex to compile and load the native code. See there for supported platforms & details.

This tool is maintained by the Membrane Framework team.

Installation

To install, you need to configure Mix project as follows:

defmodule MyApp.Mixfile do
  use Mix.Project

  def project do
    [
      app: :my_app,
      compilers: [:unifex, :bundlex] ++ Mix.compilers, # add unifex and bundlex to compilers
      ...,
      deps: deps()
   ]
  end

  defp deps() do
    [
    {:unifex, "~> 1.0.0"}
    ]
  end
end

Usage

For detailed usage description see Creating Unifex Natives guide.

Supported types

For currently supported types see Supported Types section.

See also

Unifex depends on the following libraries:

Copyright and License

Copyright 2018, Software Mansion

Software Mansion

Licensed under the Apache License, Version 2.0