Giter Site home page Giter Site logo

benjamin-philip / html5ever_elixir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rusterlium/html5ever_elixir

0.0 0.0 0.0 332 KB

NIF wrapper of html5ever using Rustler

Home Page: https://hexdocs.pm/html5ever

License: Apache License 2.0

Rust 27.87% Elixir 18.32% HTML 53.80%

html5ever_elixir's Introduction

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:

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

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:

config :html5ever, Html5ever, build_from_source: true

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

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

License

Licensed under either of

at your option.

html5ever_elixir's People

Contributors

dependabot[bot] avatar hansihe avatar mfeckie avatar notriddle avatar philss avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.