Skip to content

Commit

Permalink
rm debug logger, fix config possibly
Browse files Browse the repository at this point in the history
  • Loading branch information
Chlorophytus committed Feb 14, 2021
1 parent 06fe8cc commit f6a4811
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/rust2ex.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ defmodule Mix.Tasks.Compile.Rust2ex do
@moduledoc "Compiles Rust packages in `native`, installs to `_build`"

defp compile_dep(where) do
IO.puts(where)
{_, code} = System.cmd("cargo", ["build", "--manifest-path", where])

case code do
Expand All @@ -13,7 +12,7 @@ defmodule Mix.Tasks.Compile.Rust2ex do
"--path",
Path.dirname(where),
"--root",
to_string(:code.priv_dir(Mix.Project.config[:app])),
to_string(:code.priv_dir(Mix.Project.config[:app]())),
if(Mix.env() == :prod, do: "", else: "--debug")
])

Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Rust2ex.MixProject do
def project do
[
app: :rust2ex,
version: "0.1.0",
version: "0.1.3",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
Expand Down

0 comments on commit f6a4811

Please sign in to comment.