# Copyright 2026 Relay, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. defmodule ExCredstash.MixProject do use Mix.Project @version "0.1.1" @source_url "https://github.com/relaypro-open/ex_credstash" def project do [ app: :ex_credstash, version: @version, elixir: "~> 1.15", start_permanent: Mix.env() == :prod, deps: deps(), escript: escript(), # Hex.pm publishing name: "ExCredstash", description: "Elixir implementation of credstash - a utility for managing secrets using AWS KMS and DynamoDB", package: package(), docs: docs(), source_url: @source_url, homepage_url: @source_url ] end # Run "mix help compile.app" to learn about applications. def application do [ extra_applications: [:logger, :crypto] ] end defp escript do [ main_module: ExCredstash.CLI, name: "credstash" ] end defp package do [ name: "ex_credstash", licenses: ["Apache-2.0"], links: %{ "GitHub" => @source_url }, files: ~w(lib .formatter.exs mix.exs README.md) ] end defp docs do [ main: "readme", extras: ["README.md"], source_ref: "v#{@version}", source_url: @source_url ] end # Run "mix help deps" to learn about dependencies. defp deps do [ # AWS SDK {:aws, "~> 1.0"}, {:aws_credentials, "~> 0.3"}, {:hackney, "~> 1.20"}, # JSON encoding/decoding {:jason, "~> 1.4"}, # Development and test dependencies {:ex_doc, "~> 0.31", only: :dev, runtime: false}, {:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}, {:credo, "~> 1.7", only: [:dev, :test], runtime: false} ] end end