-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
kaitsh
committed
Oct 17, 2019
1 parent
32dc727
commit 45d6fb0
Showing
3 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ erl_crash.dump | |
|
||
# Ignore package tarball (built via "mix hex.build"). | ||
fluex-*.tar | ||
|
||
/priv/native/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,7 @@ defmodule Fluex.MixProject do | |
elixir: "~> 1.9", | ||
start_permanent: Mix.env() == :prod, | ||
compilers: [:rustler] ++ Mix.compilers(), | ||
rustler_crates: [ | ||
fluex_rs: [ | ||
mode: if(Mix.env() == :prod, do: :release, else: :debug) | ||
] | ||
], | ||
rustler_crates: rustler_crates(), | ||
description: "fluent-rs NIF localization/translation for Elixir", | ||
package: package(), | ||
deps: deps() | ||
|
@@ -24,11 +20,24 @@ defmodule Fluex.MixProject do | |
files: ["lib", "mix.exs", "README.md"], | ||
maintainers: ["Kaitsh <[email protected]"], | ||
licenses: ["Apache License 2.0"], | ||
files: ~w(lib priv mix.exs README* LICENSE*), | ||
files: ~w(lib native mix.exs README* LICENSE*), | ||
links: %{"GitHub" => "https://github.com/kaitsh/fluex"} | ||
] | ||
end | ||
|
||
defp rustler_crates do | ||
[ | ||
fluent_rs: [ | ||
path: "native/fluent_rs", | ||
cargo: :system, | ||
default_features: false, | ||
features: [], | ||
mode: :release | ||
# mode: (if Mix.env == :prod, do: :release, else: :debug), | ||
] | ||
] | ||
end | ||
|
||
# Run "mix help compile.app" to learn about applications. | ||
def application do | ||
[ | ||
|
Binary file not shown.