-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
90 lines (79 loc) · 2.21 KB
/
mix.exs
File metadata and controls
90 lines (79 loc) · 2.21 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
defmodule Zixir.MixProject do
use Mix.Project
@version "7.1.0"
@source_url "https://github.com/Zixir-lang/Zixir"
def project do
[
app: :zixir,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: "Zixir: small, expression-oriented language and three-tier runtime — Elixir (orchestrator), Zig (engine), Python (specialist)",
package: package(),
docs: docs(),
aliases: aliases(),
releases: releases(),
test_pattern: "*_test.exs",
test_ignore_filters: [~r/test\/support\//]
]
end
defp releases do
[
zixir: [
version: @version,
include_executables_for: [:unix, :windows],
applications: [runtime_tools: :permanent],
overlays: ["rel/overlays"],
strip_beams: true
]
]
end
def application do
[
extra_applications: [:logger],
mod: {Zixir.Application, []}
]
end
defp deps do
[
# Use GitHub so priv/erl_nif_win is present on Windows (Hex omits it). Tag is 0.15.2.
# IMPORTANT: Zig NIFs require Zig 0.15.x exactly. If you have Zig 0.16+, comment out zigler
# and the project will use pure Elixir fallbacks (slower but universal compatibility).
# {:zigler, [github: "E-xyza/zigler", ref: "0.15.2", runtime: false]},
{:erlport, "~> 0.10"},
{:jason, "~> 1.4"},
{:nimble_parsec, "~> 1.4"},
{:httpoison, "~> 2.2"},
# Phoenix Web Framework (minimal - no LiveView, no Ecto)
{:phoenix, "~> 1.8"},
{:phoenix_html, "~> 4.1"},
{:phoenix_view, "~> 2.0"},
{:gettext, "~> 0.20"},
# Lightweight HTTP server
{:bandit, "~> 1.0"},
# File upload processing
{:pdf_extractor, "~> 0.5"},
{:docxelixir, "~> 1.0"},
{:floki, "~> 0.35"}
# Optional MLIR (Beaver): add {:beaver, "~> 0.4"} on Unix only; Kinda does not support Windows.
]
end
defp package do
[
licenses: ["Apache-2.0"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "project_Analysis_for_fork.md"]
]
end
defp aliases do
[
test: ["compile", "test"]
]
end
end