I trying use rust, but I don't know why sometimes cargo is like hanging to retrieve from github.
They asked me to run some commands and log output to measure packet loss/speed etc. and then told me that my connection had 2-5% packet loss which was causing all the problem and I need to talk to my ISP or get a better connection.
I switched my ISP after that and its not a problem anymore.