Skip to content

Commit

Permalink
Stop using RUSTLER_NIF_VERSION in rustler_mix
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed May 25, 2023
1 parent d9d2806 commit a91549f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions rustler_mix/lib/rustler/compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ defmodule Rustler.Compiler do
System.cmd(cmd, args,
cd: crate_full_path,
stderr_to_stdout: true,
env: [
{"CARGO_TARGET_DIR", config.target_dir},
{"RUSTLER_NIF_VERSION", nif_version()}
| config.env
],
env: [{"CARGO_TARGET_DIR", config.target_dir} | config.env],
into: IO.stream(:stdio, :line)
)

Expand All @@ -50,10 +46,6 @@ defmodule Rustler.Compiler do
config
end

defp nif_version do
System.get_env("RUSTLER_NIF_VERSION") || to_string(:erlang.system_info(:nif_version))
end

defp make_base_command(:system), do: ["cargo", "rustc"]
defp make_base_command({:system, channel}), do: ["cargo", channel, "rustc"]
defp make_base_command({:bin, path}), do: [path, "rustc"]
Expand Down

0 comments on commit a91549f

Please sign in to comment.