{"id":35875,"date":"2019-10-31T22:07:21","date_gmt":"2019-10-31T19:07:21","guid":{"rendered":"https:\/\/prohoster.info\/blog\/rust-1-36\/"},"modified":"2019-10-31T22:07:21","modified_gmt":"2019-10-31T19:07:21","slug":"rust-1-36","status":"publish","type":"post","link":"https:\/\/prohoster.info\/hu\/blog\/news\/rust-1-36","title":{"rendered":"Rust 1.36","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>A fejleszt\u0151csapat \u00f6r\u00f6mmel bemutatja a Rust 1.36-ot!<\/p>\n<p>Mik \u00fajdons\u00e1gok a Rust 1.36-ban?<br \/>\n<noindex>Stabiliz\u00e1lva lett a Future trait, \u00e9s \u00faj: az alloc crate, MaybeUninit, <a rel=\"nofollow\" href=\"http:\/\/blog.pnkfx.org\/blog\/2019\/06\/26\/breaking-news-non-lexical-lifetimes-arrives-for-everyone\/\"> NLL a Rust 2015-nek<\/a>, az \u00faj HashMap&lt;K, V&gt; megval\u00f3s\u00edt\u00e1sa \u00e9s egy \u00faj &#8212;offline z\u00e1szl\u00f3 a Cargohoz.<\/p>\n<p><\/noindex><br \/>\nMost n\u00e9zz\u00fck meg r\u00e9szletesebben:\n<\/p>\n<ul>\n<li> A Rust 1.36-ban v\u00e9gre <a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/59739\">stabiliz\u00e1lt\u00e1k<\/a> a Future trait-et.\n    <\/li>\n<li>Az alloc crate.<br \/> A Rust 1.36-t\u00f3l kezdve a std azon r\u00e9szei, amelyek a glob\u00e1lis allok\u00e1tort\u00f3l f\u00fcggenek (p\u00e9ld\u00e1ul Vec), az alloc crate-ben tal\u00e1lhat\u00f3k. Most a std \u00fajraexport\u00e1lja ezeket a r\u00e9szeket. <a rel=\"nofollow\" href=\"https:\/\/blog.rust-lang.org\/2019\/07\/04\/Rust-1.36.0.html#the-alloc-crate-is-stable\">T\u00f6bbet err\u0151l<\/a>.\n    <\/li>\n<li>MaybeUninit a mem::uninitialized helyett.<br \/> A kor\u00e1bbi verzi\u00f3kban a mem::uninitialized lehet\u0151v\u00e9 tette, hogy megker\u00fclj\u00fck az inicializ\u00e1l\u00e1s ellen\u0151rz\u00e9s\u00e9t, ezt a k\u00e9sleltetett allok\u00e1l\u00e1shoz haszn\u00e1lt\u00e1k, de ez a funkci\u00f3 meglehet\u0151sen vesz\u00e9lyes volt (<a rel=\"nofollow\" href=\"https:\/\/blog.rust-lang.org\/2019\/07\/04\/Rust-1.36.0.html#maybeuninitt%3E-instead-of-mem::uninitialized\">t\u00f6bb r\u00e9szlet\u00e9rt<\/a>), ez\u00e9rt stabiliz\u00e1lt\u00e1k a MaybeUninit t\u00edpust, amely biztons\u00e1gosabb. <br \/> Mivel a MaybeUninit egy biztons\u00e1gosabb alternat\u00edva, a Rust 1.38-t\u00f3l kezdve a mem::uninitialized elavult funkci\u00f3 lesz. <br \/> Ha t\u00f6bbet szeretne megtudni az inicializ\u00e1latlan mem\u00f3ri\u00e1r\u00f3l, olvassa el a blogbejegyz\u00e9st (Alexis Beingessner).\n   <\/li>\n<li> NLL a Rust 2015-nek. <br \/> A bejelent\u00e9sben <a rel=\"nofollow\" href=\"https:\/\/blog.rust-lang.org\/2018\/12\/06\/Rust-1.31-and-rust-2018.html#non-lexical-lifetimes\">Rust 1.31.0<\/a> a fejleszt\u0151k mes\u00e9ltek nek\u00fcnk az NLL-r\u0151l (Non-Lexical Lifetime), egy nyelvi fejleszt\u00e9sr\u0151l, amely intelligensebb\u00e9 \u00e9s felhaszn\u00e1l\u00f3bar\u00e1tabb\u00e1 teszi a borrow checker-t. P\u00e9lda:<br \/>\nfn main() {<br \/>\n    let mut x = 5;<br \/>\n    let y = &amp;x;<br \/>\n    let z = &amp;mut x; \/\/ Ez nem volt megengedett a 1.31.0 el\u0151tt.<br \/>\n}<\/p>\n<p>A 1.31.0-ban az NLL csak a Rust 2018-ban m\u0171k\u00f6d\u00f6tt, \u00edg\u00e9rettel, hogy a fejleszt\u0151k t\u00e1mogat\u00e1st fognak adni a Rust 2015-nek is. <br \/> Ha t\u00f6bbet szeretne megtudni az NLL-r\u0151l, t\u00f6bbet olvashat ebben a <a rel=\"nofollow\" href=\"http:\/\/blog.pnkfx.org\/blog\/2019\/06\/26\/breaking-news-non-lexical-lifetimes-arrives-for-everyone\/\"> blogbejegyz\u00e9sben<\/a> (Felix Klocks).\n    <\/li>\n<li>\u00daj z\u00e1szl\u00f3 a Cargohoz &#8212; &#8212;offline.<br \/>A Rust 1.36-ban stabiliz\u00e1lt\u00e1k az \u00faj z\u00e1szl\u00f3t a Cargohoz. Az &#8212;offline z\u00e1szl\u00f3 azt mondja a Cargo sz\u00e1m\u00e1ra, hogy haszn\u00e1lja a helyben gyors\u00edt\u00f3t\u00e1rban t\u00e1rolt f\u00fcgg\u0151s\u00e9geket, \u00edgy k\u00e9s\u0151bb internet n\u00e9lk\u00fcl is haszn\u00e1lhat\u00f3k. Amikor a sz\u00fcks\u00e9ges f\u00fcgg\u0151s\u00e9gek offline nem el\u00e9rhet\u0151k, \u00e9s ha az internet m\u00e9gis sz\u00fcks\u00e9ges, akkor a Cargo hib\u00e1t fog visszaadni. A f\u00fcgg\u0151s\u00e9gek el\u0151zetes let\u00f6lt\u00e9s\u00e9hez haszn\u00e1lhat\u00f3 a cargo fetch parancs, amely let\u00f6lti az \u00f6sszes f\u00fcgg\u0151s\u00e9get.\n    <\/li>\n<li><a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/cargo\/blob\/master\/CHANGELOG.md#cargo-136-2019-07-04\">Itt<\/a> t\u00f6bbet olvashat a v\u00e1ltoz\u00e1sokr\u00f3l.\n<\/li>\n<\/ul>\n<p>\nEzenk\u00edv\u00fcl vannak v\u00e1ltoz\u00e1sok a standard k\u00f6nyvt\u00e1rban:\n<\/p>\n<ul>\n<li> Most a dbg!() makr\u00f3 t\u00f6bb argumentumot is elfogadhat.\n    <\/li>\n<li> N\u00e9h\u00e1ny API most const-k\u00e9nt van megjel\u00f6lve:\n<ul>\n<li><a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/core\/alloc\/struct.Layout.html#method.from_size_align_unchecked\">Layout::from_size_align_unchecked<\/a>;\n        <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/mem\/fn.needs_drop.html\">mem::needs_drop<\/a>;\n        <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/ptr\/struct.NonNull.html#method.dangling\">NonNull::dangling<\/a>;\n        <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/ptr\/struct.NonNull.html#method.cast\">NonNull::cast<\/a>.\n        <\/li>\n<\/ul>\n<\/li>\n<li>\u00daj stabiliz\u00e1lt API-k:\n<ul>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/task\/struct.Waker.html\">task::Waker<\/a> \u00e9s <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/task\/enum.Poll.html\">task::Poll<\/a>;\n        <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/collections\/struct.VecDeque.html#method.rotate_left\"> VecDeque::rotate_left<\/a> \u00e9s <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/collections\/struct.VecDeque.html#method.rotate_right\">VecDeque::rotate_right<\/a>;\n       <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/io\/trait.Read.html#method.read_vectored\">Read::read_vectored<\/a> \u00e9s <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/io\/trait.Write.html#method.write_vectored\">Write::write_vectored<\/a>;\n       <\/li>\n<li> <a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/iter\/trait.Iterator.html#method.copied\">Iterator::copied<\/a>;\n       <\/li>\n<li><a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/rust\/pull\/60404\">BorrowMut a Stringhez<\/a>;\n       <\/li>\n<li><a rel=\"nofollow\" href=\"https:\/\/doc.rust-lang.org\/std\/primitive.str.html#method.as_mut_ptr\">str::as_mut_ptr<\/a>.\n       <\/li>\n<\/ul>\n<\/li>\n<li> Tov\u00e1bbi v\u00e1ltoz\u00e1sok a standard k\u00f6nyvt\u00e1rban megtal\u00e1lhat\u00f3k <a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/rust\/blob\/master\/RELEASES.md#version-1360-2019-07-04\">itt<\/a>.\n<\/li>\n<\/ul>\n<p>\nEgy\u00e9b v\u00e1ltoz\u00e1sok <a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/rust\/blob\/master\/RELEASES.md#version-1360-2019-07-04\">Rust<\/a>, <a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/cargo\/blob\/master\/CHANGELOG.md#cargo-136-2019-07-04\">Cargo<\/a> \u00e9s <a rel=\"nofollow\" href=\"https:\/\/github.com\/rust-lang\/rust-clippy\/blob\/master\/CHANGELOG.md#rust-136\">Clippy<\/a>.\n<\/p>\n<p>Forr\u00e1s: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"http:\/\/www.linux.org.ru\/news\/development\/15090750\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c Rust 1.36! \u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 Rust 1.36? \u0421\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d \u0442\u0440\u0435\u0439\u0442 Future, \u0438\u0437 \u043d\u043e\u0432\u043e\u0433\u043e: \u043a\u0440\u0435\u0439\u0442 alloc, MaybeUninit&lt;T&gt;, NLL \u0434\u043b\u044f Rust 2015, \u043d\u043e\u0432\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f HashMap&lt;K, V&gt; \u0438 \u043d\u043e\u0432\u044b\u0439 \u0444\u043b\u0430\u0433 &#8212;offline \u0434\u043b\u044f Cargo. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435: \u0412 Rust 1.36 \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0442\u0440\u0435\u0439\u0442 Future. \u041a\u0440\u0435\u0439\u0442 alloc. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 Rust 1.36, \u0447\u0430\u0441\u0442\u0438 std, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-35875","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c Rust 1.36!\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 Rust 1.36?\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/hu\/blog\/news\/rust-1-36\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"hu_HU\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47Rust 1.36 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c Rust 1.36!\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 Rust 1.36?\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/hu\/blog\/news\/rust-1-36\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:07:21+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:07:21+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Rust 1.36 | ProHoster","description":"A fejleszt\u0151i csapat \u00f6r\u00f6mmel mutatja be a Rust 1.36-ot! Mi \u00fajdons\u00e1g a Rust 1.36-ban?","canonical_url":"https:\/\/prohoster.info\/hu\/blog\/news\/rust-1-36","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"hu_HU","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47Rust 1.36 | ProHoster","og:description":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441 \u0440\u0430\u0434\u043e\u0441\u0442\u044c\u044e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c Rust 1.36!\u0427\u0442\u043e \u043d\u043e\u0432\u043e\u0433\u043e \u0432 Rust 1.36?","og:url":"https:\/\/prohoster.info\/hu\/blog\/news\/rust-1-36","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:07:21+00:00","article:modified_time":"2019-10-31T19:07:21+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"35875","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-22 01:07:19","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 19:44:26","updated":"2026-01-22 01:07:19","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/35875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/comments?post=35875"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/posts\/35875\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/media?parent=35875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/categories?post=35875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/hu\/wp-json\/wp\/v2\/tags?post=35875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}