Skip to content

Commit

Permalink
more config
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Oct 30, 2023
1 parent 37e61ef commit e4dc8a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/candlex/native.ex
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
defmodule Candlex.Native do
@moduledoc false

version = Mix.Project.config()[:version]
source_url = "https://github.com/mimiquate/candlex"
mix_config = Mix.Project.config()
version = mix_config[:version]
source_url = mix_config[:package][:links]["GitHub"]
mode = if Mix.env() in [:dev, :test], do: :debug, else: :release

use RustlerPrecompiled,
otp_app: :candlex,
features: Application.compile_env(:candlex, :crate_features, []),
base_url: "#{source_url}/releases/download/v#{version}",
force_build: System.get_env("CANDLE_BUILD") in ["1", "true"],
mode: mode,
version: version,
nif_versions: ["2.16"],
targets: [
Expand Down

0 comments on commit e4dc8a5

Please sign in to comment.