-
Notifications
You must be signed in to change notification settings - Fork 19
/
mix.exs
79 lines (69 loc) · 1.65 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
69
70
71
72
73
74
75
76
77
78
79
defmodule FastRSS.MixProject do
use Mix.Project
@source_url "https://github.com/avencera/fast_rss"
@version "0.5.0"
def project do
[
app: :fast_rss,
version: @version,
elixir: "~> 1.6",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
# hex
description: "Fast Elixir RSS feed parser, a NIF wrapper around the Rust RSS crate",
package: package(),
# docs
homepage_url: "https://avencera.github.io/fast_rss/",
docs: docs(),
# rustler
start_permanent: Mix.env() == :prod,
compilers: Mix.compilers(),
rustler_crates: [fastrss: []]
]
end
defp package() do
[
files: [
"lib",
"native/fastrss/.cargo",
"native/fastrss/src",
"native/fastrss/Cargo.toml",
"native/fastrss/Cargo.lock",
"checksum-*.exs",
"mix.exs",
"README.md",
"LICENSE"
],
maintainers: ["Praveen Perera"],
licenses: ["Apache-2.0"],
links: %{
"Changelog" => "#{@source_url}/blob/master/CHANGELOG.md",
"GitHub" => @source_url
}
]
end
defp docs() do
[
main: "readme",
markdown_processor: ExDoc.Markdown.Earmark,
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
source_ref: "v#{@version}",
source_url: @source_url
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
# rust
{:rustler, "~> 0.33.0", optional: true},
{:rustler_precompiled, "~> 0.7"},
# docs
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
end