﻿{"id":20999,"date":"2023-04-03T08:25:59","date_gmt":"2023-04-03T00:25:59","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=20999"},"modified":"2023-04-06T18:41:10","modified_gmt":"2023-04-06T10:41:10","slug":"rust-tutorial-1-hello-world","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/rust-tutorial-1-hello-world.html","title":{"rendered":"Rust \u5165\u95e8\u6559\u7a0b#1\uff1a\u521b\u5efa\u5e76\u8fd0\u884c\u60a8\u7684\u7b2c\u4e00\u4e2a Rust \u7a0b\u5e8f"},"content":{"rendered":"<p>Rust \u7f16\u7a0b\u8bed\u8a00\u662f\u6700\u53d7\u5f00\u53d1\u4eba\u5458\u548c\u79d1\u6280\u516c\u53f8\u9752\u7750\u7684\u6700\u5feb\u91c7\u7528\u7684\u7cfb\u7edf\u7f16\u7a0b\u8bed\u8a00\u4e4b\u4e00\u3002\u5b83\u4e5f\u88ab\u5f00\u53d1\u4eba\u5458\u6295\u7968\u8bc4\u4e3a\u6700\u53d7\u559c\u7231\u7684\u7f16\u7a0b\u8bed\u8a00\u4e4b\u4e00\uff0c\u6301\u7eed\u4e03\u5e74\u83b7\u5f97\u8fd9\u79cd\u8d5e\u8a89\uff01<\/p>\n<p>\u5b83\u5982\u6b64\u53d7\u6b22\u8fce\uff0c\u4ee5\u81f3\u4e8e\u5728Linux\u751f\u6001\u7cfb\u7edf\u4e2d\u73b0\u5728\u6709\u4e24\u4e2a\u91cd\u5927\u7684\u52aa\u529b\uff1a<\/p>\n<ul>\n<li>\u5c06 Rust \u4f5c\u4e3a Linux \u5185\u6838\u7684\u8f85\u52a9\u7f16\u7a0b\u8bed\u8a00<\/li>\n<li>System76 \u6b63\u5728\u4f7f\u7528 Rust \u4ece\u5934\u5f00\u59cb\u7f16\u5199\u81ea\u5df1\u7684\u684c\u9762\u73af\u5883<\/li>\n<li><a href=\"https:\/\/www.linuxmi.com\/rust-linux-kernel-language.html\">https:\/\/www.linuxmi.com\/rust-linux-kernel-language.html<\/a><\/li>\n<\/ul>\n<p>\u8fd9\u4ec5\u4ec5\u662f\u5728 Linux \u751f\u6001\u7cfb\u7edf\u4e2d\u7684\u60c5\u51b5\u3002Android \u7684\u84dd\u7259\u5b9e\u73b0 Gabeldorsche \u73b0\u5728\u4e5f\u7528 Rust \u7f16\u5199\u3002<\/p>\n<p>\u4f60\u770b\u5230\u4e86 Rust \u7684\u65e5\u76ca\u6d41\u884c\u5417\uff1f\u4f60\u662f\u5426\u53ef\u80fd\u4e5f\u60f3\u5b66\u4e60 Rust \u7f16\u7a0b\u3002<\/p>\n<h2><strong>\u4e3a\u4ec0\u4e48\u5e94\u8be5\u9009\u62e9 Rust \u800c\u4e0d\u662f\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u5462\uff1f<\/strong><\/h2>\n<p>Rust \u662f\u4e00\u79cd\u5177\u6709\u6781\u5176\u4e25\u683c\u7c7b\u578b\u7cfb\u7edf\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u56e0\u6b64\uff0c\u4f60\u4f1a\u88ab\u201c\u8feb\u201d\u5728\u4e00\u5f00\u59cb\u5c31\u4e0d\u5199\u7cdf\u7cd5\u7684\u4ee3\u7801\uff08\u901a\u5e38\u662f\u8fd9\u6837\uff09\u3002<\/p>\n<p>Rust\u7f16\u7a0b\u8bed\u8a00\u5177\u6709\u4ee5\u4e0b\u201c\u76ee\u6807\u201d\uff1a<\/p>\n<ul>\n<li>\u901f\u5ea6\uff1aRust \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e0e C \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e00\u6837\u5feb\uff0c\u6709\u65f6\u751a\u81f3\u6bd4 C++ \u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u66f4\u5feb\uff01<\/li>\n<li>\u5185\u5b58\u5b89\u5168\uff1aRust\u975e\u5e38\u6ce8\u91cd\u5185\u5b58\u5b89\u5168\u3002<\/li>\n<li>\u5e76\u53d1\u6027\uff1a\u6ce8\u91cd\u5185\u5b58\u5b89\u5168\u6d88\u9664\u4e86\u5f88\u591a\u7c7b\u4f3c\u4e8e\u7ade\u4e89\u6761\u4ef6\u7684\u573a\u666f\uff0c\u5e2e\u52a9\u60a8\u5728\u7a0b\u5e8f\u4e2d\u5f15\u5165\u5e76\u53d1\u6027\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u662f\u5728 C\/C++ \u7b49\u8bed\u8a00\u4e2d\u53ef\u80fd\u51fa\u73b0\u7684\u4e00\u4e9b\u9519\u8bef\uff08\u4f46\u4e0d\u4f1a\u5728 Rust \u4e2d\u51fa\u73b0\uff09\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528\u540e\u91ca\u653e<\/li>\n<li>\u53cc\u91cd\u91ca\u653e<\/li>\n<li>\u8bbf\u95ee\u8d85\u51fa\u754c\u9650\u7684\u503c<\/li>\n<li>\u4f7f\u7528\u7a7a\u6307\u9488<\/li>\n<li>\u4e0d\u9002\u5f53\u7684\u6307\u9488\u7b97\u672f\u548c\/\u6216\u8bbf\u95ee<\/li>\n<li>\u4f7f\u7528\u672a\u521d\u59cb\u5316\u7684\u53d8\u91cf<\/li>\n<li>\u7ebf\u7a0b\u4e0d\u5b89\u5168\u7684\u591a\u7ebf\u7a0b<\/li>\n<\/ul>\n<p>\u770b\u4e00\u4e0b\u8fd9\u4e9b\u95ee\u9898\u5728\u82f9\u679c\u3001\u5fae\u8f6f\u3001\u8c37\u6b4c\u30010day\u7b49\u5927\u516c\u53f8\u4e2d\u9020\u6210\u7684\u5f71\u54cd\u3002<\/p>\n<p>\u73b0\u5728\u4f60\u77e5\u9053\u4e3a\u4ec0\u4e48\u8981\u9009\u62e9 Rust \u7f16\u7a0b\u8bed\u8a00\u800c\u4e0d\u662f\u5176\u4ed6\u4efb\u4f55\u4e00\u79cd\u8bed\u8a00\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb Rust \u8bed\u8a00\u6559\u7a0b\u7cfb\u5217\u5427\uff01<\/p>\n<h2><strong>\u76ee\u6807\u53d7\u4f17 <\/strong><\/h2>\n<p>\u51fa\u4e8e\u5bf9 Rust \u7684\u70ed\u7231\uff0c\u6211\u5199\u4e86\u8fd9\u4e00\u7cfb\u5217 Rust \u6559\u7a0b\uff0c\u5e2e\u52a9\u4f60\u719f\u6089 Rust \u7f16\u7a0b\u6982\u5ff5\u3002<\/p>\n<p>\u8fd9\u4e2a\u6559\u7a0b\u7cfb\u5217\u9762\u5411\u5df2\u7ecf\u719f\u6089 C \u548c C++ \u7b49\u7f16\u7a0b\u8bed\u8a00\u7684\u4eba\u3002\u6211\u5047\u5b9a\u4f60\u77e5\u9053\u57fa\u672c\u672f\u8bed\uff0c\u6bd4\u5982\u53d8\u91cf\u3001\u51fd\u6570\u3001\u5faa\u73af\u7b49\u3002<\/p>\n<p>\u6211\u6240\u8981\u6c42\u7684\u552f\u4e00\u524d\u63d0\u6761\u4ef6\u5c31\u662f\u4f60\u7684\u65f6\u95f4\u548c\u4e00\u4e9b\u52aa\u529b\u3002<\/p>\n<h2><strong>\u5b89\u88c5 Rust \u7f16\u8bd1\u5668<\/strong><\/h2>\n<p>\u6211\u5e0c\u671b\u4f60\u672c\u5730\u5b89\u88c5\u4e86 Rust \u7f16\u8bd1\u5668\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi:~\/www.linuxmi.com$ curl --proto '=https' --tlsv1.3 -sSf https:\/\/sh.rustup.rs | sh<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21004\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-1.png\" alt=\"\" width=\"1081\" height=\"783\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-21005\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-3.png\" alt=\"\" width=\"1081\" height=\"783\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-21006\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-6.png\" alt=\"\" width=\"1081\" height=\"783\" \/><\/p>\n<p>\u9664\u4e86 Rust \u7f16\u8bd1\u5668\u4e4b\u5916\uff0c\u6211\u8fd8\u5efa\u8bae\u5b89\u88c5\u51e0\u4e2a\u5176\u4ed6\u5de5\u5177\uff0c\u8fd9\u4e9b\u5de5\u5177\u5c06\u6709\u52a9\u4e8e\u60a8\u7684\u5f00\u53d1\u8fc7\u7a0b\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi:~\/www.linuxmi.com$ rustup component add rust-src rust-analyzer rust-analysis<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21007\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-7.png\" alt=\"\" width=\"1081\" height=\"442\" \/><\/p>\n<p>\u60a8\u8fd8\u9700\u8981\u5b89\u88c5 gcc\u3002\u5426\u5219\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u94fe\u63a5\u5668\u201ccc\u201d\u672a\u627e\u5230\u7684\u9519\u8bef\u3002\u8be5\u8f6f\u4ef6\u5305\u5728\u4e0d\u540c\u7684\u53d1\u884c\u7248\u4e2d\u88ab\u79f0\u4e3agcc\u3002<\/p>\n<p>\u5728 Ubuntu \u548c Debian \u4e0a\u4f7f\u7528\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi:~\/www.linuxmi.com$ sudo apt install gcc<\/code><\/pre>\n<h2 id=\"hello-rust\">Hello Rust!<\/h2>\n<p>\u81ea\u4ece Dennis Ritchie \u548c Brian Kernighan \u4f7f\u7528\u201cHello world\u201d\u7a0b\u5e8f\u5f15\u5165 C \u7f16\u7a0b\u8bed\u8a00\u4ee5\u6765\uff0c\u5b83\u5df2\u7ecf\u6210\u4e3a\u4e86 UNIX \u4e16\u754c\u4e2d\u4efb\u4f55\u5b66\u4e60\u65b0\u7f16\u7a0b\u8bed\u8a00\u7684\u60ef\u4f8b\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u4eec\u4e5f\u6765\u7528 Rust \u7f16\u5199\u6211\u4eec\u7684 Hello World \u7a0b\u5e8f\u5427\u3002<\/p>\n<p>\u6211\u5c06\u5728\u6211\u7684\u4e3b\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a www.linuxmi.com \u7684\u9879\u76ee\u76ee\u5f55\u3002\u5728\u5176\u4e2d\uff0c\u6211\u521b\u5efa\u53e6\u4e00\u4e2a\u540d\u4e3a hello-world \u7684\u76ee\u5f55\u3002\u5728\u5176\u4e2d\uff0c\u6211\u5c06\u521b\u5efa\u4e00\u4e2amain.rs \u6587\u4ef6\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">\/\/ \u8be5\u4ee3\u7801\u8f93\u51fa\u6587\u672c\r\n\/\/ \u8f93\u51fa \"Hello world!Linux\u8ff7 www.linuxmi.com\r\nfn main() {\r\n    println!(\"Hello world!Linux\u8ff7 www.linuxmi.com\");\r\n}<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21008\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-10.png\" alt=\"\" width=\"1081\" height=\"504\" \/>\u00a0<em><strong>\u662f\u7684\uff0c\u5c31\u50cf C\u3001C++ \u548c Java \u6e90\u6587\u4ef6\u7684\u6269\u5c55\u540d\u5206\u522b\u662f .c\u3001.cpp \u548c .java \u4e00\u6837\uff0cRust \u6e90\u6587\u4ef6\u7684\u6269\u5c55\u540d\u662f .rs\u3002<\/strong><\/em><\/p>\n<p>\u662f\u7684\uff0c\u4e0e\u5728 Linux \u4e0a\u4f7f\u7528 gcc\uff0cmacOS \u4e0a\u4f7f\u7528 clang \u548c Windows \u4e0a\u4f7f\u7528 MSVC \u7f16\u8bd1 C\/C++ \u7a0b\u5e8f\u76f8\u540c\uff0c\u7f16\u8bd1 Rust \u4ee3\u7801\u9700\u8981\u4f7f\u7528\u8bed\u8a00\u521b\u5efa\u8005\u63d0\u4f9b\u7684\u5b98\u65b9\u7f16\u8bd1\u5668 rustc\u3002<\/p>\n<p>\u8fd0\u884c Rust \u7a0b\u5e8f\u4e0e\u6267\u884c C\/C++ \u7a0b\u5e8f\u76f8\u540c\u3002\u60a8\u9700\u8981\u7f16\u8bd1\u4ee3\u7801\u4ee5\u83b7\u53d6\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7136\u540e\u8fd0\u884c\u8be5\u53ef\u6267\u884c\u6587\u4ef6\u6765\u8fd0\u884c\u4ee3\u7801\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">linuxmi@linuxmi:~\/www.linuxmi.com$ ls\r\nlinuxmi.rs\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ rustc linuxmi.rs\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ ls\r\nlinuxmi  linuxmi.rs\r\nlinuxmi@linuxmi:~\/www.linuxmi.com$ .\/linuxmi\r\nHello world!Linux\u8ff7 www.linuxmi.coms<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-21009\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2023\/04\/rs-11.png\" alt=\"\" width=\"1081\" height=\"380\" \/>\u662f\u4e0d\u662f\u4e00\u5207 OK\u3002<\/p>\n<h2><strong>Rust \u4ee3\u7801\u89e3\u6790<\/strong><\/h2>\n<p>\u65e2\u7136\u4f60\u5df2\u7ecf\u5199\u3001\u7f16\u8bd1\u5e76\u8fd0\u884c\u4e86\u4f60\u7684\u7b2c\u4e00\u4e2a Rust \u7a0b\u5e8f\uff0c\u8ba9\u6211\u4eec\u5206\u89e3\u201cHello World\u201d\u4ee3\u7801\u5e76\u7406\u89e3\u6bcf\u4e2a\u90e8\u5206\u3002<\/p>\n<div class=\"bg-black rounded-md mb-4\">\n<div class=\"p-4 overflow-y-auto\">\n<pre class=\"pure-highlightjs\"><code class=\"null\">fn main() {\r\n}<\/code><\/pre>\n<\/div>\n<\/div>\n<p><code>fn<\/code> \u5173\u952e\u5b57\u7528\u4e8e\u5728 Rust \u4e2d\u58f0\u660e\u4e00\u4e2a\u51fd\u6570\u3002\u5728\u8fd9\u91cc\uff0c<code>main<\/code> \u662f\u58f0\u660e\u7684\u8fd9\u4e2a\u7279\u5b9a\u51fd\u6570\u7684\u540d\u79f0\u3002\u50cf\u8bb8\u591a\u7f16\u8bd1\u578b\u7f16\u7a0b\u8bed\u8a00\u4e00\u6837\uff0c<code>main<\/code> \u662f\u7528\u4f5c\u7a0b\u5e8f\u5165\u53e3\u70b9\u7684\u7279\u6b8a\u51fd\u6570\u3002<\/p>\n<p>\u5728 <code>main<\/code> \u51fd\u6570\u5185\u7f16\u5199\u7684\u4efb\u4f55\u4ee3\u7801\uff08\u5728\u5927\u62ec\u53f7 <code>{}<\/code> \u4e4b\u95f4\uff09\u5c06\u5728\u7a0b\u5e8f\u542f\u52a8\u65f6\u6267\u884c\u3002<\/p>\n<h2><strong>println \u5b8f<\/strong><\/h2>\n<p>\u5728 <code>main<\/code> \u51fd\u6570\u5185\uff0c\u6709\u4e00\u6761\u8bed\u53e5\uff1a<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">println!(\"Hello world!\");<\/code><\/pre>\n<p>\u4e0e C \u8bed\u8a00\u7684\u6807\u51c6\u5e93\u6709 <code>printf<\/code> \u51fd\u6570\u7c7b\u4f3c\uff0cRust \u8bed\u8a00\u7684\u6807\u51c6\u5e93\u6709 <code>println<\/code> \u5b8f\u3002\u5b8f\u7c7b\u4f3c\u4e8e\u51fd\u6570\uff0c\u4f46\u5b83\u53ef\u4ee5\u7528\u611f\u53f9\u53f7\u6765\u533a\u5206\u3002\u5728\u672c\u7cfb\u5217\u4e2d\uff0c\u4f60\u5c06\u5b66\u4e60\u6709\u5173\u5b8f\u548c\u51fd\u6570\u7684\u66f4\u591a\u77e5\u8bc6\u3002<\/p>\n<p><code>println<\/code> \u5b8f\u63a5\u53d7\u683c\u5f0f\u5b57\u7b26\u4e32\u5e76\u5c06\u5176\u653e\u5230\u7a0b\u5e8f\u7684\u8f93\u51fa\uff08\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u8fd9\u662f\u7ec8\u7aef\uff09\u4e2d\u3002\u7531\u4e8e\u6211\u5e0c\u671b\u8f93\u51fa\u4e00\u4e9b\u6587\u672c\u800c\u4e0d\u662f\u4e00\u4e2a\u53d8\u91cf\uff0c\u56e0\u6b64\u6211\u5c06\u6587\u672c\u653e\u5728\u53cc\u5f15\u53f7 (<code>\"<\/code>) \u4e2d\u3002\u6700\u540e\uff0c\u6211\u4f7f\u7528\u5206\u53f7 (<code>;<\/code>) \u7ed3\u675f\u8fd9\u4e2a\u8bed\u53e5\uff0c\u8868\u793a\u8bed\u53e5\u7684\u7ed3\u5c3e\u3002<\/p>\n<p style=\"padding-left: 40px;\"><em><strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728 Rust \u7f16\u7a0b\u8bed\u8a00\u4e2d\uff0c\u4efb\u4f55\u770b\u8d77\u6765\u50cf\u51fd\u6570\u8c03\u7528\u4f46\u5728\u5de6\u62ec\u53f7\u524d\u6709\u60ca\u53f9\u53f7\uff08!\uff09\u7684\u4e1c\u897f\u90fd\u662f\u5b8f\u3002<\/strong><\/em><\/p>\n<h2><strong>\u6ce8\u91ca\u65b9\u9762<\/strong><\/h2>\n<p>Rust \u9075\u5faa\u4e86 C \u8bed\u8a00\u7684\u6ce8\u91ca\u98ce\u683c\u3002\u5355\u884c\u6ce8\u91ca\u4ee5\u4e24\u4e2a\u659c\u6760\uff08\/\/\uff09\u5f00\u5934\uff0c\u800c\u591a\u884c\u6ce8\u91ca\u5219\u4ee5 \/* \u5f00\u5934\uff0c\u4ee5 *\/ \u7ed3\u5c3e\u3002<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">\/\/ \u8fd9\u662f\u5355\u884c\u6ce8\u91ca\r\n\/\/ \u4f46\u662f\u6ca1\u6709\u4efb\u4f55\u529b\u91cf\u963b\u6b62\u6211\r\n\/\/ \u5728\u7b2c\u4e8c\u884c\u6216\u7b2c\u4e09\u884c\u7ee7\u7eed\u8fd9\u6837\u505a\r\n\r\n\/*\r\n * \u8fd9\u662f\u4e00\u4e2a\u771f\u6b63\u7684\u591a\u884c\u6ce8\u91ca\u3002\r\n * \u56e0\u4e3a\u5b83\u770b\u8d77\u6765\u5f88\u70ab\u9177\u3002\r\n *\/<\/code><\/pre>\n<h2><strong>\u603b\u7ed3<\/strong><\/h2>\n<p>\u60a8\u521a\u521a\u901a\u8fc7 Hello World \u7a0b\u5e8f\u8fc8\u51fa\u4e86\u5b66\u4e60 Rust \u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<p>\u4f5c\u4e3a\u7ec3\u4e60\uff0c\u4e5f\u8bb8\u60a8\u53ef\u4ee5\u7f16\u5199\u5e76\u6267\u884c\u4e00\u4e2a Rust \u7a0b\u5e8f\uff0c\u8be5\u7a0b\u5e8f\u6253\u5370\u201c\u662f\u7684\uff01\u6211\u5b66\u4f1a\u4e86 Rust\u201d\u3002<\/p>\n<p>\u5728\u672c\u7cfb\u5217\u7684\u4e0b\u4e00\u90e8\u5206\u4e2d\uff0c\u60a8\u5c06\u5b66\u4e60\u5728 Rust \u7a0b\u5e8f\u4e2d\u4f7f\u7528\u53d8\u91cf\u3002\u656c\u8bf7\u671f\u5f85\uff01<\/p>\n<p><strong>\u76f8\u5173<\/strong>\uff1a<strong>Rust \u5165\u95e8\u6559\u7a0b\u7cfb\u5217<\/strong>\uff1a<a href=\"https:\/\/www.linuxmi.com\/tag\/rustjiaocheng\">https:\/\/www.linuxmi.com\/tag\/rustjiaocheng<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rust \u7f16\u7a0b\u8bed\u8a00\u662f\u6700\u53d7\u5f00\u53d1\u4eba\u5458\u548c\u79d1\u6280\u516c\u53f8\u9752\u7750\u7684\u6700\u5feb\u91c7\u7528\u7684\u7cfb\u7edf\u7f16\u7a0b\u8bed\u8a00\u4e4b\u4e00\u3002\u5b83\u4e5f\u88ab\u5f00\u53d1\u4eba\u5458\u6295\u7968\u8bc4\u4e3a\u6700 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[867,1348],"class_list":["post-20999","post","type-post","status-publish","format-standard","hentry","category-linux","tag-rust","tag-rustjiaocheng"],"aioseo_notices":[],"views":677,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/20999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=20999"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/20999\/revisions"}],"predecessor-version":[{"id":21064,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/20999\/revisions\/21064"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=20999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=20999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=20999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}