Why use Rust over Python for CLI?

99 points Jeklah

Arbitrary elden ring first off I would like to say this is not a python Vs rust post. Don't turn it into that.

I am a firm believer in the right tools for the job.
While learning Rust I have read it has become a favourite for writing CLI tools.

Why is this when python has libraries like Click that make writing CLI tools very very quick and simple with lots of functionality.

I can understand making a prototype in python and then final version in rust but from what I've learnt, that is likely to involve a total rethinking/restructure of code.

So why have people found writing CLIs in rust preferable?