Skip to content

Commit

Permalink
add nif_versions to rustler_precompiled config (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 authored Apr 5, 2024
1 parent 8d4b548 commit 8957a63
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 24 deletions.
3 changes: 2 additions & 1 deletion lib/ex_keccak.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defmodule ExKeccak do
["aarch64-unknown-linux-musl", "x86_64-unknown-freebsd"] ++
RustlerPrecompiled.Config.default_targets()
),
version: version
version: version,
nif_versions: ["2.15", "2.16"]

def hash_256(_data), do: :erlang.nif_error(:nif_not_loaded)
end
44 changes: 22 additions & 22 deletions native/exkeccak/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion native/exkeccak/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ path = "src/lib.rs"
crate-type = ["dylib"]

[dependencies]
rustler = "0.30"
rustler = "0.32"
tiny-keccak = { version = "2.0", features = ["keccak"] }

0 comments on commit 8957a63

Please sign in to comment.