I'm not a Rust developer so I have no clues about what Rust does, how it does or why it is the way it is.
I had a short interaction on another thread and some user told that Rust does not prevent memory leaks.
People talk so much about Rust memory safety and how everything must be rewritten in Rust, but if Rust does not prevent memory leaks why are people so crazy about it?
The primary goal of rust is to provide a low-overhead, low-level language which is memory safe without the need for a runtime. Memory leaks are not a memory safety concerns[0], although they can cause programs to crash they are not UBs, they don't cause grave vulnerabilities (they might lead to DOS but not something like a compromised device)..
Furthermore while the Rust team and community discovered they could not reasonably prevent memory leaks[2], at least not without a very different languages and years if not decades of development, a normally constituted program is unlikely to have unintended leaks[1], the main vehicle to get that being a refcount cycle.
[0] although in Rust the realisation that leaks could not be prevented did force the reconsideration and binning of entire APIs because they could not be made safe anymore
[1] since it was realised that leaks were a fact of life, the standard library added a few APIs whose entire purpose is to leak objects
[2] much to everyone's dismay and displeasure, I assume you can still look for "leakpocalypse" for recountings of the events