{"id":371625,"date":"2024-05-21T04:53:01","date_gmt":"2024-05-21T04:53:01","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=371625"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T04:53:01","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=371625","title":{"rendered":"<span>\u0420\u0435\u043b\u0438\u0437 Rust 1.77<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/webt\/fj\/yi\/qn\/fjyiqnduv3l-rdgxnbu_t_qpgxk.jpeg\" data-src=\"https:\/\/habrastorage.org\/webt\/fj\/yi\/qn\/fjyiqnduv3l-rdgxnbu_t_qpgxk.jpeg\" data-blurred=\"true\"\/><\/figure>\n<p>21 \u043c\u0430\u0440\u0442\u0430 2024 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/blog.rust-lang.org\/2024\/03\/21\/Rust-1.77.0.html\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f<\/a> \u0440\u0435\u043b\u0438\u0437 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Rust 1.77.0, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0435 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/rust-lang\/rust\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d<\/a> \u043d\u0430 GitHub \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438\u0437 Rust Foundation.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/793076\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/a> Rust, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 rustup, \u0442\u043e \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.77.0 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rustup update stable.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 <a href=\"https:\/\/github.com\/rust-lang\/rust\/blob\/master\/RELEASES.md\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/a> \u0438 <a href=\"https:\/\/github.com\/rust-lang\/cargo\/blob\/master\/CHANGELOG.md#cargo-177-2024-03-21\" rel=\"noopener noreferrer nofollow\">\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/a> \u0438 <a href=\"https:\/\/github.com\/rust-lang\/rust-clippy\/blob\/master\/CHANGELOG.md#rust-177\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/a> \u0432 Rust 1.77:<\/p>\n<ul>\n<li>\n<p> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <a href=\"https:\/\/rust-lang.github.io\/rfcs\/3348-c-str-literal.html\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/a> \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u0432 \u0432 \u0441\u0442\u0438\u043b\u0435 \u044f\u0437\u044b\u043a\u0430 C (C-string), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u043c \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c \u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441 \u0442\u0438\u043f\u043e\u043c CStr;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f &#171;async fn&#187;, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u0442.\u0435. \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0441\u0435\u0431\u044f;<\/p>\n<\/li>\n<li>\n<p> \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u043c\u0430\u043a\u0440\u043e\u0441 <a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/mem\/macro.offset_of.html\" rel=\"noopener noreferrer nofollow\">offset_of!<\/a>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u0430\u0439\u0442\u043e\u0432\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u0439, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0438\u043f\u0430;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0435 Cargo \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (strip = &#171;debuginfo&#187;), \u0435\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435 Cargo \u044f\u0432\u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0440\u0435\u0436\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 debug = 0;<\/p>\n<\/li>\n<li>\n<p> \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043f\u0446\u0438\u044f &#171;-Zthir-unsafeck=on&#187;, <a href=\"https:\/\/github.com\/rust-lang\/project-thir-unsafeck\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f<\/a> \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 unsafe \u0434\u043b\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f THIR (&#171;Typed High-Level Intermediate Representation&#187;);<\/p>\n<\/li>\n<li>\n<p> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <a href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/117556\/\" rel=\"noopener noreferrer nofollow\">lint-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/a> static_mut_refs \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c <a href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/113489\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/a> \u0442\u0438\u043f\u0430\u0436\u0430 &#171;From&lt;&amp;[T; N]>&#187; \u0434\u043b\u044f \u0442\u0438\u043f\u0430 &#171;Cow&lt;[T]>&#187;;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 16-\u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 i128 \u0438 u128 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c x86;<\/p>\n<\/li>\n<li>\n<p> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0440\u0435\u0442\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c aarch64-unknown-illumos, hexagon-unknown-none-elf, riscv32imafc-esp-espidf \u0438 riscv32im-risc0-zkvm-elf. \u0422\u0440\u0435\u0442\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443, \u043d\u043e \u0431\u0435\u0437 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u0440\u0430\u0437\u0440\u044f\u0434 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b \u0447\u0430\u0441\u0442\u044c API, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0430\u0436\u0435\u0439.<\/p>\n<\/li>\n<\/ul>\n<p> Stabilized API: <\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.array.html#method.each_ref\" rel=\"noopener noreferrer nofollow\">array::each_ref<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.array.html#method.each_mut\" rel=\"noopener noreferrer nofollow\">array::each_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/core\/net\/index.html\" rel=\"noopener noreferrer nofollow\">core::net<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.f32.html#method.round_ties_even\" rel=\"noopener noreferrer nofollow\">f32::round_ties_even<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.f64.html#method.round_ties_even\" rel=\"noopener noreferrer nofollow\">f64::round_ties_even<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/mem\/macro.offset_of.html\" rel=\"noopener noreferrer nofollow\">mem::offset_of!<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.first_chunk\" rel=\"noopener noreferrer nofollow\">slice::first_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.first_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::first_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_first_chunk\" rel=\"noopener noreferrer nofollow\">slice::split_first_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::split_first_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk\" rel=\"noopener noreferrer nofollow\">slice::last_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::last_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_last_chunk\" rel=\"noopener noreferrer nofollow\">slice::split_last_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::split_last_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.chunk_by\" rel=\"noopener noreferrer nofollow\">slice::chunk_by<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.chunk_by_mut\" rel=\"noopener noreferrer nofollow\">slice::chunk_by_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/ops\/enum.Bound.html#method.map\" rel=\"noopener noreferrer nofollow\">Bound::map<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/fs\/struct.File.html#method.create_new\" rel=\"noopener noreferrer nofollow\">File::create_new<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/sync\/struct.Mutex.html#method.clear_poison\" rel=\"noopener noreferrer nofollow\">Mutex::clear_poison<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/sync\/struct.RwLock.html#method.clear_poison\" rel=\"noopener noreferrer nofollow\">RwLock::clear_poison<\/a>.<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/thanks.rust-lang.org\/rust\/1.77.0\/\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0440\u043e\u0432<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043d\u0430 \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u043c Rust 1.77.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/802369\/\"> https:\/\/habr.com\/ru\/articles\/802369\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"\"><\/figure>\n<p>21 \u043c\u0430\u0440\u0442\u0430 2024 \u0433\u043e\u0434\u0430 <a href=\"https:\/\/blog.rust-lang.org\/2024\/03\/21\/Rust-1.77.0.html\" rel=\"noopener noreferrer nofollow\">\u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f<\/a> \u0440\u0435\u043b\u0438\u0437 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Rust 1.77.0, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043d\u0430\u0434\u0451\u0436\u043d\u043e\u0435 \u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <a href=\"https:\/\/github.com\/rust-lang\/rust\/\" rel=\"noopener noreferrer nofollow\">\u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d<\/a> \u043d\u0430 GitHub \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438\u0437 Rust Foundation.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/793076\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f<\/a> Rust, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u0447\u0435\u0440\u0435\u0437 rustup, \u0442\u043e \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 1.77.0 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 rustup update stable.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 <a href=\"https:\/\/github.com\/rust-lang\/rust\/blob\/master\/RELEASES.md\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f<\/a> \u0438 <a href=\"https:\/\/github.com\/rust-lang\/cargo\/blob\/master\/CHANGELOG.md#cargo-177-2024-03-21\" rel=\"noopener noreferrer nofollow\">\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/a> \u0438 <a href=\"https:\/\/github.com\/rust-lang\/rust-clippy\/blob\/master\/CHANGELOG.md#rust-177\" rel=\"noopener noreferrer nofollow\">\u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/a> \u0432 Rust 1.77:<\/p>\n<ul>\n<li>\n<p> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <a href=\"https:\/\/rust-lang.github.io\/rfcs\/3348-c-str-literal.html\" rel=\"noopener noreferrer nofollow\">\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430<\/a> \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u0432 \u0432 \u0441\u0442\u0438\u043b\u0435 \u044f\u0437\u044b\u043a\u0430 C (C-string), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e\u0449\u0438\u043c \u043d\u0443\u043b\u0435\u0432\u044b\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c \u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0441 \u0442\u0438\u043f\u043e\u043c CStr;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u0445, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f &#171;async fn&#187;, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0438, \u0442.\u0435. \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u0438 \u0441\u0435\u0431\u044f;<\/p>\n<\/li>\n<li>\n<p> \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u043c\u0430\u043a\u0440\u043e\u0441 <a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/mem\/macro.offset_of.html\" rel=\"noopener noreferrer nofollow\">offset_of!<\/a>, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0431\u0430\u0439\u0442\u043e\u0432\u043e\u0435 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u0435\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0439, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0438 \u043a\u043e\u0440\u0442\u0435\u0436\u0435\u0439, \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0438\u043f\u0430;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u043f\u0430\u043a\u0435\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u0435 Cargo \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044f\u0445 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 \u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (strip = &#171;debuginfo&#187;), \u0435\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435 Cargo \u044f\u0432\u043d\u043e \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0451\u043d \u0440\u0435\u0436\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u043a\u0438, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 debug = 0;<\/p>\n<\/li>\n<li>\n<p> \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043f\u0446\u0438\u044f &#171;-Zthir-unsafeck=on&#187;, <a href=\"https:\/\/github.com\/rust-lang\/project-thir-unsafeck\" rel=\"noopener noreferrer nofollow\">\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f<\/a> \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 unsafe \u0434\u043b\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f THIR (&#171;Typed High-Level Intermediate Representation&#187;);<\/p>\n<\/li>\n<li>\n<p> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 <a href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/117556\/\" rel=\"noopener noreferrer nofollow\">lint-\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/a> static_mut_refs \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c <a href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/113489\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/a> \u0442\u0438\u043f\u0430\u0436\u0430 &#171;From&lt;&amp;[T; N]>&#187; \u0434\u043b\u044f \u0442\u0438\u043f\u0430 &#171;Cow&lt;[T]>&#187;;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u043e \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 16-\u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 i128 \u0438 u128 \u0434\u043b\u044f \u0441\u0438\u0441\u0442\u0435\u043c x86;<\/p>\n<\/li>\n<li>\n<p> \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0442\u0440\u0435\u0442\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0434\u043b\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c aarch64-unknown-illumos, hexagon-unknown-none-elf, riscv32imafc-esp-espidf \u0438 riscv32im-risc0-zkvm-elf. \u0422\u0440\u0435\u0442\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443, \u043d\u043e \u0431\u0435\u0437 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0431\u043e\u0440\u043e\u043a \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u043a\u043e\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p> \u0432 \u0440\u0430\u0437\u0440\u044f\u0434 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0435\u043d\u044b \u0447\u0430\u0441\u0442\u044c API, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0430\u0436\u0435\u0439.<\/p>\n<\/li>\n<\/ul>\n<p> Stabilized API: <\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.array.html#method.each_ref\" rel=\"noopener noreferrer nofollow\">array::each_ref<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.array.html#method.each_mut\" rel=\"noopener noreferrer nofollow\">array::each_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/core\/net\/index.html\" rel=\"noopener noreferrer nofollow\">core::net<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.f32.html#method.round_ties_even\" rel=\"noopener noreferrer nofollow\">f32::round_ties_even<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.f64.html#method.round_ties_even\" rel=\"noopener noreferrer nofollow\">f64::round_ties_even<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/mem\/macro.offset_of.html\" rel=\"noopener noreferrer nofollow\">mem::offset_of!<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.first_chunk\" rel=\"noopener noreferrer nofollow\">slice::first_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.first_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::first_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_first_chunk\" rel=\"noopener noreferrer nofollow\">slice::split_first_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::split_first_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk\" rel=\"noopener noreferrer nofollow\">slice::last_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::last_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_last_chunk\" rel=\"noopener noreferrer nofollow\">slice::split_last_chunk<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.split_last_chunk_mut\" rel=\"noopener noreferrer nofollow\">slice::split_last_chunk_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.chunk_by\" rel=\"noopener noreferrer nofollow\">slice::chunk_by<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/primitive.slice.html#method.chunk_by_mut\" rel=\"noopener noreferrer nofollow\">slice::chunk_by_mut<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/ops\/enum.Bound.html#method.map\" rel=\"noopener noreferrer nofollow\">Bound::map<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/fs\/struct.File.html#method.create_new\" rel=\"noopener noreferrer nofollow\">File::create_new<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/sync\/struct.Mutex.html#method.clear_poison\" rel=\"noopener noreferrer nofollow\">Mutex::clear_poison<\/a>;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/stable\/std\/sync\/struct.RwLock.html#method.clear_poison\" rel=\"noopener noreferrer nofollow\">RwLock::clear_poison<\/a>.<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/thanks.rust-lang.org\/rust\/1.77.0\/\" rel=\"noopener noreferrer nofollow\">\u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0440\u043e\u0432<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u043d\u0430 \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u043c Rust 1.77.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/802369\/\"> https:\/\/habr.com\/ru\/articles\/802369\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-371625","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=371625"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/371625\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=371625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=371625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=371625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}