{"id":45509,"date":"2023-05-09T22:50:44","date_gmt":"2023-10-15T04:01:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/"},"modified":"2024-04-30T03:23:27","modified_gmt":"2024-04-29T19:23:27","slug":"45509-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u5165\u9580\u66f8\u3068\u3057\u3066The Rust Programming Language \u65e5\u672c\u8a9e\u8a33\u304b\u3089\u5b66\u3093\u3060\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3067\u3059\u3002<\/p>\n<h1>\u74b0\u5883<\/h1>\n<p>Archlinux<\/p>\n<h1>Rust\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3046<\/h2>\n<p>\u8ffd\u8a18<br \/>\n\u6700\u521dOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046\u65b9\u6cd5\u3067\u8a66\u3057\u307e\u3057\u305f\u304c\u3001\u4e0b\u8a18\u306b\u8ff0\u3079\u308b\u30a8\u30e9\u30fc?\u3068\u3044\u3046\u304b\u4e00\u624b\u9593\u304c\u767a\u751f\u3057\u305f\u306e\u3067\u3001\u5165\u9580\u66f8\u63a8\u5968\u306ecurl https:\/\/sh.rustup.rs -sSf | sh\u3092\u4f7f\u3063\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u65b9\u6cd5\u3092\u8a66\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> curl https:\/\/sh.rustup.rs <span class=\"nt\">-sSf<\/span> | sh\r\n<span class=\"go\">info: downloading installer\r\n\r\nWelcome to Rust!\r\n\r\nThis will download and install the official compiler for the Rust\r\nprogramming language, and its package manager, Cargo.\r\n\r\nRustup metadata and toolchains will be installed into the Rustup\r\nhome directory, located at:\r\n\r\n  \/home\/u1and0\/.rustup\r\n\r\nThis can be modified with the RUSTUP_HOME environment variable.\r\n\r\nThe Cargo home directory located at:\r\n\r\n  \/home\/u1and0\/.cargo\r\n\r\nThis can be modified with the CARGO_HOME environment variable.\r\n\r\nThe cargo, rustc, rustup and other commands will be added to\r\nCargo's bin directory, located at:\r\n\r\n  \/home\/u1and0\/.cargo\/bin\r\n\r\nThis path will then be added to your PATH environment variable by\r\nmodifying the profile files located at:\r\n\r\n  \/home\/u1and0\/.profile\r\n  \/home\/u1and0\/.bash_profile\r\n\r\nYou can uninstall at any time with rustup self uninstall and\r\nthese changes will be reverted.\r\n\r\nCurrent installation options:\r\n\r\n\r\n   default host triple: x86_64-unknown-linux-gnu\r\n     default toolchain: stable (default)\r\n               profile: default\r\n  modify PATH variable: yes\r\n\r\n1) Proceed with installation (default)\r\n2) Customize installation\r\n3) Cancel installation\r\n<\/span><span class=\"gp\">&gt;<\/span>\r\n<span class=\"gp\">#<\/span> \u5bfe\u8a71\u7684\u306b\u805e\u3044\u3066\u304f\u308b\u306e\u3067\u3001Enter\u62bc\u3059\u3068<span class=\"o\">(<\/span>1<span class=\"o\">)<\/span>\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3092\u3057\u3066\u304f\u308c\u308b\r\n<span class=\"go\">\r\ninfo: profile set to 'default'\r\ninfo: default host triple is x86_64-unknown-linux-gnu\r\ninfo: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'\r\ninfo: latest update on 2020-07-16, rust version 1.45.0 (5c1f21c3b 2020-07-13)\r\ninfo: downloading component 'cargo'\r\ninfo: downloading component 'clippy'\r\ninfo: downloading component 'rust-docs'\r\n 12.2 MiB \/  12.2 MiB (100 %)  10.9 MiB\/s in  1s ETA:  0s\r\ninfo: downloading component 'rust-std'\r\n 15.8 MiB \/  15.8 MiB (100 %)  10.7 MiB\/s in  1s ETA:  0s\r\ninfo: downloading component 'rustc'\r\n 47.6 MiB \/  47.6 MiB (100 %)  10.9 MiB\/s in  4s ETA:  0s\r\ninfo: downloading component 'rustfmt'\r\ninfo: installing component 'cargo'\r\ninfo: Defaulting to 500.0 MiB unpack ram\r\ninfo: installing component 'clippy'\r\ninfo: installing component 'rust-docs'\r\n 12.2 MiB \/  12.2 MiB (100 %)  12.1 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rust-std'\r\n 15.8 MiB \/  15.8 MiB (100 %)  13.3 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rustc'\r\n 47.6 MiB \/  47.6 MiB (100 %)  13.5 MiB\/s in  3s ETA:  0s\r\ninfo: installing component 'rustfmt'\r\ninfo: default toolchain set to 'stable'\r\n\r\n  stable installed - rustc 1.45.0 (5c1f21c3b 2020-07-13)\r\n\r\n\r\nRust is installed now. Great!\r\n\r\n<\/span><span class=\"gp\">To get started you need Cargo's bin directory ($<\/span>HOME\/.cargo\/bin<span class=\"o\">)<\/span> <span class=\"k\">in <\/span>your PATH\r\n<span class=\"go\">environment variable. Next time you log in this will be done\r\nautomatically.\r\n\r\n<\/span><span class=\"gp\">To configure your current shell run source $<\/span>HOME\/.cargo\/env\r\n<\/code><\/pre>\n<p>toolchain=stable\u3092\u843d\u3068\u3057\u3066\u304d\u3066\u3001cargo, rust\u95a2\u9023\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u30d1\u30b9\u306b\u8ffd\u52a0\u3057\u3066\u304f\u308c\u307e\u3057\u305f\u3002<\/p>\n<h2>\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305aOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046<\/h2>\n<p>$ curl https:\/\/sh.rustup.rs -sSf | sh \u3092\u6253\u3066\u3068\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u305b\u3063\u304b\u304fArchlinux\u306a\u3093\u3067pacman\u3067\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ pacman -Syu rustup\r\n<\/code><\/pre>\n<p>archlinux\u306f\u53e4\u3044\u3082\u306e\u304b\u3089\u65b0\u3057\u3044\u3082\u306e\u307e\u3067pacman\u3067\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u7ba1\u7406\u304c\u51fa\u6765\u308b\u306e\u304c\u3044\u3044\u3067\u3059\u306d\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3068\u308a\u3042\u3048\u305a\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ rustc --version\r\nerror: no override and no default toolchain set\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u3067\u3057\u305f\u3002\u306a\u3093\u3067\uff1f<br \/>\n\u3053\u306e\u8fba\u304b\u3089\u306f\u5165\u9580\u66f8\u306b\u66f8\u3044\u3066\u3044\u306a\u3044\u3053\u3068\u3002<\/p>\n<p>\u305d\u3082\u305d\u3082rustup\u3063\u3066\u306a\u3093\u3084<br \/>\nhelp\u898b\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ rustup help\r\nrustup 1.22.1 (2020-07-08)\r\nThe Rust toolchain installer\r\n\r\nUSAGE:\r\n    rustup [FLAGS] [+toolchain] &lt;SUBCOMMAND&gt;\r\n(snip...)\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ pacman -Qs rustup\r\nlocal\/rustup 1.22.1-1\r\n    The Rust toolchain installer\r\n<\/code><\/pre>\n<p>rustup\u3063\u3066toolchain\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306a\u3093\u3060\u3002(toolchain\u3063\u3066\u306a\u3093\u3060\uff1f\u3068\u306f\u601d\u3044\u3064\u3064\u3002)<br \/>\n\u3064\u307e\u308a\u3053\u306e\u30a8\u30e9\u30fc\u306ftoolchain\u304c\u306a\u3044\u304b\u3089\u6012\u3089\u308c\u3066\u3044\u308b\u3068\u3046\u3053\u3068\u3067\u3002help\u306b\u5f93\u3044rustup [toolchain]\u3092update\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u901a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> rustup update stable\r\n<span class=\"go\">info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'\r\ninfo: latest update on 2020-07-16, rust version 1.45.0 (5c1f21c3b 2020-07-13)\r\ninfo: downloading component 'cargo'\r\ninfo: downloading component 'clippy'\r\ninfo: downloading component 'rust-docs'\r\n12.2 MiB \/  12.2 MiB (100 %)  10.7 MiB\/s in  1s ETA:  0s\r\ninfo: downloading component 'rust-std'\r\n15.8 MiB \/  15.8 MiB (100 %)  10.5 MiB\/s in  1s ETA:  0s\r\ninfo: downloading component 'rustc'\r\n47.6 MiB \/  47.6 MiB (100 %)  10.7 MiB\/s in  4s ETA:  0s\r\ninfo: downloading component 'rustfmt'\r\ninfo: installing component 'cargo'\r\ninfo: Defaulting to 500.0 MiB unpack ram\r\ninfo: installing component 'clippy'\r\ninfo: installing component 'rust-docs'\r\n12.2 MiB \/  12.2 MiB (100 %)   8.6 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rust-std'\r\n15.8 MiB \/  15.8 MiB (100 %)  10.2 MiB\/s in  1s ETA:  0s\r\ninfo: installing component 'rustc'\r\n47.6 MiB \/  47.6 MiB (100 %)  10.3 MiB\/s in  4s ETA:  0s\r\ninfo: installing component 'rustfmt'\r\n\r\nstable-x86_64-unknown-linux-gnu installed - rustc 1.45.0 (5c1f21c3b 2020-07-13)\r\n\r\ninfo: default toolchain set to 'stable-x86_64-unknown-linux-gnu'\r\n<\/span><\/code><\/pre>\n<p>toolchain\u306e\u7a2e\u985e\u306f\u6b21\u306e\u30ea\u30f3\u30af\u5148\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3057\u305f\u3002<br \/>\nrust-lang\/rustup\/README<\/p>\n<blockquote><p>only contain the names of the three release channels, &#8216;stable&#8217;, &#8216;beta&#8217;, &#8216;nightly&#8217;,<\/p><\/blockquote>\n<p>Rust\u8a00\u8a9e\u306e\u958b\u767a\u8005\u3067\u306f\u306a\u3044\u306e\u3067\u3001stable\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u5165\u9580\u66f8\u306b\u66f8\u3044\u3066\u3044\u306a\u3044\u3053\u3068\u7d42\u308f\u308a<\/p>\n<pre class=\"post-pre\"><code>$ rustc --version\r\nrustc 1.45.0 (5c1f21c3b 2020-07-13)\r\n<\/code><\/pre>\n<p>\u7121\u4e8b\u3001Rust\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001cargo\u306e\u30d1\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u5165\u9580\u66f8\u306b\u66f8\u3044\u3066\u3042\u308b\u3053\u3068\u3092\u30a2\u30ec\u30f3\u30b8\u3057\u3066\u3001~\/.bashrc\u306b\u4e0b\u8a18\u3092\u52a0\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>&#8220;`bash:~\/.bashrc<br \/>\n# Rust path<br \/>\n[ -f &#8220;\/usr\/bin\/cargo&#8221; ] &amp;&amp; export PATH=&#8221;$PATH:$HOME\/.cargo\/bin&#8221;<br \/>\n&#8220;`<\/p>\n<p>\u8ffd\u8a18 OS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046\u3068\u30b0\u30ed\u30fc\u30d0\u30eb\u306e\u30d1\u30b9\/usr\/bin\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u308b\u306e\u3067\u30d1\u30b9\u306b\u52a0\u3048\u308b\u5fc5\u8981\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u524a\u9664\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>curl&#8230;sh\u3092\u4f7f\u3063\u305f\u5834\u5408\u3068OS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3063\u305f\u5834\u5408\u306e\u9055\u3044<\/h2>\n<p>curl&#8230;sh\u3092\u4f7f\u3046\u3068\u3001toolchain(stable\u306a\u3069)\u3092rustup update stable\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044(curl &#8230; | sh\u304c\u3084\u3063\u3066\u304f\u308c\u308b)<\/p>\n<p>curl&#8230;sh\u3092\u4f7f\u3046\u3068\u3001cargo, rustup, rustc\u306a\u3069\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u304c~\/.cargo\/bin\u306b\u5165\u308b<\/p>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3063\u3066rustup update stable\u3059\u308c\u3070\/usr\/bin\u3084\/usr\/sbin\u4e0b\u306b\u5165\u308b<br \/>\n\u3059\u306a\u308f\u3061curl&#8230;sh\u3092\u4f7f\u3046\u3068\u5168\u3066\u306e\u30e6\u30fc\u30b6\u30fc\u304crust\u3092\u4f7f\u3048\u306a\u3044(curl&#8230;sh\u3092\u4f7f\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304crust\u3092\u89e6\u308c\u308b)<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">ls<\/span> ~\/.cargo\/bin\r\n<span class=\"go\">cargo*         cargo-fmt*   clippy-driver*  rust-gdb*   rustc*    rustfmt*\r\ncargo-clippy*  cargo-miri*  rls*            rust-lldb*  rustdoc*  rustup*\r\n<\/span><\/code><\/pre>\n<p>curl&#8230;sh\u3092\u4f7f\u3046\u3068\u3001~\/.cargo\/env\u304c\u4f5c\u3089\u308c\u308b<\/p>\n<p>~\/.cargo\/env\u306fcargo\u3084rustup\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u30d1\u30b9\u306b\u52a0\u3048\u3066\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3060\u3051\u306e\u8a2d\u5b9a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>export PATH=\"$HOME\/.cargo\/bin:$PATH\"\r\n<\/code><\/pre>\n<p>curl&#8230;sh\u5b9f\u884c\u6642\u306b\u51fa\u308b\u4e0b\u8a18\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u901a\u308a\u3001\u52dd\u624b\u306b~\/.bash_profile\u306a\u3069\u306bexport\u6587\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<blockquote><p>This path will then be added to your PATH environment variable by<br \/>\nmodifying the profile files located at:<\/p>\n<p>\/home\/u1and0\/.profile<br \/>\n\/home\/u1and0\/.bash_profile<\/p><\/blockquote>\n<p>\u3053\u308c\u3067\u6b21\u56deshell\u7acb\u3061\u4e0a\u3052\u6642\u306bcargo\u95a2\u9023\u306e\u30d1\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u3001cargo\u3084rustup\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>curl&#8230;sh\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3046\u65b9\u6cd5\u3068OS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3046\u65b9\u6cd5\u3069\u3061\u3089\u304c\u826f\u3044\u304b\u306f\u904b\u7528\u65b9\u6cd5\u3001\u597d\u307f\u306b\u3088\u308a\u307e\u3059\u3002<br \/>\nOS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3048\u3070\u3001pacman -Syu\u3057\u305f\u3068\u304d\u306b\u81ea\u52d5\u7684\u306brustup\u3082\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u3066\u304f\u308c\u307e\u3059\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u3048\u3070\u81ea\u5206\u3067rustup update\u3092\u6253\u3064\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n(OS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3092\u4f7f\u3063\u3066\u3082\u3001rustup\u81ea\u4f53\u304c\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3055\u308c\u308b\u3060\u3051\u3067\u3001\u5b9f\u8cearustup update\u3082\u6253\u305f\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u304c\u3002)<\/p>\n<p>\u3069\u306e\u30e6\u30fc\u30b6\u30fc\u304cRust\u3092\u4f7f\u3048\u308b\u304b\u3001\u3068\u3044\u3046\u70b9\u3082\u7570\u306a\u308b\u70b9\u306e\u4e00\u3064\u3067\u3059\u3002\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u4f7f\u3044\u305f\u3044\u306e\u3067\u3042\u308c\u3070OS\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u30011\u30e6\u30fc\u30b6\u30fc\u3060\u3051\u4f7f\u3048\u308c\u3070\u826f\u3044\u306e\u3067\u3042\u308c\u3070\u9762\u5012\u306e\u5c11\u306a\u3044curl&#8230;sh\u3067\u826f\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h1>Hello world<\/h1>\n<p>\u6700\u521d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3001Hello world\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u5165\u9580\u66f8\u306b\u5f93\u3044\u3001\u4e0b\u8a18\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3001\u79fb\u52d5\u3057\u3001main.rs\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">mkdir<\/span> <span class=\"nt\">-p<\/span> ~\/Dropbox\/Program\/rust\/hello_world<span class=\"p\">;<\/span> <span class=\"nb\">cd<\/span> <span class=\"nv\">$_<\/span>\r\n<span class=\"gp\">$<\/span> nvim main.rs\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code><span class=\"k\">fn<\/span> <span class=\"nf\">main<\/span><span class=\"p\">(){<\/span>\r\n    <span class=\"nd\">println!<\/span><span class=\"p\">(<\/span><span class=\"s\">\"Hello world\"<\/span><span class=\"p\">);<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>shell\u4e0a\u3067main.rs\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001\u751f\u6210\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> rustc main.rs  <span class=\"c\"># main.rs\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/span>\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">ls<\/span>  <span class=\"c\"># \u30d0\u30a4\u30ca\u30ea\u304c\u751f\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d<\/span>\r\n<span class=\"go\">main\r\nmain.rs\r\n<\/span><span class=\"gp\">$<\/span> .\/main <span class=\"c\"># \u30d0\u30a4\u30ca\u30ea\u5b9f\u884c<\/span>\r\n<span class=\"go\">Hello world\r\n<\/span><\/code><\/pre>\n<p>\u3046\u307e\u304fHello world\u304c\u51fa\u529b\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<h1>Hello cargo<\/h1>\n<p>cargo\u306e\u4f7f\u3044\u65b9\u3092\u5b66\u3073\u307e\u3059\u3002<br \/>\ncargo\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> cargo <span class=\"nt\">--version<\/span>\r\n<span class=\"go\">cargo 1.45.0 (744bd1fbb 2020-06-15)\r\n<\/span><\/code><\/pre>\n<p>Cargo\u3092\u4f7f\u7528\u3057\u3066\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n&#8211;bin\u5f15\u6570\u3092\u3064\u3051\u308b\u3053\u3068\u3067\u30d0\u30a4\u30ca\u30ea\u3092\u4f5c\u6210\u3059\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> cargo new hello_cargo <span class=\"nt\">--bin<\/span>\r\n<span class=\"go\">     Created binary (application) `hello_cargo` package\r\n<\/span><span class=\"gp\">$<\/span> tree hello_cargo\r\n<span class=\"go\">hello_cargo\r\n\u251c\u2500\u2500 Cargo.toml\r\n\u2514\u2500\u2500 src\r\n    \u2514\u2500\u2500 main.rs\r\n\r\n1 directory, 2 files\r\n<\/span><\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\ntoml\u306e\u4e2d\u8eab\u3092\u8997\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nn\">[package]<\/span>\r\n<span class=\"py\">name<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"hello_cargo\"<\/span>\r\n<span class=\"py\">version<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"0.1.0\"<\/span>\r\n<span class=\"py\">authors<\/span> <span class=\"p\">=<\/span> <span class=\"p\">[<\/span><span class=\"s\">\"u1and0 &lt;e01.ando60@gmail.com&gt;\"<\/span><span class=\"p\">]<\/span>\r\n<span class=\"py\">edition<\/span> <span class=\"p\">=<\/span> <span class=\"s\">\"2018\"<\/span>\r\n\r\n<span class=\"c\"># See more keys and their definitions at https:\/\/doc.rust-lang.org\/cargo\/reference\/manifest.html<\/span>\r\n\r\n<span class=\"nn\">[dependencies]<\/span>\r\n<\/code><\/pre>\n<p>\u52dd\u624b\u306bGit\u306e\u30e6\u30fc\u30b6\u540d\u3068\u304b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u304b\u4f7f\u308f\u308c\u308b\u3093\u3067\u3059\u306d\u30fc\u3002<br \/>\nmain.rs\u306e\u4e2d\u8eab\u3092\u8997\u3044\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>fn main() {\r\n    println!(\"Hello, world!\");\r\n}\r\n<\/code><\/pre>\n<p>Cargo\u304c\u52dd\u624b\u306bHello world\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u5165\u9580\u66f8\u306e\u6587\u7ae0\u3092\u5f15\u7528\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>Cargo\u306f\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304csrc\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u3053\u3068\u3092\u671f\u5f85\u3057\u307e\u3059\u3002\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6700\u4e0a\u4f4d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001 README\u30d5\u30a1\u30a4\u30eb\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u60c5\u5831\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001\u3042\u308b\u3044\u306f\u3001\u4ed6\u306e\u30b3\u30fc\u30c9\u306b\u95a2\u9023\u3057\u306a\u3044\u3082\u306e\u306e\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002 Cargo\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f53\u7cfb\u5316\u3059\u308b\u624b\u52a9\u3051\u3092\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p><\/blockquote>\n<h2>Cargo\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3057\u3001\u5b9f\u884c\u3059\u308b<\/h2>\n<h3>\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/h3>\n<p>Cargo\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0a\u3067cargo build\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> cargo build\r\n<span class=\"go\">   Compiling hello_cargo v0.1.0 (\/home\/u1and0\/Dropbox\/Program\/rust\/hello_cargo)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.50s\r\n<\/span><span class=\"gp\">$<\/span> tree\r\n<span class=\"c\">.\r\n<\/span><span class=\"go\">\u251c\u2500\u2500 Cargo.lock\r\n\u251c\u2500\u2500 Cargo.toml\r\n\u251c\u2500\u2500 src\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 main.rs\r\n\u2514\u2500\u2500 target\r\n    \u2514\u2500\u2500 debug\r\n        \u251c\u2500\u2500 build\r\n        \u251c\u2500\u2500 deps\r\n        \u2502\u00a0\u00a0 \u251c\u2500\u2500 hello_cargo-87a9db45987e9851\r\n        \u2502\u00a0\u00a0 \u2514\u2500\u2500 hello_cargo-87a9db45987e9851.d\r\n        \u251c\u2500\u2500 examples\r\n<\/span><span class=\"gp\">        \u251c\u2500\u2500 hello_cargo  #<\/span> \u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\r\n<span class=\"go\">        \u251c\u2500\u2500 hello_cargo.d\r\n        \u2514\u2500\u2500 incremental\r\n            \u2514\u2500\u2500 hello_cargo-szy1czdxg7sc\r\n                \u251c\u2500\u2500 s-fpk74m1exc-85ppht-1fjb5q50dnnhg\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 1gm6s9z6a68yb6gt.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 24lg2nh8sairvn1p.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 2i3icgmskvbcs2r6.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 4tdo6t3jaqdcmc89.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 4viuo6i1wu42msnb.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 dep-graph.bin\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 geox6bxp965pvuc.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 query-cache.bin\r\n                \u2502\u00a0\u00a0 \u2514\u2500\u2500 work-products.bin\r\n                \u2514\u2500\u2500 s-fpk74m1exc-85ppht.lock\r\n\r\n9 directories, 17 files\r\n<\/span><\/code><\/pre>\n<p>\u968f\u5206\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u30d5\u30a1\u30a4\u30eb\u304c\u5897\u3048\u307e\u3057\u305f\u3002<br \/>\n\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306ftarget\/debug\u306e\u4e0b\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b<\/h3>\n<p>cargo build\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u307e\u3067\u3067\u3059\u304c\u3001cargo run\u3092\u4f7f\u3048\u3070\u30b3\u30f3\u30d1\u30a4\u30eb\u304b\u3089\u5b9f\u884c\u307e\u3067\u3092\u30ef\u30f3\u30b3\u30de\u30f3\u30c9\u3067\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cd ..\r\n$ rm -rf hello_cargo\r\n$ cargo new hello_cargo --bin\r\n$ cd hello_cargo\r\n$ # \u4e0a\u8a18\u3067build\u3059\u308b\u524d\u306e\u72b6\u614b\u307e\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u72b6\u614b\u3092\u623b\u3057\u3066\u307e\u3059\u3002\r\n$ cargo run\r\n   Compiling hello_cargo v0.1.0 (\/home\/u1and0\/Dropbox\/Program\/rust\/hello_cargo)\r\n    Finished dev [unoptimized + debuginfo] target(s) in 0.26s\r\n     Running `target\/debug\/hello_cargo`\r\nHello, world!\r\n$ tree\r\n.\r\n\u251c\u2500\u2500 Cargo.lock\r\n\u251c\u2500\u2500 Cargo.toml\r\n\u251c\u2500\u2500 src\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 main.rs\r\n\u2514\u2500\u2500 target\r\n    \u2514\u2500\u2500 debug\r\n        \u251c\u2500\u2500 build\r\n        \u251c\u2500\u2500 deps\r\n        \u2502\u00a0\u00a0 \u251c\u2500\u2500 hello_cargo-87a9db45987e9851\r\n        \u2502\u00a0\u00a0 \u2514\u2500\u2500 hello_cargo-87a9db45987e9851.d\r\n        \u251c\u2500\u2500 examples\r\n        \u251c\u2500\u2500 hello_cargo\r\n        \u251c\u2500\u2500 hello_cargo.d\r\n        \u2514\u2500\u2500 incremental\r\n            \u2514\u2500\u2500 hello_cargo-szy1czdxg7sc\r\n                \u251c\u2500\u2500 s-fpk7k06p9o-kzim4w-1fjb5q50dnnhg\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 1gm6s9z6a68yb6gt.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 24lg2nh8sairvn1p.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 2i3icgmskvbcs2r6.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 4tdo6t3jaqdcmc89.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 4viuo6i1wu42msnb.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 dep-graph.bin\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 geox6bxp965pvuc.o\r\n                \u2502\u00a0\u00a0 \u251c\u2500\u2500 query-cache.bin\r\n                \u2502\u00a0\u00a0 \u2514\u2500\u2500 work-products.bin\r\n                \u2514\u2500\u2500 s-fpk7k06p9o-kzim4w.lock\r\n\r\n9 directories, 17 files\r\n<\/code><\/pre>\n<p>cargo run\u3059\u308b\u3068cargo build\u306e\u3068\u304d\u3068\u540c\u3058\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001Hello world\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b3\u30f3\u30d1\u30a4\u30eb\u53ef\u80fd\u304b\u78ba\u8a8d\u3059\u308b<\/h3>\n<p>cargo check\u30b3\u30de\u30f3\u30c9\u306f\u8fc5\u901f\u306b\u30b3\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u30b3\u30f3\u30d1\u30a4\u30eb\u51fa\u6765\u308b\u3053\u3068\u3092\u78ba\u304b\u3081\u307e\u3059\u304c\u3001\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u306f\u751f\u6210\u3057\u307e\u305b\u3093\u3002<br \/>\ncargo build\u306e\u3088\u3046\u306b\u5b9f\u884c\u53ef\u80fd\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3057\u306a\u3044\u306e\u3067\u3001cargo build\u3088\u308a\u9ad8\u901f\u3067\u3059\u3002<br \/>\n\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u53ef\u80fd\u304b\u3069\u3046\u304b\u3092\u78ba\u304b\u3081\u306a\u304c\u3089\u7d44\u307f\u7acb\u3066\u308b\u305f\u3081\u306bcargo check\u3092\u5b9a\u671f\u7684\u306b\u5b9f\u884c\u3057\u306a\u304c\u3089\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>rustup: toolchain\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc<\/p>\n<p>rustup update stable: stable toolchain\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3059\u308b<\/p>\n<p>rustc: \u30b3\u30f3\u30d1\u30a4\u30e9<\/p>\n<p>rustc main.rs: main.rs\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/p>\n<p>cargo build: cargo\u3067\u30b3\u30f3\u30d1\u30a4\u30eb<\/p>\n<p>cargo run: cargo\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u304b\u3089\u5b9f\u884c<\/p>\n<p>cargo check: cargo\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b(\u9ad8\u901f)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5165\u9580\u66f8\u3068\u3057\u3066The Rust Programming Language \u65e5\u672c\u8a9e\u8a33\u304b\u3089\u5b66\u3093\u3060\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3067\u3059\u3002  [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45509","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u5165\u9580\u66f8\u3068\u3057\u3066The Rust Programming Language \u65e5\u672c\u8a9e\u8a33\u304b\u3089\u5b66\u3093\u3060\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3067\u3059\u3002 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-15T04:01:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T19:23:27+00:00\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-15T04:01:09+00:00\",\"dateModified\":\"2024-04-29T19:23:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u5165\u9580\u66f8\u3068\u3057\u3066The Rust Programming Language \u65e5\u672c\u8a9e\u8a33\u304b\u3089\u5b66\u3093\u3060\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3067\u3059\u3002 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-15T04:01:09+00:00","article_modified_time":"2024-04-29T19:23:27+00:00","author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-15T04:01:09+00:00","dateModified":"2024-04-29T19:23:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45509-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45509"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45509\/revisions"}],"predecessor-version":[{"id":89385,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45509\/revisions\/89385"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}