Current section

Files

Jump to
flier mix.exs
Raw

mix.exs

defmodule Flier.MixProject do
use Mix.Project
@version "0.2.7"
@url "https://github.com/easink/flier"
def project do
[
app: :flier,
name: "Flier",
version: @version,
elixir: "~> 1.17",
start_permanent: Mix.env() == :prod,
deps: deps(),
aliases: aliases(),
description: description(),
package: package(),
source_url: @url,
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:rustler, "~> 0.37.1", optional: true},
{:rustler_precompiled, "~> 0.8"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:tidewave, "~> 0.5", only: :dev},
{:bandit, "~> 1.0", only: :dev}
]
end
defp docs do
[
main: "Flier",
extras: ["README.md"],
groups_for_modules: [
"File watching": [Flier.Inotify],
"Directory listing": [Flier.Entries, Flier.Entries.Entry]
]
]
end
defp description() do
"Library for inotify and stream file listing."
end
defp package() do
[
name: "flier",
# These are the default files included in the package
files: ~w(lib native .formatter.exs mix.exs README* LICENSE* checksum-*.exs),
licenses: ["MIT"],
links: %{"Github" => @url}
]
end
defp aliases do
[
"format.all": ["format", "rust.fmt"],
"rust.lint": [
"cmd cargo clippy --manifest-path=native/flier_inotify/Cargo.toml -- -Dwarnings"
],
"rust.fmt": [
"cmd cargo fmt --manifest-path=native/flier_inotify/Cargo.toml --all",
"cmd cargo fmt --manifest-path=native/flier_entries/Cargo.toml --all"
],
"gen.checksum": [
"rustler_precompiled.download Flier.Entries.Native --all --print",
"rustler_precompiled.download Flier.Inotify.Native --all --print"
],
tidewave:
"run --no-halt -e 'Agent.start(fn -> Bandit.start_link(plug: Tidewave, ip: {127, 0, 0, 1}, port: 4000) end)'"
]
end
end