Repository navigation
Expand file tree
/
Copy pathmix.exs
More file actions
117 lines (108 loc) · 2.73 KB
/
Copy pathmix.exs
File metadata and controls
117 lines (108 loc) · 2.73 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
defmodule RustyXML.MixProject do
use Mix.Project
@version "0.2.3"
@source_url "https://github.com/jeffhuen/rustyxml"
def project do
[
app: :rusty_xml,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
# Hex
description: description(),
package: package(),
# Docs
name: "RustyXML",
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp description do
"""
Ultra-fast XML parser and XPath 1.0 engine for Elixir — a Rust NIF with
SIMD-accelerated zero-copy structural index. 100% W3C/OASIS conformance
(1089/1089). 8-72x faster, 89-100x less memory than SweetXml. Drop-in
replacement for SweetXml and Saxy with sigils, SAX, streaming, and encoding.
"""
end
defp package do
[
name: "rusty_xml",
maintainers: ["Jeff Huen"],
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"Changelog" => "#{@source_url}/blob/main/CHANGELOG.md"
},
files: ~w(
lib
native/rustyxml/src
native/rustyxml/Cargo.toml
native/rustyxml/Cargo.lock
checksum-Elixir.RustyXML.Native.exs
.formatter.exs
mix.exs
README.md
LICENSE
CHANGELOG.md
docs
)
]
end
defp docs do
[
main: "readme",
name: "RustyXML",
source_ref: "v#{@version}",
source_url: @source_url,
homepage_url: @source_url,
extras: [
"README.md": [title: "Overview"],
"CHANGELOG.md": [title: "Changelog"],
"docs/ARCHITECTURE.md": [title: "Architecture"],
"docs/BENCHMARK.md": [title: "Benchmarks"],
"docs/COMPLIANCE.md": [title: "XML Compliance"],
LICENSE: [title: "License"]
],
groups_for_extras: [
Guides: ~r/docs\/.*/
],
groups_for_modules: [
Core: [
RustyXML
],
"SAX / Saxy-Compatible": [
RustyXML.Handler,
RustyXML.Partial,
RustyXML.SimpleForm,
RustyXML.XML,
RustyXML.Builder,
RustyXML.Encoder
],
Streaming: [
RustyXML.Streaming
],
"Low-Level": [
RustyXML.Native
]
]
]
end
defp deps do
[
{:rustler, "~> 0.37", optional: true},
{:rustler_precompiled, "~> 0.8"},
{:sweet_xml, "~> 0.7", only: [:dev, :test]},
{:saxy, "~> 1.6", only: [:dev, :test]},
{:benchee, "~> 1.0", only: :dev},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
end