From f6a48119bd62e65df52a9efe948780751512986c Mon Sep 17 00:00:00 2001 From: Roland Metivier Date: Sun, 14 Feb 2021 15:14:06 -0600 Subject: [PATCH] rm debug logger, fix config possibly --- lib/rust2ex.ex | 3 +-- mix.exs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/rust2ex.ex b/lib/rust2ex.ex index d5b0e70..313c7a2 100644 --- a/lib/rust2ex.ex +++ b/lib/rust2ex.ex @@ -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 @@ -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") ]) diff --git a/mix.exs b/mix.exs index 3c7279d..8c4f271 100644 --- a/mix.exs +++ b/mix.exs @@ -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",