libcore
library. The standard Rust library consists of two layers: the small base library libcore
and the full standard library libstd
, which is built on the basis of libcore
. libcore
itself libcore
completely platform-independent and requires several external functions to be defined. The full libstd
library libstd
based on libcore
and adds support for memory allocation, I / O operations and multithreading. When using Rust in embedded environments and when writing operating systems, libstd
often abandoned and uses only libcore
.libcore
stabilization is an important step towards the ability to write the libcore
level code on a stable version of Rust. However, the work is not finished yet. Stabilization will allow the library ecosystem to grow around libcore
, but its use in applications is not yet fully supported. Expect news from this area in future releases.drain()
family of functions for collections. These methods allow you to move items from collections, while preserving the memory in which they are located, thereby in some cases reducing the need for memory allocation.From
for converting between types from the standard library, mainly between integer numbers and floating point numbers.Vec::extend_from_slice()
method, previously known as push_all()
. It is much faster than the more general extend()
method.*
as the version number in dependencies. In other words, you can't do this anymore: [dependencies] regex = "*"
semver
container: ^
, ~
or =
.Source: https://habr.com/ru/post/275593/
All Articles