From b37dbec00d5f324b4fe09c44797cb32a718cf0d5 Mon Sep 17 00:00:00 2001 From: Timujeen Date: Sat, 22 Aug 2026 10:19:12 +0300 Subject: [PATCH] Declare rustler explicitly so mdex_native force-builds MDEX_NATIVE_BUILD=1 in this environment forces mdex_native to build its NIF from source (OTP 28 ships no precompiled build), which requires rustler itself, not just rustler_precompiled. mdex arrives here transitively through phoenix_kit; a clean checkout failed to compile without this. Same declaration phoenix_kit's own mix.exs already carries. --- mix.exs | 6 ++++++ mix.lock | 1 + 2 files changed, 7 insertions(+) diff --git a/mix.exs b/mix.exs index 2fec32f..567d353 100644 --- a/mix.exs +++ b/mix.exs @@ -96,6 +96,12 @@ defmodule PhoenixKitDocumentCreator.MixProject do # the newest core. Two-segment, so every later 2.x still satisfies it. pk_dep(:phoenix_kit, "~> 2.4"), + # mdex_native (pulled in transitively through phoenix_kit's mdex dep) + # builds from source when MDEX_NATIVE_BUILD=1 is set in the + # environment; that path requires rustler itself, not just + # rustler_precompiled. Same declaration as phoenix_kit's own mix.exs. + {:rustler, ">= 0.0.0", optional: true}, + # LiveView is needed for the admin pages. {:phoenix_live_view, "~> 1.2"}, diff --git a/mix.lock b/mix.lock index eb1708b..6b709f6 100644 --- a/mix.lock +++ b/mix.lock @@ -71,6 +71,7 @@ "quic": {:hex, :quic, "1.8.1", "51415525c490d80f97073e39e17d289ebacda5468154cfb661ac04db5b1a5e95", [:rebar3], [], "hexpm", "884a7d30cb048d8d1acb97eb2b905d30d4c29b8928c0db3ab3060de7cdc97688"}, "ranch": {:hex, :ranch, "2.2.1", "fc2bb0e800efbeab8ff82eb325450b9c08653b14c3f69e8b09bbea304973105d", [:make, :rebar3], [], "hexpm", "55f05cce20ec2da1d90de5d5981afb93dbfc01325fc7e933189aa5c62f037c24"}, "req": {:hex, :req, "0.7.3", "b141f1b465dabc5fb8ce67bd2f15a85fc80f6c75719910699560e32ce49f62ef", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:finch, "~> 0.21", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 2.0.6 or ~> 2.1", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "73b303030dccc2b6d023ee5ada380825ab3a7cd3863aead493db09ec420ffdf2"}, + "rustler": {:hex, :rustler, "0.38.0", "7a8906998ff0d28e3021c0a73264abcda719bda344b2e58307c6805b0f87c9b4", [:mix], [{:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "704c03c1bf66be12b031c5a389347b91c81c5cb819a24b068b0de36fe4a5652a"}, "rustler_precompiled": {:hex, :rustler_precompiled, "0.9.0", "3a052eda09f3d2436364645cc1f13279cf95db310eb0c17b0d8f25484b233aa0", [:mix], [{:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "471d97315bd3bf7b64623418b3693eedd8e47de3d1cb79a0ac8f9da7d770d94c"}, "saxy": {:hex, :saxy, "1.6.1", "742eff28f553c066d0b54e84662dbf384a1d1f38595472ed15f6e0a33038bbe1", [:mix], [], "hexpm", "8989d504424ba29460a61950f8968380651413fa05e63b6118084db057da1a6b"}, "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"},