henriquesati

henriquesati

Rustler compiling for every iteration

I have rust nifs that uses Solana library, it doesnt seem to load much things, the compilation time has been slow, not much problem about this, but eveytime I run my project, just a run, mix phxserver, or tests, even If I do not modify any rust, I’m compiling the rust everytime. How to present this?

cargo toml

[package]
name = "mifs"
version = "0.1.0"
authors = []
edition = "2021"

[lib]
name = "mifs"
path = "src/lib.rs"
crate-type = ["cdylib"]

[dependencies]
rustler = "0.34.0"
bip39 = ""
bs58 = ""
solana-sdk = ""
solana-client = ""

Marked As Solved

henriquesati

henriquesati

was using Rustler 0.34 and sometimes I was having this very strange behavior where I didn’t change anything in my nifs but was forced to recompile, rustler 0.35 sor far is not given me this problem

Also Liked

dimitarvp

dimitarvp

Does not happen to me with Rustler 0.35, Elixir 1.18.1 (OTP 27) and Erlang 27.2. What are your versions?

NOTE: I am not overriding Rust edition though, and mine is at 2024 currently.

dimitarvp

dimitarvp

Well then, then mark “Rustler 0.35 solves the problem” as the solution. :smiley:

Last Post!

dimitarvp

dimitarvp

Well then, then mark “Rustler 0.35 solves the problem” as the solution. :smiley:

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement