Skip to content

Commit 9dfdc64

Browse files
committed
Mix config
1 parent ff5ec52 commit 9dfdc64

File tree

1 file changed

+3
-2
lines changed
  • lib/components_guide/rustler

1 file changed

+3
-2
lines changed

lib/components_guide/rustler/math.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ defmodule ComponentsGuide.Rustler.Math do
33
# use Rustler, otp_app: :components_guide, crate: :componentsguide_rustler_math, target_dir: System.tmp_dir!()
44
# use Rustler, otp_app: :components_guide, crate: :componentsguide_rustler_math, cargo: {:rustup, :stable}
55

6+
app = Mix.Project.config()[:app]
67
version = Mix.Project.config()[:version]
78

89
use RustlerPrecompiled,
9-
otp_app: :rustler_precompilation_example,
10-
crate: "example",
10+
otp_app: app,
11+
crate: "componentsguide_rustler_math",
1112
base_url:
1213
"https://github.com/ComponentsGuide/components_guide/releases/download/v#{version}",
1314
force_build: System.get_env("RUSTLER_PRECOMPILATION_EXAMPLE_BUILD") in ["1", "true"],

0 commit comments

Comments
 (0)