DEV Community

Discussion on: How to make a cryptocurrency Telegram bot with Rust and Teloxide

 
steadylearner profile image
Steadylearner

Ok, there maybe something different between your machine and my laptop.

Maybe you can test without cargo.lock

Anyway, hope you can find the solution for that.

If there are something I can help more, please let me know.

Thread Thread
 
scyart profile image
Scy

I'm trying to figure out what the problem is, I've tried different computers and they have the same error.
Here is my code (with my Cargo.toml dependencies above),
I hope you can help me test it when you are free. I don't know if you can run it or if the same error message appears with me.
Thank you very much! I'm not in a hurry. You can take a look at it when you are free.
gist.github.com/cy3r0/f94fa4f0bc3d...

Thread Thread
 
steadylearner profile image
Steadylearner • Edited

I tested it at github.com/steadylearner/blockchai...

I think it is ok here. I included the result image there.

dev-to-uploads.s3.amazonaws.com/up...

dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
scyart profile image
Scy

Thank you very much. That will be very helpful.
It's pretty clear now that the problem is the Rust version, since I'm also using the M1 MacBook Air.
I would like to ask what is your rustc version? I am 1.53

Thread Thread
 
steadylearner profile image
Steadylearner • Edited

It is 1.52.1 and cargo 1.54.0-nightly here.

github.com/rust-lang/rust/blob/mas...

You can read more here.

github.com/rust-lang/cargo

Thread Thread
 
scyart profile image
Scy

Hello there,
I found that it may be my own problem.
Because I have been using cargo run, I have succeeded after trying cargo run --release.
Actually I don't know the difference between the two, but I have succeeded. Thank you very much for your help.

Thread Thread
 
steadylearner profile image
Steadylearner

--release is for without debug relevant information.

Happy to hear that you could make that.