The original poster is in Russia, which is why they care about GitHub being involved: GitHub is obeying US sanctions against Russia over the war in Ukraine. Any authentication service operating in the US or in another US-aligned nation would have the same issue. Crates.io itself is also likely bound by these regulations. So at this point realistically the OP needs to mirror crates.io and set up another registry (which cargo will absolutely let you use). This is just another cost to living under a pseudo-dictatorship.