The decline of interest in C++ and the rise of Rust may be correlated and may not have much to do with AI tools. C++ is complicated, messy and easy to make trouble for yourself with. Rust promises to be suitable for many of the same purposes, while more modern and more performant than most other high-level alternatives, and protecting you from many memory management bugs. That in itself will be moving some people over to Rust.
The decline of interest in C++ and the rise of Rust may be correlated and may not have much to do with AI tools. C++ is complicated, messy and easy to make trouble for yourself with. Rust promises to be suitable for many of the same purposes, while more modern and more performant than most other high-level alternatives, and protecting you from many memory management bugs. That in itself will be moving some people over to Rust.