GitPedia

Html5ever elixir

NIF wrapper of html5ever using Rustler

From rusterlium·Updated May 7, 2026·View on GitHub·

NIF binding of [html5ever](https://github.com/servo/html5ever) using [Rustler](https://github.com/rusterlium/rustler). The project is written primarily in HTML, distributed under the Apache License 2.0 license, first published in 2017. Key topics include: binding, elixir, erlang, html-parser, html5ever.

Latest release: v0.18.0
April 16, 2026View Changelog →

Html5ever binding for Elixir

CI

NIF binding of html5ever using Rustler.

It is currently functional with basic features.

Installation

The package can be installed by adding html5ever to your list of dependencies in mix.exs:

elixir
def deps do [{:html5ever, "~> 0.18.0"}] end

Or with Mix.install/1:

elixir
Mix.install([:html5ever])

Forcing compilation

By default you don't need Rust installed because the lib will try to download
a precompiled NIF file. In case you want to force compilation set the
HTML5EVER_BUILD environment variable to true or 1. Alternatively you can also set the
application env :build_from_source to true in order to force the build:

elixir
config :html5ever, Html5ever, build_from_source: true

You also need to add Rustler to your dependencies when you want to force
the compilation:

elixir
def deps do [ {:html5ever, "~> 0.18.0"}, {:rustler, ">= 0.0.0", optional: true} ] end

License

Licensed under either of

at your option.

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from rusterlium/html5ever_elixir via the GitHub API.Last fetched: 6/27/2026