defmodule Dims.MixProject do use Mix.Project @version "0.1.0" @description "Probe remote image dimensions (width × height) from just a URL — fetches only the first bytes via HTTP Range and parses JPEG/PNG/WebP/GIF headers. Batch probing with parallelism, median backfill for failed probes, sampling for huge lists, and built-in caching." @source_url "https://github.com/alexdont/dims" def project do [ app: :dims, version: @version, description: @description, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: deps(), package: package(), docs: docs() ] end def application do [ extra_applications: [:logger], mod: {Dims.Application, []} ] end defp deps do [ {:req, "~> 0.4 or ~> 0.5 or ~> 0.6"}, {:ex_doc, "~> 0.39", only: :dev, runtime: false} ] end defp package do [ name: "dims", maintainers: ["Alexander Don"], licenses: ["MIT"], links: %{"GitHub" => @source_url}, files: ~w(lib mix.exs README.md LICENSE CHANGELOG.md) ] end defp docs do [ name: "Dims", source_ref: "v#{@version}", source_url: @source_url, main: "Dims", extras: ["README.md", "CHANGELOG.md", "LICENSE"] ] end end