Fearless Concurrency
What would it take to handle concurrent programming safely without asking programmers to give up control? This is a core question for Rust, and a satisfactory answer is one of the language’s main goals. At first, the Rust team approached memory safety and concurrency bugs as two distinct problems. But they realized the concept of ownership, the strict enforcement of borrowing rules, and the type system were the only tools you need to produce safe programs. This is fearless concurrency in practice – transforming traditional runtime errors into compile-time errors so you can be confident your code is free of subtle bugs before it ships: