mix.exs

defmodule AStar.MixProject do
  use Mix.Project

  @source_url "https://github.com/imnotavirus/astar_ex"
  @version "0.1.0"

  def project do
    [
      app: :astar,
      name: "AStar",
      description: "A simple Elixir NIF implementation for A*",
      version: @version,
      elixir: "~> 1.13",
      deps: deps(),
      package: package()
    ]
  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.29", optional: true},
      {:rustler_precompiled, "~> 0.7"},
      {:ex_doc, "~> 0.29", only: :dev, runtime: false}
    ]
  end

  defp package do
    [
      files: [
        "lib",
        "native",
        "mix.exs",
        # "LICENSE",
        "checksum-*.exs"
      ],
      licenses: ["MIT"],
      links: %{"GitHub" => @source_url},
      maintainers: ["ImNotAVirus"]
    ]
  end
end