Packages

A complete and correct Bencode encoder and decoder written in pure Elixir. The decoder will return the info hash with along with the decoded data, and the encoder is implemented as a protocol, allowing any data structure to be bcode encoded.

Current section

Files

Jump to
bencode mix.exs
Raw

mix.exs

defmodule Bencode.Mixfile do
use Mix.Project
def project do
[app: :bencode,
version: "0.0.2",
elixir: "~> 1.1",
test_pattern: "*_{test,eqc}.exs",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description,
package: package,
deps: deps]
end
def application do
[applications: [:logger]]
end
defp description do
"""
A bencode encoder and decoder.
The decoder will return the info hash with along with the decoded data, and
the encoder is implemented as a protocol, allowing any data structure to be
bcode encoded.
"""
end
def package do
[files: ["lib", "mix.exs", "README*", "LICENSE"],
maintainers: ["Martin Gausby"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/gausby/bencode"}]
end
defp deps do
[{:eqc_ex, "~> 1.2.4"}]
end
end