forked from mischov/meeseeks_html5ever
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
68 lines (58 loc) · 1.27 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
defmodule MeeseeksHtml5ever.Mixfile do
use Mix.Project
@description "Meeseeks-specific NIF binding of html5ever using Rustler"
@source_url "https://github.com/mischov/meeseeks_html5ever"
@version "0.14.3"
def project do
[
app: :meeseeks_html5ever,
version: @version,
elixir: "~> 1.12",
deps: deps(),
# Hex
description: @description,
package: package(),
# HexDocs
name: "MeeseeksHtml5ever",
docs: docs()
]
end
def application do
[extra_applications: [:logger]]
end
defp deps do
[
{:rustler_precompiled, "~> 0.6.1"},
# Optional
{:rustler, ">= 0.0.0", optional: true},
# Docs
{:ex_doc, "~> 0.24.0", only: :docs, runtime: false}
]
end
defp docs do
[
main: "MeeseeksHtml5ever",
source_url: @source_url,
source_ref: "v#{@version}",
extras: ["CHANGELOG.md"]
]
end
defp package do
[
maintainers: ["Mischov"],
licenses: ["MIT", "Apache-2.0"],
files: [
"lib",
"native",
"checksum-*.exs",
"priv/.gitkeep",
"mix.exs",
"README.md",
"CHANGELOG.md",
"LICENSE-MIT",
"LICENSE-APACHE"
],
links: %{"GitHub" => @source_url}
]
end
end