defmodule Spake2.MixProject do
use Mix.Project
@source_url "https://github.com/tv-labs/spake2"
@version "0.1.0"
def project do
[
app: :spake2,
version: @version,
elixir: "~> 1.19",
start_permanent: Mix.env() == :prod,
name: "Spake2",
description:
"SPAKE2 password-authenticated key exchange over Ed25519 (BoringSSL-compatible)",
source_url: @source_url,
homepage_url: @source_url,
package: package(),
docs: docs(),
deps: deps()
]
end
defp package do
[
maintainers: ["David Bernheisel"],
licenses: ["Apache-2.0"],
links: %{
"GitHub" => @source_url
}
]
end
@mermaid_js """
"""
defp docs do
[
main: "Spake2",
extras: ["CHANGELOG.md"],
source_url: "https://github.com/tv-labs/spake2",
before_closing_body_tag: %{html: @mermaid_js},
source_ref: "v#{@version}"
]
end
def application do
[
extra_applications: [:logger, :crypto]
]
end
defp deps do
[
{:stream_data, "~> 1.0", only: :test},
{:ex_doc, "~> 0.40", only: :dev, runtime: false, warn_if_outdated: true},
{:tidewave, "~> 0.5", only: :dev, warn_if_outdated: true},
{:exsync, "~> 0.4", only: :dev},
{:bandit, "~> 1.0", only: :dev}
]
end
end