{"id":44983,"date":"2023-05-05T05:56:48","date_gmt":"2024-01-15T02:48:34","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/"},"modified":"2024-04-30T02:42:07","modified_gmt":"2024-04-29T18:42:07","slug":"44983-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f Rust\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc5\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<p>Rust\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u307e\u30601\u3067\u306f\u306a\u304b\u3063\u305f\u9803\u3001\u7834\u58ca\u7684\u4ed5\u69d8\u5909\u66f4\u304c\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u304c\u3001\u30d0\u30fc\u30b8\u30e7\u30f31\u306b\u306a\u308a\u3001\u3060\u3044\u3076\u843d\u3061\u7740\u3044\u3066\u304d\u307e\u3057\u305f\u3002<br \/>\n\u904e\u53bb\u306e\u7834\u58ca\u7684\u5909\u66f4\u304b\u3089Rust\u306b\u6050\u6016\u5fc3\u3092\u62b1\u3044\u3066\u3044\u308b\uff1f\u65b9\u3082\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001Rust\u3053\u308f\u304f\u306a\u3044\u3088\uff01\u3068\u307e\u305a\u6700\u521d\u306b\u8a00\u3063\u3066\u304a\u3053\u3046\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n<p>Rust\u3053\u308f\u304f\u306a\u3044\u3088\uff01<\/p>\n<h2>Rust\u306e\u958b\u767a\u306e\u30ad\u30db\u30f3<\/h2>\n<p>Rust\u3067\u306e\u958b\u767a\u306f\u3001rustc \u30b3\u30de\u30f3\u30c9\u306b\u3088\u3063\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u306f cargo \u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3084\u30c6\u30b9\u30c8\u3092\u884c\u3044\u3001\u958b\u767a\u3092\u52e7\u3081\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cd<\/span> \/path\/to\/ <span class=\"c\"># \u597d\u304d\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a<\/span>\r\ncargo new hoge\r\n<\/code><\/pre>\n<p>Rust\u306f cargo \u30b3\u30de\u30f3\u30c9\u3067 cargo new &lt;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d&gt; \u3092\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u3001\u7c21\u5358\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u304c\u3001\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cd <\/span>hoge\r\n<\/code><\/pre>\n<p>\u3042\u3068\u306f\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u6f5c\u308a\u3001cargo test \u3068\u3059\u308b\u3060\u3051\u3067\u3001\u7c21\u5358\u306b\u30d3\u30eb\u30c9&amp;\u30c6\u30b9\u30c8\u304c\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3001cargo new &lt;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d&gt; \u3067\u3059\u3068\u3001cargo\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u7528\u610f\u3055\u308c\u308b\u306e\u3067\u3001cargo run \u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u305b\u3093\u3002\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308a\u305f\u3044\u3068\u304d\u306f\u3001<\/p>\n<pre class=\"post-pre\"><code>cargo new <span class=\"nt\">--bin<\/span> &lt;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d&gt;\r\n<span class=\"nb\">cd<\/span> &lt;\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d&gt;\r\ncargo run\r\n<span class=\"c\"># =&gt; Hello, world!<\/span>\r\n<\/code><\/pre>\n<p>\u3068\u3059\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<br \/>\n\u3067\u306f\u3001\u3053\u308c\u3092\u8e0f\u307e\u3048\u3066\u3001Atom \u306b\u3088\u308b\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Atom\u306b\u3088\u308b\u958b\u767a\u74b0\u5883\u69cb\u7bc9<\/h2>\n<h3>1. Atom\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>\u3053\u3053\u304b\u3089\u3001Atom\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<h3>2. apm\u3067\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"post-pre\"><code>apm <span class=\"nb\">install <\/span>language-rust\r\napm <span class=\"nb\">install <\/span>racer\r\napm <span class=\"nb\">install <\/span>linter\r\napm <span class=\"nb\">install <\/span>linter-rust\r\napm <span class=\"nb\">install <\/span>build\r\napm <span class=\"nb\">install <\/span>build-cargo\r\napm <span class=\"nb\">install <\/span>atom-ctags\r\n<\/code><\/pre>\n<p>Atom\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001apm\u30b3\u30de\u30f3\u30c9\u304c\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u5fc5\u305aAtom\u306f\u518d\u8d77\u52d5\u3055\u305b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>3. Rust\u306e\u30bd\u30fc\u30b9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>racer \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001Rust\u306e\u30b3\u30de\u30f3\u30c9\u5019\u88dc\u3092\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u3066\u3001\u30b3\u30de\u30f3\u30c9\u5019\u88dc\u306e\u5143\u30c7\u30fc\u30bf\u3068\u3057\u3066\u3001Rust\u306e\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cd<\/span> \/path\/to\/ <span class=\"c\"># \u597d\u304d\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a<\/span>\r\nwget https:\/\/static.rust-lang.org\/dist\/rustc-1.4.0-src.tar.gz\r\n<span class=\"nb\">tar <\/span>xzvf rustc-1.4.0-src.tar.gz\r\n<span class=\"nb\">rm<\/span> <span class=\"nt\">-f<\/span> rustc-1.4.0-src.tar.gz\r\n<\/code><\/pre>\n<p>\u89e3\u51cd\u307e\u3067\u7d42\u308f\u3063\u305f\u3089\u3001~\/.bashrc \u306b<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">export <\/span><span class=\"nv\">RUST_SRC_PATH<\/span><span class=\"o\">=<\/span>\/path\/to\/rustc-1.4.0\/src\r\n<\/code><\/pre>\n<p>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\/path\/to\/\u306e\u90e8\u5206\u306f\u3001rustc\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001Rust\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u65b0\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u516c\u5f0f\u30b5\u30a4\u30c8 \u306b\u3044\u3063\u3066\u78ba\u8a8d\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">source<\/span> ~\/.bashrc\r\n<\/code><\/pre>\n<p>~\/.bashrc \u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h3>4. racer\u3092\u5165\u308c\u308b<\/h3>\n<p>racer\u306f\u3001\u5b9f\u4f53\u3068\u3057\u3066\u306f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u3044\u3066\u3001apm\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306eracer\u304c\u3053\u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>cargo <span class=\"nb\">install <\/span>racer\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b63\u3057\u304f\u52d5\u3044\u3066\u3044\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b<\/p>\n<pre class=\"post-pre\"><code>racer <span class=\"nb\">complete <\/span>std::io::B\r\n<\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3046\u307e\u304f\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u306f RUST_SRC_PATH \u304c\u3046\u307e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001Atom\u304b\u3089racer\u3092\u4f7f\u3046\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Atom\u304b\u3089\u306f<\/p>\n<pre class=\"post-pre\"><code>Preferences &gt; Packages &gt; racer &gt; Settings\r\n<\/code><\/pre>\n<p>\u306e\u9806\u306b\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002Settings \u304c\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u3068\u304d\u306f\u4e00\u65e6Atom\u3092\u518d\u8d77\u52d5\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8a2d\u5b9a\u306f\u3001Path to the Racer executable \u306b racer\u3078\u306e\u30d5\u30eb\u30d1\u30b9\u3068\u3001Path to the Rust source code directory Rust\u306e\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u306b\u623b\u3063\u3066 pri \u307e\u3067\u6253\u3063\u3066 println \u7b49\u304c\u3067\u3066\u304d\u305f\u3089\u6210\u529f\u3067\u3059\u3002<\/p>\n<h3>5. Linter\u3092\u5165\u308c\u308b<\/h3>\n<p>Linter\u306f\u3001syntax\u306b\u9593\u9055\u3044\u304c\u3042\u308b\u3068\u3001\u3059\u3050\u306b\u30a8\u30e9\u30fc\u8868\u793a\u3057\u3066\u304f\u308c\u3066\u9593\u9055\u3044\u306b\u6c17\u4ed8\u304d\u3084\u3059\u304f\u306a\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b apm install \u3067linter\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306a\u306e\u3067\u3001\u7279\u306b\u7279\u5225\u306a\u8a2d\u5b9a\u306f\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h3>6. Build\u3059\u308b<\/h3>\n<p>\u6700\u521d\u306b apm install \u3067 build \u3068 build-cargo \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3053\u3068\u306b\u3088\u3063\u3066\u3001Atom\u4e0a\u304b\u3089build\u5b9f\u884c\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Shift + Ctrl(Cmd) + P \u3092\u62bc\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30d1\u30ec\u30c3\u30c8\u3092\u958b\u304d\u3001<br \/>\nbuild select \u3068\u6253\u3064\u3068\u3001\u3072\u3068\u3064\u306e\u30b3\u30de\u30f3\u30c9\u304c\u30b5\u30b8\u30a7\u30b9\u30c8\u3055\u308c\u308b\u306e\u3067\u3001\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u3001\u30d3\u30eb\u30c9\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u9078\u629e\u3067\u304d\u308b\u306e\u3067 cargo run \u3092\u9078\u629e\u3057\u307e\u3059\u3002(lib.rs\u306e\u5834\u5408\u306f cargo test \u3092\u9078\u629e\u3057\u307e\u3059)<\/p>\n<p>\u5f8c\u306f\u3001Alt + Ctrl(Cmd) + B \u3092\u62bc\u3059\u3053\u3068\u3067\u3001\u30d3\u30eb\u30c9\u3092\u884c\u3046\u4e8b\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h3>7. ctags\u3092\u4f7f\u3046<\/h3>\n<p>ctags\u306f\u3001\u30e1\u30bd\u30c3\u30c9\u3084\u69cb\u9020\u4f53\u304c\u5ba3\u8a00\u3055\u308c\u3066\u3044\u308b\u884c\u306b Ctrl(Cmd)+R \u3067\u30b8\u30e3\u30f3\u30d7\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002\u3053\u308c\u306f\u3001atom-ctags \u306e\u6a5f\u80fd\u3067\u3059\u304c\u3001Rust\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u3053\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u305b\u3093\u3002<\/p>\n<p>.ctags \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Preferences &gt; Open Config Folder\r\n<\/code><\/pre>\n<p>\u304b\u3089\u3001Config \u30d5\u30a9\u30eb\u30c0\u3092Atom\u3067\u958b\u304d\u307e\u3059\u3002<br \/>\nCtrl(Cmd) + P \u3092\u62bc\u3057\u3066\u3001.ctags \u3068\u5165\u529b\u3057\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>--langdef=Rust\r\n--langmap=Rust:.rs\r\n--regex-Rust=\/^[ \\t]*(#\\[[^\\]]\\][ \\t]*)*(pub[ \\t]+)?(extern[ \\t]+)?(\"[^\"]+\"[ \\t]+)?(unsafe[ \\t]+)?fn[ \\t]+([a-zA-Z0-9_]+)\/\\6\/f,functions,function definitions\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?type[ \\t]+([a-zA-Z0-9_]+)\/\\2\/T,types,type definitions\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?enum[ \\t]+([a-zA-Z0-9_]+)\/\\2\/g,enum,enumeration names\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?struct[ \\t]+([a-zA-Z0-9_]+)\/\\2\/s,structure names\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?mod[ \\t]+([a-zA-Z0-9_]+)\/\\2\/m,modules,module names\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?(static|const)[ \\t]+(mut[ \\t]+)?([a-zA-Z0-9_]+)\/\\4\/c,consts,static constants\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?(unsafe[ \\t]+)?trait[ \\t]+([a-zA-Z0-9_]+)\/\\3\/t,traits,traits\/\r\n--regex-Rust=\/^[ \\t]*(pub[ \\t]+)?(unsafe[ \\t]+)?impl([ \\t\\n]*&lt;[^&gt;]*&gt;)?[ \\t]+(([a-zA-Z0-9_:]+)[ \\t]*(&lt;[^&gt;]*&gt;)?[ \\t]+(for)[ \\t]+)?([a-zA-Z0-9_]+)\/\\5 \\7 \\8\/i,impls,trait implementations\/\r\n--regex-Rust=\/^[ \\t]*macro_rules![ \\t]+([a-zA-Z0-9_]+)\/\\1\/d,macros,macro definitions\/\r\n<\/code><\/pre>\n<p>\u3092\u30b3\u30d4\u30fc\u3057\u3066\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<p>rust\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u958b\u304b\u308c\u3066\u3044\u308bAtom\u30a6\u30a3\u30f3\u30c9\u30a6\u3078\u623b\u308a\u3001Shift + Ctrl(Cmd) + P \u3092\u62bc\u3057\u3066\u3001ctags rebuild \u3068\u5165\u529b\u3057\u3066\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u30b8\u30e3\u30f3\u30d7\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001Atom\u306b\u3088\u308bRust\u306e\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3067\u3001Rust\u8a00\u8a9e\u306b\u3088\u308b\u958b\u767a\u304c\u697d\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u7d9a\u3044\u3066\u3001SublimeText\u306b\u3088\u308b\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>SublimeText\u306b\u3088\u308b\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9<\/h2>\n<p>Atom\u540c\u69d8\u3001racer\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u3001Linter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306a\u3069\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>1. SublimeText\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>SublimeText\u306f\u6709\u6599\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306a\u306e\u3067\u3001\u30e9\u30a4\u30bb\u30f3\u30b9\u306e\u8cfc\u5165\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002\u8a66\u7528\u671f\u9593\u3082\u3042\u308b\u306e\u3067\u3001\u7121\u511f\u3067\u8a66\u3059\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h3>2. \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>SublimeText\u3092\u8d77\u52d5\u3057\u3001Shift + Ctrl(Command) + P \u3092\u62bc\u3057\u305f\u3042\u3068\u3001install \u3068\u5165\u529b\u3057\u3001\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3057\u3066\u4e0b\u8a18\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Rust\r\nRustAutoComplete\r\nSublimeLinter\r\nSublimeLinter-contrib-rustc\r\n<\/code><\/pre>\n<h3>3. Rust\u306e\u30bd\u30fc\u30b9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<p>racer \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u3001Rust\u306e\u30b3\u30de\u30f3\u30c9\u5019\u88dc\u3092\u8868\u793a\u3055\u305b\u308b\u305f\u3081\u306e\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u3066\u3001\u30b3\u30de\u30f3\u30c9\u5019\u88dc\u306e\u5143\u30c7\u30fc\u30bf\u3068\u3057\u3066\u3001Rust\u306e\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cd<\/span> \/path\/to\/ <span class=\"c\"># \u597d\u304d\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a<\/span>\r\nwget https:\/\/static.rust-lang.org\/dist\/rustc-1.4.0-src.tar.gz\r\n<span class=\"nb\">tar <\/span>xzvf rustc-1.4.0-src.tar.gz\r\n<span class=\"nb\">rm<\/span> <span class=\"nt\">-f<\/span> rustc-1.4.0-src.tar.gz\r\n<\/code><\/pre>\n<p>\u89e3\u51cd\u307e\u3067\u7d42\u308f\u3063\u305f\u3089\u3001~\/.bashrc \u306b<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">export <\/span><span class=\"nv\">RUST_SRC_PATH<\/span><span class=\"o\">=<\/span>\/path\/to\/rustc-1.4.0\/src\r\n<\/code><\/pre>\n<p>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\/path\/to\/\u306e\u90e8\u5206\u306f\u3001rustc\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001Rust\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u65b0\u3057\u304f\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u306e\u3067\u3001\u516c\u5f0f\u30b5\u30a4\u30c8 \u306b\u3044\u3063\u3066\u78ba\u8a8d\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089\u3001<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">source<\/span> ~\/.bashrc\r\n<\/code><\/pre>\n<p>~\/.bashrc \u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<h3>4. racer\u3092\u5165\u308c\u308b<\/h3>\n<p>racer\u306f\u3001\u5b9f\u4f53\u3068\u3057\u3066\u306f\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u3063\u3066\u3044\u3066\u3001RustAutoComplete \u304c racer \u3092\u547c\u3073\u51fa\u3059\u3088\u3046\u306a\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>cargo <span class=\"nb\">install <\/span>racer\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u3063\u305f\u3089\u3001\u6b63\u3057\u304f\u52d5\u3044\u3066\u3044\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b<\/p>\n<pre class=\"post-pre\"><code>racer <span class=\"nb\">complete <\/span>std::io::B\r\n<\/code><\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3046\u307e\u304f\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u306f RUST_SRC_PATH \u304c\u3046\u307e\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001SublimeText\u304b\u3089racer\u3092\u4f7f\u3046\u8a2d\u5b9a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>SublimeText\u304b\u3089\u306f\u3001<\/p>\n<pre class=\"post-pre\"><code>Preferences &gt; Package settings &gt; RustAutoComplete &gt; Settings - User\r\n<\/code><\/pre>\n<p>\u304b\u3089\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u8a2d\u5b9a\u306f\u3001JSON\u306b\u4f3c\u305f\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span>\r\n  <span class=\"c1\">\/\/ The full path to the racer binary. If racer is already<\/span>\r\n  <span class=\"c1\">\/\/ in your system path, then this default will be fine.<\/span>\r\n  <span class=\"dl\">\"<\/span><span class=\"s2\">racer<\/span><span class=\"dl\">\"<\/span><span class=\"p\">:<\/span> <span class=\"dl\">\"<\/span><span class=\"s2\">\/path\/to\/racer<\/span><span class=\"dl\">\"<\/span><span class=\"p\">,<\/span>\r\n\r\n  <span class=\"c1\">\/\/ A list of search paths. This should generally just<\/span>\r\n  <span class=\"c1\">\/\/ be the path to the rust compiler src\/ directory.<\/span>\r\n  <span class=\"dl\">\"<\/span><span class=\"s2\">search_paths<\/span><span class=\"dl\">\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">[<\/span>\r\n    <span class=\"dl\">\"<\/span><span class=\"s2\">\/path\/to\/rustc-1.4.0\/src<\/span><span class=\"dl\">\"<\/span>\r\n  <span class=\"p\">]<\/span>\r\n<span class=\"p\">}<\/span>\r\n\r\n<\/code><\/pre>\n<p>racer\u306e\u30d5\u30eb\u30d1\u30b9\u3068\u3001rust\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u304b\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\/path\/to\/ \u306f\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\nMac\u306e\u5834\u5408 \/Users\/\/.cargo\/bin\/racer \u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u306b\u623b\u3063\u3066 pri \u307e\u3067\u6253\u3063\u3066 println \u7b49\u304c\u3067\u3066\u304d\u305f\u3089\u6210\u529f\u3067\u3059\u3002<\/p>\n<h3>5. Linter\u3092\u5165\u308c\u308b<\/h3>\n<p>Linter\u306f\u3001syntax\u306b\u9593\u9055\u3044\u304c\u3042\u308b\u3068\u3001\u3059\u3050\u306b\u30a8\u30e9\u30fc\u8868\u793a\u3057\u3066\u304f\u308c\u3066\u9593\u9055\u3044\u306b\u6c17\u4ed8\u304d\u3084\u3059\u304f\u306a\u308b\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>SublimeText\u3067\u306f\u305d\u306e\u307e\u307e\u3067\u306f\u3046\u307e\u304fLinter\u306f\u52d5\u304b\u306a\u3044\u305f\u3081\u3001\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Preferences &gt; Package settings &gt; SublimeLinter &gt; Settings - User\r\n<\/code><\/pre>\n<p>\u958b\u304b\u308c\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u3067\u306b user &gt; linters \u306e\u6b04\u306b rust \u306e\u9805\u76ee\u304c\u3042\u308b\u3068\u3082\u3044\u307e\u3059\u304c\u3001\u305d\u3053\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>\"rust\": {\r\n    \"@disable\": false,\r\n    \"args\": [],\r\n    \"crate-root\": null,\r\n    \"excludes\": [],\r\n    \"use-cargo\": true,\r\n    \"use-crate-root\": false\r\n}\r\n<\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u3001 cargo \u3092\u4f7f\u7528\u3057\u306a\u3044\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001cargo\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u308b\u4f9d\u5b58\u95a2\u4fc2\u306e\u3042\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3046\u307e\u304f\u8a8d\u8b58\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u3053\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>SublimeText\u306f\u3001\u3053\u308c\u3067\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u304c\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u30a8\u30c7\u30a3\u30bf\u7d4c\u7531\u3067\u306e\u30d3\u30eb\u30c9\u3082\u53ef\u80fd\u3067\u3059\u304c\u3001\u4fbf\u5229\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001<br \/>\n\u30bf\u30fc\u30df\u30ca\u30eb\u7d4c\u7531\u3067\u5b9f\u884c\u3059\u308b\u306e\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<h3>6. rustfmt \u3092\u5165\u308c\u308b(2015-12-18\u8ffd\u8a18)<\/h3>\n<p>rustfmt \u306f\u3001rust\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3092\u81ea\u52d5\u7684\u306b\u4fee\u6b63\u3057\u3066\u304f\u308c\u308b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002Rust1.5\u304b\u3089cargo \u306b cargo install \u3068\u3044\u3046\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u305f\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u3068\u3066\u3082\u7c21\u5358\u306b\u884c\u3048\u308b\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"n\">cargo<\/span> <span class=\"n\">install<\/span> <span class=\"n\">rustfmt<\/span>\r\n<\/code><\/pre>\n<p>\u305f\u3063\u305f\u3053\u308c\u3060\u3051\u3067\u3059\u3002\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"post-pre\"><code>\/Users\/&lt;USERNAME&gt;.cargo\/bin\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u308f\u308b\u3068\u3001\u4e0a\u8a18\u306e\u74b0\u5883\u5909\u6570\u3092export\u3059\u308b\u3088\u3046\u306b\u8a00\u308f\u308c\u308b\u306e\u3067\u3001 ~\/.bashrc \u306bPATH\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306erustfmt\u3092\u3001SublimeText\u3067\u306f\u7c21\u5358\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>BeautifyRust<\/p>\n<p>\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u3001SublimeText\u4e0a\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001<\/p>\n<pre class=\"post-pre\"><code>Preferences &gt; Package settings &gt; BeautifyRust &gt; Settings - User\r\n<\/code><\/pre>\n<p>\u307e\u3067\u9077\u79fb\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>  {\r\n    \"run_on_save\": true,\r\n    \"rustfmt\": \"\/Users\/&lt;USERNAME&gt;.cargo\/bin\/rustfmt\"\r\n  }\r\n<\/code><\/pre>\n<p>\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5fc5\u8981\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\n\u3053\u3046\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001rust\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001\u30b3\u30fc\u30c9\u304c\u81ea\u52d5\u7684\u306b\u6574\u5f62\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fAtom\u3068SublimeText\u306b\u3088\u308b\u958b\u767a\u74b0\u5883\u306e\u69cb\u7bc9\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002Rust\u306f\u3001\u8a00\u8a9e\u81ea\u4f53\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\u304c\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u3066\u3068\u3066\u3082\u4fbf\u5229\u3060\u3068\u611f\u3058\u3066\u3044\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u3057\u305f\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u3066\u307f\u305f\u308a\u3059\u308b\u306e\u306b\u3001Rust\u306f\u3068\u3066\u3082\u304a\u624b\u8efd\u3067\u3001\u30d3\u30eb\u30c9\u3059\u308b\u3068\u3068\u3066\u3082\u5c0f\u3055\u3044\u5b9f\u884c\u5f62\u5f0f\u304c\u51fa\u6765\u308b\u306e\u3067\u305d\u308c\u3092\u305d\u306e\u307e\u307ecron\u306b\u4e57\u305b\u3066\u52d5\u304b\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f2015\u5e74\u6700\u5f8c\u306eRust\u3092\u304a\u697d\u3057\u307f\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>Rust\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc 2015<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306f Rust\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc5\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 Rust\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u307e\u30601\u3067\u306f\u306a\u304b\u3063\u305f\u9803\u3001\u7834\u58ca\u7684 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-44983","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\/44983-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u306f Rust\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc5\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 Rust\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u307e\u30601\u3067\u306f\u306a\u304b\u3063\u305f\u9803\u3001\u7834\u58ca\u7684 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-15T02:48:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T18:42:07+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/44983-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-01-15T02:48:34+00:00\",\"dateModified\":\"2024-04-29T18:42:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/44983-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\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/44983-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\/44983-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u3053\u306e\u8a18\u4e8b\u306f Rust\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc5\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 Rust\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u307e\u30601\u3067\u306f\u306a\u304b\u3063\u305f\u9803\u3001\u7834\u58ca\u7684 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-01-15T02:48:34+00:00","article_modified_time":"2024-04-29T18:42:07+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/44983-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-01-15T02:48:34+00:00","dateModified":"2024-04-29T18:42:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/44983-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\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/44983-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\/44983","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=44983"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44983\/revisions"}],"predecessor-version":[{"id":89195,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/44983\/revisions\/89195"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=44983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=44983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=44983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}