philss / rustler_precompiled

Use precompiled NIFs from trusted sources in your Elixir code
181 stars 25 forks source link

Add support for headers and dynamic base URL (#65) #77

Open sliiser opened 1 month ago

sliiser commented 1 month ago

The :base_url attribute now accepts static headers or a custom function that returns a URL and headers. This allows us to fetch NIFs from more complicated sources, rather than just public GitHub releases.

65

philss commented 1 month ago

@sliiser almost there! There is one problem in the tests, but other than that it looks great! Please take a look.

sliiser commented 1 month ago

Whoops. That test was linux only so it didn't fail on my dev machine. Fixed now (hopefully).

I also squashed the commits to be ready for merge.