# \#rustler

**URL:** https://forum.elixirforum.com/tag/rustler/2186.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Perplexed - A small web search, scrape and answer toolkit for Elixir](https://forum.elixirforum.com/t/perplexed-a-small-web-search-scrape-and-answer-toolkit-for-elixir/77344)

<div class="topic-metadata">

**Author:** [@cpursley](https://forum.elixirforum.com/u/cpursley)\
**Replies:** 0\
**Last updated:** [November 10, 2026, 11:08am UTC](https://forum.elixirforum.com/t/perplexed-a-small-web-search-scrape-and-answer-toolkit-for-elixir/77344 "2026-11-10T11:08:18Z")

</div>

I’ve put together a simple Perplexity-style web search, scrape and answer toolkit for Elixir. In my testing, I’m actually getting better (and faster, cheaper) results than OpenAI web search using FireCrawl or DeepSeek fo…

---

## [Pointers shared across function bounds in Rustler?](https://forum.elixirforum.com/t/pointers-shared-across-function-bounds-in-rustler/75569)

<div class="topic-metadata">

**Author:** [@c4lliope](https://forum.elixirforum.com/u/c4lliope)\
**Replies:** 4\
**Last updated:** [June 12, 2026, 11:58pm UTC](https://forum.elixirforum.com/t/pointers-shared-across-function-bounds-in-rustler/75569 "2026-06-12T23:58:54Z")

</div>

Hello! I think the Rust \[sparrowdb\] crate is a superb choice for modern graph dbs; I’m hoping to package this up in an elixir pkg. \[sparrowdb\]: crates.io: Rust Package Registry Here’s the sample code from their README: …

---

## [HTML2Text - extract readable plain text from HTML using Rust NIF](https://forum.elixirforum.com/t/html2text-extract-readable-plain-text-from-html-using-rust-nif/71287)

<div class="topic-metadata">

**Author:** [@fuelen](https://forum.elixirforum.com/u/fuelen)\
**Replies:** 2\
**Last updated:** [April 4, 2026, 5:18pm UTC](https://forum.elixirforum.com/t/html2text-extract-readable-plain-text-from-html-using-rust-nif/71287 "2026-04-04T17:18:35Z")

</div>

HTML2Text provides a simple and efficient way to extract readable plain text from HTML content. It leverages the power of Rust’s html2text crate to deliver fast HTML parsing and text extraction while maintaining the logi…

---

## [Ex\_rstar - Elixir NIF wrapper around the Rust rstar R\*-tree spatial index](https://forum.elixirforum.com/t/ex-rstar-elixir-nif-wrapper-around-the-rust-rstar-r-tree-spatial-index/74802)

<div class="topic-metadata">

**Author:** [@cortfritz](https://forum.elixirforum.com/u/cortfritz)\
**Replies:** 0\
**Last updated:** [March 27, 2026, 4:55am UTC](https://forum.elixirforum.com/t/ex-rstar-elixir-nif-wrapper-around-the-rust-rstar-r-tree-spatial-index/74802 "2026-03-27T04:55:48Z")

</div>

Elixir NIF wrapper around the Rust rstar R\*-tree spatial index. Stores {x, y} points with optional arbitrary Elixir term data, backed by an opaque NIF resource that lives in Rust memory and is garbage-collected by the BE…

---

## [Yielding NIFs in Rustler for bindings to async functions](https://forum.elixirforum.com/t/yielding-nifs-in-rustler-for-bindings-to-async-functions/74708)

<div class="topic-metadata">

**Author:** [@Benjamin-Philip](https://forum.elixirforum.com/u/Benjamin-Philip)\
**Replies:** 12\
**Last updated:** [March 22, 2026, 11:19am UTC](https://forum.elixirforum.com/t/yielding-nifs-in-rustler-for-bindings-to-async-functions/74708 "2026-03-22T11:19:09Z")

</div>

The Functionality section in the erl\_nif docs mention 3 different strategies for long running NIFs: Yielding NIFs, Threaded NIFs and Dirty NIFs. The rustler docs clearly mention how to implement Dirty NIFs. I also found …

---

## [Polyglot-Ex - Parse, Transpile and Graph SQL](https://forum.elixirforum.com/t/polyglot-ex-parse-transpile-and-graph-sql/74630)

<div class="topic-metadata">

**Author:** [@Overbryd](https://forum.elixirforum.com/u/Overbryd)\
**Replies:** 0\
**Last updated:** [March 13, 2026, 9:40am UTC](https://forum.elixirforum.com/t/polyglot-ex-parse-transpile-and-graph-sql/74630 "2026-03-13T09:40:40Z")

</div>

Polyglot-Ex Rust and wasmex bindings for polyglot. State: Pre-release Hi there, I am starting a thread for my humble bindings library to enable fast SQL parsing, transpiling and table and column lineage extraction bas…

---

## [MDEx - Fast and Extensible Markdown](https://forum.elixirforum.com/t/mdex-fast-and-extensible-markdown/70540)

<div class="topic-metadata">

**Author:** [@leandrocp](https://forum.elixirforum.com/u/leandrocp)\
**Replies:** 24\
**Last updated:** [January 21, 2026, 7:58pm UTC](https://forum.elixirforum.com/t/mdex-fast-and-extensible-markdown/70540 "2026-01-21T19:58:59Z")

</div>

MDEx is a fast and extensible Markdown parser and formatter. Fast Leverage Rust to parse, manipulate and render documents using: comrak - a Rust port of the official GitHub markdown library compliant with the CommonMa…

---

## [Getting GroupDigest Import Error when trying to implement a function to calculate a key image with Rustler NIF: k256 hash\_from\_bytes](https://forum.elixirforum.com/t/getting-groupdigest-import-error-when-trying-to-implement-a-function-to-calculate-a-key-image-with-rustler-nif-k256-hash-from-bytes/73294)

<div class="topic-metadata">

**Author:** [@alexlanderzander](https://forum.elixirforum.com/u/alexlanderzander)\
**Replies:** 1\
**Last updated:** [November 13, 2025, 8:12am UTC](https://forum.elixirforum.com/t/getting-groupdigest-import-error-when-trying-to-implement-a-function-to-calculate-a-key-image-with-rustler-nif-k256-hash-from-bytes/73294 "2025-11-13T08:12:48Z")

</div>

Hello everyone, I’m working on a blockchain project in Elixir and I’m implementing some of the core cryptography in a Rust NIF using Rustler. I’ve hit a wall trying to implement a function to calculate a key image (a c…

---

## [Ex\_spreadsheet - fast, memory-efficient Elixir library for parsing spreadsheet files](https://forum.elixirforum.com/t/ex-spreadsheet-fast-memory-efficient-elixir-library-for-parsing-spreadsheet-files/73111)

<div class="topic-metadata">

**Author:** [@wkirschbaum](https://forum.elixirforum.com/u/wkirschbaum)\
**Replies:** 3\
**Last updated:** [November 5, 2025, 6:06am UTC](https://forum.elixirforum.com/t/ex-spreadsheet-fast-memory-efficient-elixir-library-for-parsing-spreadsheet-files/73111 "2025-11-05T06:06:41Z")

</div>

Hi everyone. We released Spreadsheet a couple of months ago which we have been using internally for parsing xlsx files internally for our production systems. There are already a couple of xlsx parsing libraries, but none…

---

## [Introducing the Runix Stack: Rust + Elixir + Phoenix](https://forum.elixirforum.com/t/introducing-the-runix-stack-rust-elixir-phoenix/72837)

<div class="topic-metadata">

**Author:** [@biportal](https://forum.elixirforum.com/u/biportal)\
**Replies:** 8\
**Last updated:** [October 10, 2025, 3:20pm UTC](https://forum.elixirforum.com/t/introducing-the-runix-stack-rust-elixir-phoenix/72837 "2025-10-10T15:20:04Z")

</div>

Hi, I recently thought about a name for this Stack: Rust + Elixir + Phoenix. I came up with Runix (RuNix) and blogged about it on Medium. I quickly got 1000 views and thus I’d like to share it with you: https://medium.c…

---

## [ExtractousEx - a NIF wrapper around Extractous Rust library extracting text from files](https://forum.elixirforum.com/t/extractousex-a-nif-wrapper-around-extractous-rust-library-extracting-text-from-files/72682)

<div class="topic-metadata">

**Author:** [@Jskalc](https://forum.elixirforum.com/u/Jskalc)\
**Replies:** 0\
**Last updated:** [September 26, 2025, 1:32pm UTC](https://forum.elixirforum.com/t/extractousex-a-nif-wrapper-around-extractous-rust-library-extracting-text-from-files/72682 "2025-09-26T13:32:31Z")

</div>

Hi everyone :waving\_hand: I’ve just released ExtractousEx, an Elixir library for extracting text and metadata from various document formats using the Rust-based Extractous library. There are some other libraries doing th…

---

## [Ex\_mgrs - rust wrapper for translation between lat/lon and mgrs](https://forum.elixirforum.com/t/ex-mgrs-rust-wrapper-for-translation-between-lat-lon-and-mgrs/71892)

<div class="topic-metadata">

**Author:** [@cortfritz](https://forum.elixirforum.com/u/cortfritz)\
**Replies:** 1\
**Last updated:** [July 31, 2025, 12:01am UTC](https://forum.elixirforum.com/t/ex-mgrs-rust-wrapper-for-translation-between-lat-lon-and-mgrs/71892 "2025-07-31T00:01:35Z")

</div>

Elixir library for converting between latitude/longitude coordinates and MGRS (Military Grid Reference System) coordinates. Built with Rust NIFs for maximum speed and accuracy using the embedded geoconvert-rs Rust libra…

---

## [Cannot precompie NIFs in CI with rustler\_precompiled](https://forum.elixirforum.com/t/cannot-precompie-nifs-in-ci-with-rustler-precompiled/71271)

<div class="topic-metadata">

**Author:** [@fuelen](https://forum.elixirforum.com/u/fuelen)\
**Replies:** 8\
**Last updated:** [July 21, 2025, 8:21am UTC](https://forum.elixirforum.com/t/cannot-precompie-nifs-in-ci-with-rustler-precompiled/71271 "2025-07-21T08:21:21Z")

</div>

I try to precompile NIFs with rustler\_precompiled and CI fails on build stage: Done. Going back to original dir: /home/runner/work/html2text/html2text Run INITIAL\_DIR=$(pwd) Going from path: /home/runner/work/html2text/…

---

## [Error “Failed to load NIF library” in CI when using Rustler with dynamic libraries](https://forum.elixirforum.com/t/error-failed-to-load-nif-library-in-ci-when-using-rustler-with-dynamic-libraries/69102)

<div class="topic-metadata">

**Author:** [@snewcomer](https://forum.elixirforum.com/u/snewcomer)\
**Replies:** 22\
**Last updated:** [June 12, 2025, 3:26pm UTC](https://forum.elixirforum.com/t/error-failed-to-load-nif-library-in-ci-when-using-rustler-with-dynamic-libraries/69102 "2025-06-12T15:26:06Z")

</div>

Recently, I came across this wonderful blog post on Parsing PDFs (and more) in Elixir using Rust. However, when trying out Github Actions CI with Rustler, I can’t seem to figure out the right steps to get mix compile to…

---

## [Hoping to use Rustler to create Elixir bindings for LanceDB - can you help/guide me?](https://forum.elixirforum.com/t/hoping-to-use-rustler-to-create-elixir-bindings-for-lancedb-can-you-help-guide-me/70430)

<div class="topic-metadata">

**Author:** [@eileennoonan](https://forum.elixirforum.com/u/eileennoonan)\
**Replies:** 36\
**Last updated:** [May 16, 2025, 8:06am UTC](https://forum.elixirforum.com/t/hoping-to-use-rustler-to-create-elixir-bindings-for-lancedb-can-you-help-guide-me/70430 "2025-05-16T08:06:28Z")

</div>

Hi y’all - I’m working on using Rustler to create Elixir bindings for this extremely nifty embedded multimodal AI / vector database LanceDB. Lance is massive, but I already know I could go very far with maybe a couple d…

---

## [Seeking guidance implementing DbConnection](https://forum.elixirforum.com/t/seeking-guidance-implementing-dbconnection/70644)

<div class="topic-metadata">

**Author:** [@eileennoonan](https://forum.elixirforum.com/u/eileennoonan)\
**Replies:** 24\
**Last updated:** [May 3, 2025, 5:39am UTC](https://forum.elixirforum.com/t/seeking-guidance-implementing-dbconnection/70644 "2025-05-03T05:39:35Z")

</div>

I’m working on an Elixir client for LanceDB (sqlite for vector storage) called ElixirLanceDB. Most of this work so far has comprised of writing Rustler NIFs over the LanceDB rust client. I’ve got enough of the library im…

---

## [External rustler dependencies with Nerves](https://forum.elixirforum.com/t/external-rustler-dependencies-with-nerves/70608)

<div class="topic-metadata">

**Author:** [@jimsynz](https://forum.elixirforum.com/u/jimsynz)\
**Replies:** 2\
**Last updated:** [April 27, 2025, 9:39pm UTC](https://forum.elixirforum.com/t/external-rustler-dependencies-with-nerves/70608 "2025-04-27T21:39:13Z")

</div>

Hi folks. In my project I needed a way to check to see if a process was running on the host system (mainly when MIX\_TARGET=:host) so I quickly wrapped up the proclist crate with Rustler however my firmware doesn’t start…

---

## [Rustler compiling for every iteration](https://forum.elixirforum.com/t/rustler-compiling-for-every-iteration/68278)

<div class="topic-metadata">

**Author:** [@henriquesati](https://forum.elixirforum.com/u/henriquesati)\
**Replies:** 5\
**Last updated:** [December 25, 2024, 6:00pm UTC](https://forum.elixirforum.com/t/rustler-compiling-for-every-iteration/68278 "2024-12-25T18:00:07Z")

</div>

I have rust nifs that uses Solana library, it doesnt seem to load much things, the compilation time has been slow, not much problem about this, but eveytime I run my project, just a run, mix phxserver, or tests, even If …

---

## [How to return {:ok, result} back into Elixir from NifResult\<Type\> with Rustler and Rust?](https://forum.elixirforum.com/t/how-to-return-ok-result-back-into-elixir-from-nifresult-type-with-rustler-and-rust/66762)

<div class="topic-metadata">

**Author:** [@mikejm](https://forum.elixirforum.com/u/mikejm)\
**Replies:** 5\
**Last updated:** [October 17, 2024, 6:49pm UTC](https://forum.elixirforum.com/t/how-to-return-ok-result-back-into-elixir-from-nifresult-type-with-rustler-and-rust/66762 "2024-10-17T18:49:16Z")

</div>

To match the Elixir convention, I am trying to return from my Rustler functions {:ok, result} or {:error, error\_string}. I can do the :error case as follows, but can’t solve the :ok case: fn get\_id(index: i64) -\> NifRe…

---

## [UUIDv7 - A UUID v7 implementation and Ecto.Type for Elixir - based on Rust](https://forum.elixirforum.com/t/uuidv7-a-uuid-v7-implementation-and-ecto-type-for-elixir-based-on-rust/56666)

<div class="topic-metadata">

**Author:** [@martinthenth](https://forum.elixirforum.com/u/martinthenth)\
**Replies:** 16\
**Last updated:** [August 14, 2024, 9:28pm UTC](https://forum.elixirforum.com/t/uuidv7-a-uuid-v7-implementation-and-ecto-type-for-elixir-based-on-rust/56666 "2024-08-14T21:28:25Z")

</div>

Hello everybody :wave: Recently, some of my colleagues talked about database ids and uuids and their problems, and I remembered the pain of working with randomly distributed primary keys. They’re nice at first but then …

---

## [How to handle rust crate features in rustler libraries?](https://forum.elixirforum.com/t/how-to-handle-rust-crate-features-in-rustler-libraries/62953)

<div class="topic-metadata">

**Author:** [@dkuku](https://forum.elixirforum.com/u/dkuku)\
**Replies:** 1\
**Last updated:** [June 3, 2024, 10:54am UTC](https://forum.elixirforum.com/t/how-to-handle-rust-crate-features-in-rustler-libraries/62953 "2024-06-03T10:54:48Z")

</div>

I was curious if rustler can support dynamic crate features and I came up with something like this: config.exs, or Mix.install: config :ex\_text\_splitter, features: \["markdown", "tiktoken-rs"\] Native module @feat…

---

## [H3Geo: a library for creating and managing H3 geospatial indexes](https://forum.elixirforum.com/t/h3geo-a-library-for-creating-and-managing-h3-geospatial-indexes/62190)

<div class="topic-metadata">

**Author:** [@engineeringdept](https://forum.elixirforum.com/u/engineeringdept)\
**Replies:** 1\
**Last updated:** [March 11, 2024, 1:34am UTC](https://forum.elixirforum.com/t/h3geo-a-library-for-creating-and-managing-h3-geospatial-indexes/62190 "2024-03-11T01:34:37Z")

</div>

At Breakroom we’ve just open sourced a new library, H3Geo, for managing H3 geospatial indexes in Elixir. It wraps the h3o library in Rust, using Rustler. But because we use Rustler Precompiled, you don’t need a working …

---

## [Rustler fails to build \[because serde\_rustler pinned to rustler v 0.21\] (solved)](https://forum.elixirforum.com/t/rustler-fails-to-build-because-serde-rustler-pinned-to-rustler-v-0-21-solved/62141)

<div class="topic-metadata">

**Author:** [@stevensonmt](https://forum.elixirforum.com/u/stevensonmt)\
**Replies:** 0\
**Last updated:** [March 6, 2024, 4:29pm UTC](https://forum.elixirforum.com/t/rustler-fails-to-build-because-serde-rustler-pinned-to-rustler-v-0-21-solved/62141 "2024-03-06T16:29:22Z")

</div>

This may be better addressed in a Rust forum but I’m trying to use Rustler in a project and when trying to build the Rustler module I’m getting the error: failed to run custom build command for erlang\_nif-sys v0.6.4 —…

---

## [Rustler - Any way to remove build artifacts automatically? 78mb exec vs 1.5gb build artifacts](https://forum.elixirforum.com/t/rustler-any-way-to-remove-build-artifacts-automatically-78mb-exec-vs-1-5gb-build-artifacts/61267)

<div class="topic-metadata">

**Author:** [@pejrich](https://forum.elixirforum.com/u/pejrich)\
**Replies:** 4\
**Last updated:** [January 30, 2024, 12:28am UTC](https://forum.elixirforum.com/t/rustler-any-way-to-remove-build-artifacts-automatically-78mb-exec-vs-1-5gb-build-artifacts/61267 "2024-01-30T00:28:29Z")

</div>

I’m using rustler to wrap a Rust library. Specifically charabia. It’s a language tokenization library, and as such has to use a lot of dictionary data during building, which leads to large target directories. If my under…

---

## [Return a binary tuple from a Rust NIF](https://forum.elixirforum.com/t/return-a-binary-tuple-from-a-rust-nif/58528)

<div class="topic-metadata">

**Author:** [@ImNotAVirus](https://forum.elixirforum.com/u/ImNotAVirus)\
**Replies:** 0\
**Last updated:** [September 27, 2023, 6:10pm UTC](https://forum.elixirforum.com/t/return-a-binary-tuple-from-a-rust-nif/58528 "2023-09-27T18:10:38Z")

</div>

Hello, I’m trying to make a NIF that splits binary once using a delimiter (like :binary.split(bin, separator, parts: 2)) but in Rust I don’t quite understand how to use rustler::Binary, rustler::OwnedBinary and rustler:…

---

## [Rustler / ResourceArc getting intermittent ArgumentError unsure how to debug](https://forum.elixirforum.com/t/rustler-resourcearc-getting-intermittent-argumenterror-unsure-how-to-debug/54309)

<div class="topic-metadata">

**Author:** [@pejrich](https://forum.elixirforum.com/u/pejrich)\
**Replies:** 1\
**Last updated:** [August 2, 2023, 4:38am UTC](https://forum.elixirforum.com/t/rustler-resourcearc-getting-intermittent-argumenterror-unsure-how-to-debug/54309 "2023-08-02T04:38:31Z")

</div>

I am using Rustler, and specifically a ResourceArc to preload some data into memory(in this case an ML model). The setup is as follows. Poolboy handles the starting of GenServers. conf = \[ name: {:local, :my\_model}, …

---

## [Rustler return and pass reference from Rust to Elixir and back to Rust](https://forum.elixirforum.com/t/rustler-return-and-pass-reference-from-rust-to-elixir-and-back-to-rust/37429)

<div class="topic-metadata">

**Author:** [@mmmrrr](https://forum.elixirforum.com/u/mmmrrr)\
**Replies:** 45\
**Last updated:** [July 28, 2023, 6:22pm UTC](https://forum.elixirforum.com/t/rustler-return-and-pass-reference-from-rust-to-elixir-and-back-to-rust/37429 "2023-07-28T18:22:50Z")

</div>

The starting point: The Erlang ODBC client has a “bug” where it only allows 4096 bytes to be returned per cell. The Rust odbc client has no such limitations. The reasoning: I’d like to avoid Rust for the web layer, sinc…

---

## [Compiling and loading NIFs on runtime](https://forum.elixirforum.com/t/compiling-and-loading-nifs-on-runtime/56849)

<div class="topic-metadata">

**Author:** [@tomazzlender](https://forum.elixirforum.com/u/tomazzlender)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 10:55am UTC](https://forum.elixirforum.com/t/compiling-and-loading-nifs-on-runtime/56849 "2023-07-12T10:55:00Z")

</div>

I tried out Rustler and it is amazing when I need to define NIFs at the compile time. I’m experimenting with a use case where it would be useful to define a NIF at a run time. Imagine being in an IEx shell where you ar…

---

## [Are elixir NIFs executed concurrently and in a non-blocking manner?](https://forum.elixirforum.com/t/are-elixir-nifs-executed-concurrently-and-in-a-non-blocking-manner/56556)

<div class="topic-metadata">

**Author:** [@orenghe988](https://forum.elixirforum.com/u/orenghe988)\
**Replies:** 4\
**Last updated:** [June 18, 2023, 11:35am UTC](https://forum.elixirforum.com/t/are-elixir-nifs-executed-concurrently-and-in-a-non-blocking-manner/56556 "2023-06-18T11:35:57Z")

</div>

Hello, are elixir NIFs executed concurrently and in a non-blocking manner?

---

## [High memory usage when performance testing simple Rustler NIFs](https://forum.elixirforum.com/t/high-memory-usage-when-performance-testing-simple-rustler-nifs/45866)

<div class="topic-metadata">

**Author:** [@sdr](https://forum.elixirforum.com/u/sdr)\
**Replies:** 6\
**Last updated:** [June 7, 2023, 5:15am UTC](https://forum.elixirforum.com/t/high-memory-usage-when-performance-testing-simple-rustler-nifs/45866 "2023-06-07T05:15:25Z")

</div>

I’ve been playing around with Rustler NIFs to get familiar with them and understand how they interact with Elixir. While running some simple toy NIFS and benchmarking them to be impressed with the performance difference…

[Next page](https://forum.elixirforum.com/tag/rustler/2186.md?match_all_tags=true&page=1&tags%5B%5D=rustler)
