Our great sponsors
-
As others mention, the Debug impl calls itself, leading it to recurse until the stack overflows. Ideally, rustc's unconditional_recursion lint would warn about this, but it currently does not work across function calls (tracking issue).
-
Clippy
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/nightly/clippy/
Adding to what others have already said, Rust has a very useful code linting tool called Clippy.
-
Scout APM
Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.