# \#library-question

**URL:** https://forum.elixirforum.com/tag/library-question/2258.md

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

---

## [Rust-like Enums in Elixir using macros - Good/Bad?](https://forum.elixirforum.com/t/rust-like-enums-in-elixir-using-macros-good-bad/70017)

<div class="topic-metadata">

**Author:** [@alisinabh](https://forum.elixirforum.com/u/alisinabh)\
**Replies:** 10\
**Last updated:** [March 20, 2025, 6:34pm UTC](https://forum.elixirforum.com/t/rust-like-enums-in-elixir-using-macros-good-bad/70017 "2025-03-20T18:34:41Z")

</div>

Hi everyone! My colleagues and I ran into challenges with atoms and tuples in our Elixir codebases, especially when modeling domain states or structured data clearly. Atoms are handy but also sometimes annoying. They’r…

---

## [Even though i use ReqS3.attach() i still get reply in XML](https://forum.elixirforum.com/t/even-though-i-use-reqs3-attach-i-still-get-reply-in-xml/65474)

<div class="topic-metadata">

**Author:** [@Wojciech](https://forum.elixirforum.com/u/Wojciech)\
**Replies:** 9\
**Last updated:** [August 15, 2024, 7:11pm UTC](https://forum.elixirforum.com/t/even-though-i-use-reqs3-attach-i-still-get-reply-in-xml/65474 "2024-08-15T19:11:56Z")

</div>

I tried to fetch titles of objects using req with req\_s3 plugin. def new\_req(options \\\\ \[\]) when is\_list(options) do access\_key = System.fetch\_env!("MINIO\_ACCESS\_KEY") secret\_access\_key = System.fetch\_env!("MINIO\_SE…

---

## [Specify which parts of library to compile or not](https://forum.elixirforum.com/t/specify-which-parts-of-library-to-compile-or-not/64560)

<div class="topic-metadata">

**Author:** [@victorbjorklund](https://forum.elixirforum.com/u/victorbjorklund)\
**Replies:** 3\
**Last updated:** [June 27, 2024, 2:41pm UTC](https://forum.elixirforum.com/t/specify-which-parts-of-library-to-compile-or-not/64560 "2024-06-27T14:41:29Z")

</div>

I’m going to try to build a library (that I can hopefully publish) that allows access to statistics reports from the Swedish Statistics Authority. Basically they have a bunch of statistics data but the issue is they use …

---

## [Slipstream: retrying messages?](https://forum.elixirforum.com/t/slipstream-retrying-messages/62968)

<div class="topic-metadata">

**Author:** [@nathanl](https://forum.elixirforum.com/u/nathanl)\
**Replies:** 3\
**Last updated:** [April 22, 2024, 4:46pm UTC](https://forum.elixirforum.com/t/slipstream-retrying-messages/62968 "2024-04-22T16:46:45Z")

</div>

The Slipstream docs have a section on retries for establishing a connection. But I don’t see anything about retries for messages. The docs for push/5 show using handle\_reply/3 to handle an ack, but suppose an ack never …

---

## [Any library that will parse curl options?](https://forum.elixirforum.com/t/any-library-that-will-parse-curl-options/52561)

<div class="topic-metadata">

**Author:** [@dkuku](https://forum.elixirforum.com/u/dkuku)\
**Replies:** 2\
**Last updated:** [December 15, 2022, 10:12pm UTC](https://forum.elixirforum.com/t/any-library-that-will-parse-curl-options/52561 "2022-12-15T22:12:30Z")

</div>

Elixir has OptionParser built in but I just wanted it to use it to parse a curl request copied from a browser: """ curl 'https://forum.elixirforum.com/c/questions-help/53' \\ -H 'Accept-Language: en-US,en;q=0.5' \\ -H 'Ac…

---

## [Phoenix Channel - "unmatched topic" error and retries](https://forum.elixirforum.com/t/phoenix-channel-unmatched-topic-error-and-retries/38286)

<div class="topic-metadata">

**Author:** [@kartheek](https://forum.elixirforum.com/u/kartheek)\
**Replies:** 1\
**Last updated:** [October 4, 2022, 2:34pm UTC](https://forum.elixirforum.com/t/phoenix-channel-unmatched-topic-error-and-retries/38286 "2022-10-04T14:34:59Z")

</div>

TLDR: In case of “unmatched topic” error, phoenix.js library continuously retries to rejoin the channel. Shouldn’t the default retry behaviour for “unmatched topic” error - be stop further rejoin attempts or try to join …

---

## [Simple Library that finds Dead Code](https://forum.elixirforum.com/t/simple-library-that-finds-dead-code/48005)

<div class="topic-metadata">

**Author:** [@Samuel-88](https://forum.elixirforum.com/u/Samuel-88)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 3:05pm UTC](https://forum.elixirforum.com/t/simple-library-that-finds-dead-code/48005 "2022-05-26T15:05:48Z")

</div>

Here in the company I work, I feel like we have lots of dead code, and I am sure other companies have as well. I looked up for a library that would find them, but the only one I found treat functions that are only called…

---

## [Looking for constructive feedback on my first github Elixir project](https://forum.elixirforum.com/t/looking-for-constructive-feedback-on-my-first-github-elixir-project/40871)

<div class="topic-metadata">

**Author:** [@kbsymanz](https://forum.elixirforum.com/u/kbsymanz)\
**Replies:** 5\
**Last updated:** [July 7, 2021, 11:12pm UTC](https://forum.elixirforum.com/t/looking-for-constructive-feedback-on-my-first-github-elixir-project/40871 "2021-07-07T23:12:01Z")

</div>

I’ve been learning Elixir for about 10 months now in my spare time and I would welcome some constructive feedback on my Maze Generator library. https://github.com/kbsymanz/maze\_generator Thanks! Kurt Symanzik

---

## [Interest check in query functions](https://forum.elixirforum.com/t/interest-check-in-query-functions/40448)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 12:57pm UTC](https://forum.elixirforum.com/t/interest-check-in-query-functions/40448 "2021-06-18T12:57:48Z")

</div>

I am working on big update to my ecto\_function library. It is inspired by Nx support for defn functions, and my thought was “well, why not, check if it will be possible to do something similar for DB queries”. It seems t…

---

## [Enum.to\_list/1 vs Enum.into/2](https://forum.elixirforum.com/t/enum-to-list-1-vs-enum-into-2/35881)

<div class="topic-metadata">

**Author:** [@xianrusso](https://forum.elixirforum.com/u/xianrusso)\
**Replies:** 2\
**Last updated:** [December 1, 2020, 12:04am UTC](https://forum.elixirforum.com/t/enum-to-list-1-vs-enum-into-2/35881 "2020-12-01T00:04:25Z")

</div>

Just curious, but could someone explain the difference between Enum.to\_list 1..5 and Enum.into 1..5, \[\]? I understand that the latter is converting that range into a collectable, but if I’m not mistaken, the former is a…

---

## [Erlang lib or System.cmd to other binaries for AWS?](https://forum.elixirforum.com/t/erlang-lib-or-system-cmd-to-other-binaries-for-aws/35471)

<div class="topic-metadata">

**Author:** [@egze](https://forum.elixirforum.com/u/egze)\
**Replies:** 4\
**Last updated:** [November 11, 2020, 8:57am UTC](https://forum.elixirforum.com/t/erlang-lib-or-system-cmd-to-other-binaries-for-aws/35471 "2020-11-11T08:57:49Z")

</div>

At work we ran into the situation that Elixir AWS libraries are too limited/rough for our needs. There is an option to use erlang libraries (erlcloud is quite a good lib) or shell out to some other command line tool with…

---

## [Resources for Creating a Library](https://forum.elixirforum.com/t/resources-for-creating-a-library/33445)

<div class="topic-metadata">

**Author:** [@tnederlof](https://forum.elixirforum.com/u/tnederlof)\
**Replies:** 1\
**Last updated:** [July 31, 2020, 2:03am UTC](https://forum.elixirforum.com/t/resources-for-creating-a-library/33445 "2020-07-31T02:03:37Z")

</div>

This is a pretty open ended question so feel free to take it in different directions. I have been learning elixir over the past few months and really enjoying myself. I wanted to take a shot at my first library and while…

---

## [How to get root project directory from a library](https://forum.elixirforum.com/t/how-to-get-root-project-directory-from-a-library/30316)

<div class="topic-metadata">

**Author:** [@mazz-seven](https://forum.elixirforum.com/u/mazz-seven)\
**Replies:** 13\
**Last updated:** [April 2, 2020, 5:52pm UTC](https://forum.elixirforum.com/t/how-to-get-root-project-directory-from-a-library/30316 "2020-04-02T17:52:04Z")

</div>

Hey, I’m writing a library, in my library I want to get the root project(the actual project using my library) directory path. I tried, File.cwd!() but I’m getting the root dir of the library. Few things to know. I’m …
