Skip to content

elixir: factor out helpers and type conversions#275

Open
npry wants to merge 1 commit into
mainfrom
npry/ex.refactor-helpers
Open

elixir: factor out helpers and type conversions#275
npry wants to merge 1 commit into
mainfrom
npry/ex.refactor-helpers

Conversation

@npry

@npry npry commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Old but still-relevant change that was part of #172.

Refactors a bunch of helpers and types out of the root lib.rs and makes better use of rustler::Decoder, which e.g. lets us take ErlIp and IpOrSelf literally as nif arguments. Also switches to use NifResult in a number of places, which automatically handles result wrapping to {:ok, term} | {:err, term} rather than the manual approach we had been using before.

@npry
npry marked this pull request as ready for review July 9, 2026 10:00
@npry
npry force-pushed the npry/ex.refactor-helpers branch from 9fad277 to 77d055b Compare July 9, 2026 11:57
@npry
npry force-pushed the npry/ex.refactor-helpers branch from 77d055b to 36df659 Compare July 16, 2026 15:08
Signed-off-by: Nathan Perry <nathan@tailscale.com>
Change-Id: Iea7ee490d17c39931cc3ac3187d9b2336a6a6964
@npry
npry force-pushed the npry/ex.refactor-helpers branch from 36df659 to d000fe1 Compare July 17, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant