Skip to content

Commit e28b531

Browse files
authored
Merge pull request #71 from mischov/fix/nif-version-issues
Add NIF version info to support precompiling both 2.15 and 2.16
2 parents 53ca026 + 92e76d6 commit e28b531

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

lib/meeseeks_html5ever/native.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ defmodule MeeseeksHtml5ever.Native do
1616
env_config[:build_from_source],
1717
targets:
1818
Enum.uniq(["aarch64-unknown-linux-musl" | RustlerPrecompiled.Config.default_targets()]),
19-
version: version
19+
version: version,
20+
nif_versions: ["2.15", "2.16"]
2021

2122
def parse_html(_binary), do: err()
2223
def parse_xml(_binary), do: err()

native/meeseeks_html5ever_nif/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ markup5ever = "0.11"
1818

1919
tendril = "0.4"
2020
lazy_static = "1.4"
21+
22+
[features]
23+
default = ["nif_version_2_15"]
24+
nif_version_2_15 = ["rustler/nif_version_2_15"]
25+
nif_version_2_16 = ["rustler/nif_version_2_16"]

0 commit comments

Comments
 (0)