Current section

Files

Jump to
httpower mix.exs
Raw

mix.exs

defmodule HTTPower.MixProject do
use Mix.Project
@version "0.5.0"
@source_url "https://github.com/mdepolli/httpower"
def project do
[
app: :httpower,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
name: "HTTPower",
source_url: @source_url
]
end
def application do
[
extra_applications: [:logger],
mod: {HTTPower.Application, []}
]
end
defp deps do
[
# HTTP client adapters - at least one required
{:req, "~> 0.4.0", optional: true},
{:tesla, "~> 1.11", optional: true},
# Development dependencies
{:plug, "~> 1.15", only: :test},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp description do
"""
Production-ready HTTP client with adapter support for Req and Tesla. Adds reliability patterns
(circuit breakers, rate limiting, smart retries) on top of your HTTP client choice.
"""
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["Marcelo De Polli"]
]
end
defp docs do
[
main: "HTTPower",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["README.md"]
]
end
end