rox/mix.exs

61 lines
1.4 KiB
Elixir
Raw Normal View History

2016-08-08 08:51:04 -07:00
defmodule Rox.Mixfile do
use Mix.Project
def project do
[app: :rox,
2017-03-21 12:20:52 -07:00
version: "1.0.0",
2016-08-08 08:51:04 -07:00
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
2017-02-27 16:36:14 -08:00
compilers: [:rustler] ++ Mix.compilers(),
rustler_crates: rustler_crates(),
2017-03-21 12:20:52 -07:00
description: description(),
package: package(),
2016-08-08 08:51:04 -07:00
deps: deps()]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
2017-02-27 16:36:14 -08:00
[applications: [:logger]]
2016-08-08 08:51:04 -07:00
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type "mix help deps" for more examples and options
defp deps do
2016-08-08 09:45:13 -07:00
[
2017-02-27 16:36:14 -08:00
{:rustler, git: "https://github.com/hansihe/rustler.git", sparse: "rustler_mix"},
]
end
defp rustler_crates do
[
rox_nif: [path: "native/rox_nif", cargo: :system, default_features: false, features: [], mode: :release],
2016-08-08 09:45:13 -07:00
]
2016-08-08 08:51:04 -07:00
end
2017-03-21 12:20:52 -07:00
defp description, do:
"""
Rust powered bindings to Facebook's RocksDB
"""
defp package do
[
name: :rox,
files: ["lib", "native", "mix.exs", "README*", "History.md", "LICENSE"],
maintainers: ["Ryan Schmukler"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/urbint/rox"}
]
end
2016-08-08 08:51:04 -07:00
end