Skip to content

Commit

Permalink
Fix mix files and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitsh committed Oct 17, 2019
1 parent 32dc727 commit 45d6fb0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ erl_crash.dump

# Ignore package tarball (built via "mix hex.build").
fluex-*.tar

/priv/native/
21 changes: 15 additions & 6 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
[
Expand Down
Binary file removed priv/native/libfluex_rs.so
Binary file not shown.

0 comments on commit 45d6fb0

Please sign in to comment.