Packages

RFC 9421 HTTP Message Signatures for Elixir: create and verify signatures over HTTP message components with strict signature-base canonicalization.

Current section

Files

Jump to
Raw

mix.exs

defmodule MessageSignatures.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/ivan-podgurskiy/message_signatures"
def project do
[
app: :message_signatures,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
name: "MessageSignatures",
description:
"RFC 9421 HTTP Message Signatures for Elixir: create and verify signatures " <>
"over HTTP message components with strict signature-base canonicalization.",
package: package(),
source_url: @source_url,
docs: docs()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:crypto, :public_key]
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:plug, "~> 1.14", optional: true},
{:req, "~> 0.5", optional: true},
{:jason, "~> 1.4", optional: true},
{:stream_data, "~> 1.1", only: [:dev, :test]},
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
] ++ http_digest_dep()
end
# Local sibling until http_digest ships on Hex; used only by the Req
# composition tests and docs examples. Absent on CI - the composition
# tests are gated on Code.ensure_loaded?(HTTPDigest).
defp http_digest_dep do
if File.dir?("../http_digest"),
do: [{:http_digest, path: "../http_digest", only: [:dev, :test]}],
else: []
end
defp package do
[
files: ~w(lib .formatter.exs mix.exs README.md LICENSE CHANGELOG.md),
licenses: ["MIT"],
links: %{
"GitHub" => @source_url,
"RFC 9421" => "https://www.rfc-editor.org/rfc/rfc9421"
},
maintainers: ["Ivan Podgurskiy"]
]
end
defp docs do
[
main: "MessageSignatures",
source_ref: "v#{@version}",
source_url: @source_url,
groups_for_modules: [
Core: [
MessageSignatures,
MessageSignatures.Message,
MessageSignatures.VerifyResult,
MessageSignatures.Key,
MessageSignatures.Error,
MessageSignatures.SignatureParams,
MessageSignatures.Component,
MessageSignatures.SignatureBase
],
Behaviours: [
MessageSignatures.KeyResolver,
MessageSignatures.NonceChecker
],
Integrations: [
MessageSignatures.Plug,
MessageSignatures.Req
]
],
extras: ["README.md", "CHANGELOG.md", "LICENSE"]
]
end
end