Packages
protox
1.6.8
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-dev
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
retired
1.7.3
1.7.2
1.7.1
1.7.0
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.1
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.0
0.25.0
0.24.0
0.23.1
0.23.0
0.22.0
0.21.0
0.20.0
0.19.1
0.19.0
0.18.0
0.17.0
0.16.2
0.16.1
0.16.0
0.15.2
0.15.1
0.15.0
0.14.0
0.13.0
0.12.1
0.12.0
0.11.1
0.11.0
0.10.0
0.9.1
0.9.0
0.8.0
0.7.1
0.7.0
A fast, easy to use and 100% conformant Elixir library for Google Protocol Buffers (aka protobuf)
Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Protox.Mixfile do
use Mix.Project
def project do
[
app: :protox,
version: "1.6.8",
elixir: "~> 1.9",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
test_coverage: [tool: ExCoveralls],
elixirc_paths: elixirc_paths(Mix.env()),
escript: escript(),
name: "Protox",
source_url: "https://github.com/ahamez/protox",
description: description(),
package: package(),
dialyzer: [plt_local_path: "priv/plts"],
docs: docs()
]
end
# Do not compile conformance and benchmarks related files when in production
defp elixirc_paths(:prod), do: ["lib"]
defp elixirc_paths(_), do: ["lib", "conformance", "benchmarks"]
def application do
[
extra_applications: [
:crypto,
:mix
]
]
end
defp deps do
[
{:benchee, "~> 1.0", only: [:dev], runtime: false},
{:benchee_html, "~> 1.0", only: [:dev], runtime: false},
{:benchee_markdown, "~> 0.2", only: [:dev], runtime: false},
{:credo, "~> 1.4", only: [:test, :dev], runtime: false},
{:decimal, "~> 1.9 or ~> 2.0"},
{:dialyxir, "~> 1.0", only: [:test, :dev], runtime: false},
{:excoveralls, "~> 0.13", only: [:test], runtime: false},
{:ex_doc, "~> 0.22", only: [:dev], runtime: false},
{:git_hooks, "~> 0.5", only: [:test, :dev], runtime: false},
{:jason, "~> 1.2", optional: true},
{:mix_test_watch, "~> 1.0", only: [:dev], runtime: false},
{:poison, "~> 4.0 or ~> 5.0", only: [:test, :dev], optional: true},
{:propcheck, "~> 1.2", only: [:test, :dev]}
]
end
defp description do
"""
A fast, easy to use and 100% conformant Elixir library for Google Protocol Buffers (aka protobuf)
"""
end
def escript do
[
# do not start any application: avoid propcheck app to fail when running escript
app: nil,
main_module: Protox.Conformance.Escript,
name: "protox_conformance"
]
end
defp package do
[
name: :protox,
files: ["lib", "mix.exs", "README*", "LICENSE"],
maintainers: ["Alexandre Hamez"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/ahamez/protox"},
exclude_patterns: [".DS_Store"]
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "documentation/reference.md"]
]
end
end