The electricity we producing isn't enough for our own domestic requirements I fear,even renewable resources.Mining will never end. But oil is much more harmful compared to rare earth. The environmental effect of fossil over lithium is not comparable.
The byproducts will be needed, but not in the same scale as petrol and diesel. Oil won't be the multi-trillion dollar industry it is today after EVs take over. The politics behind oil will also tame considerably.
Within a decade, most of India's electricity generation will come from renewables and less polluting fuel sources like natural gas. Anyway a few dozen coal plants are less polluting than hundreds of millions of cars running on fossil fuels.
And regarding coal powerplant, you are parly correct. It has high carbon footprint,but that will not affect majority of population directly since they were located far away from cities & metros. So I will prefer to live in a city run on electric vehicles.
Iran will not become a military power , Pakistan will not tolerate it, Saudis will not tolerate it. Israel will not tolerate it,and US too. China Iran cooperation in military hardware development is a death sentence to Iran.China is playing the game well and America is loosing it for now.
The deal also include "Joint research and development of weapons between China and Iran. The best option for China to keep US pressure down is by distracting America with other issues. Iran is already kicking Saudi *censored* in Yemen. In China help Iran to make more modern weaponry, Iran can drag American resources further into Middle east and away from China.