Originally a fork of Hansihe's html5ever_elixir that is more tightly coupled with Meeseeks, Meeseeks_Html5ever has grown to include additional functionality, such as use of xml5ever for XML parsing.
Meeseeks_Html5ever requires a minimum combination of Elixir 1.12.0 and Erlang/OTP 23.0, and is tested with a maximum combination of Elixir 1.14.0 and Erlang/OTP 25.0.
Ensure Rust is installed, then add Meeseeks_Html5ever to your mix.exs
:
def deps do
[
{:meeseeks_html5ever, "~> 0.14.3"}
]
end
Finally, run mix deps.get
.
Meeseeks_Html5ever depends on the Rust library html5ever, providing a Rustler-based NIF to interface with it.
You do not need to have Rust installed because the library will attempt to download a precompiled NIF file.
To force compilation you can either set the MEESEEKS_HTML5EVER_BUILD
environment variable to true
or 1
, or add the following application configuration
config :meeseeks_html5ever, MeeseeksHtml5ever, build_from_source: true
If you want to force compilation you will need to have the Rust compiler installed, and will need to add Rustler to your dependencies.
def deps do
[
{:meeseeks_html5ever, "~> 0.14.3"},
{:rustler, ">= 0.0.0", optional: true}
]
end
If you are interested in contributing please read the contribution guidelines.
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.