Rust vs C++
Cargo is Rust’s build system and package manager, https://crates.io/ is the registry.
C++ does not have an official package manager.
Both have a standard library, and used like
Rust provides memory safety without using garbage collection: it uses a system of ownership, which enforces and improves its memory safety across the board. It essentially removes the need for any manual memory management procedures. Rust supplies the built-in features for management procedures while C++ leaves that to you.
Recent updates to C++ has had new features like RAII (Resource Acquisition is Initialization) to get rid of manual memory management
std::unique_ptrcan be used like smart pointers.
- has several smart pointers in its standard library, like the reference counting smart pointer type.
- does not allow null or dangling pointers