Mozilla released new version of Rust programming language, 1.34. The language focuses on safe memory management, provides automatic memory management and provides the means to achieve high parallelism in the execution of tasks, while avoiding the use of garbage collection and runtime.
Automatic memory management in Rust saves the developer from manipulating pointers and protects against problems arising from low-level work with memory, such as accessing the memory area after it is released, dereferencing null pointers, going out of the buffer boundaries, etc. To distribute the libraries, provide the build and manage the dependencies of the project, the Cargo package manager is developed, which allows you to get the necessary libraries for the program in one click. The library contains the crates.io repository.
These are main updates:
- Added tools to work with alternative package registries that can coexist with the crates.io public registry in the Cargo package manager.
- The section
[registries]is provided for adding external registries to
$HOMEor in the package directory), and the option "registry" appeared in Cargo.toml to use an external registry in the description of each dependency.
- Added full support for using the
?Operator in doctests tests that allow the use of sample code from the documentation as tests.
Get more info at official website.