Open pdgonzalez872 opened 2 years ago
This library has not been maintained for a long time, and no PRs have been merged. I recommend you to use the Erlang library https://github.com/okeuday/uuid.
Create a uuid like this:
iex> :uuid.get_v4() |> :uuid.uuid_to_string() |> List.to_string()
"17c2237c-144b-41bc-a872-a9d135678209"
For future users who want to start using the Erlang library I wanted to add a couple comments:
The following executes much faster than the built in :uuid string conversion as mentioned above.
:uuid.get_v4() |> Ecto.UUID.load()
If you're using uuid v3 and want backwards compatibility with elixir-uuid and the Erlang UUID then you need to use this method:
:uuid.get_v3_compat(<<0::128, data::binary>>)
Hi! Thanks for the lib!
I'm getting this when compiling:
Here are my versions:
but I also tested this on 1.11-OTP 22 and we get the same warning.
Would you welcome a PR that fixed the warning? I'll create one, feel free to merge if you'd like!
Thanks for the library!