Something went wrong. Try again.
Elixir library for fetching data about current cloud instance
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566# SPDX-FileCopyrightText: 2026 Łukasz Niemier <~@hauleth.dev>## SPDX-License-Identifier: Apache-2.0
defmodule IMDS.MixProject do use Mix.Project
def project do [ app: :imds, version: "1.0.0", elixir: "~> 1.18", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(), description: description(), package: package(), docs: docs() ] end
def application do [ extra_applications: [:logger] ] end
defp description do "Read instance metadata from AWS, GCE, Azure, Oracle, Hetzner, Scaleway, " <> "and OpenStack through one API." end
defp package do [ licenses: ["Apache-2.0"], files: ["lib", "mix.exs", "README.md", "LICENSES"], links: %{ "Repository" => "https://tangled.org/hauleth.dev/imds" } ] end
defp docs do [ main: "IMDS", groups_for_modules: [ Providers: [~r/^IMDS\.Providers\./] ] ] end
defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_env), do: ["lib"]
defp deps do [ {:req, "~> 0.7"}, {:plug, "~> 1.0", only: [:test]}, {:ex_doc, "~> 0.40", only: [:dev], runtime: false}, {:credo, ">= 0.0.0", only: [:dev, :test], runtime: false}, {:ex_slop, "~> 0.1", only: [:dev, :test], runtime: false}, {:test_server, "~> 0.1.22", only: [:test]} ] endend