Skip to content

Commit

Permalink
Configure rustler_precompiled to use nif_versions 2.15 & 2.16
Browse files Browse the repository at this point in the history
By default only 1.15 is configured, but we also provide the precompiled
libs for NIF version 2.16.
  • Loading branch information
paulgoetze committed Dec 16, 2023
1 parent 341ffaf commit e0dfa81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mjml/native.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ defmodule Mjml.Native do
base_url: "#{github_url}/releases/download/v#{version}",
force_build: System.get_env("MJML_BUILD") in ["1", "true"],
version: version,
targets: targets
targets: targets,
nif_versions: ~w(2.15 2.16)

def to_html(_mjml, _render_options), do: error()
defp error(), do: :erlang.nif_error(:nif_not_loaded)
Expand Down

0 comments on commit e0dfa81

Please sign in to comment.