{"id":45006,"date":"2023-07-22T13:21:28","date_gmt":"2023-11-01T05:28:29","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/"},"modified":"2024-04-30T14:50:33","modified_gmt":"2024-04-30T06:50:33","slug":"45006-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eRust\u306f\u3001\u4f4e\u30ec\u30d9\u30eb\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u5411\u3051\u306b\u4f5c\u3089\u308c\u305f\u306c\u308b\u307d\u304c\u767a\u751f\u3057\u306a\u3044\u30e1\u30e2\u30ea\u30fc\u30bb\u30fc\u30d5\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u305d\u306e\u5229\u7528\u7bc4\u56f2\u306f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306b\u7559\u307e\u3089\u305a\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a\u3084\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u958b\u767a\u306a\u3069\u306b\u3082\u5e83\u304f\u4f7f\u308f\u308c\u306f\u3058\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eba\u6c17\u6025\u4e0a\u6607\u3067\u3059\u306d\u3002<\/p>\n<p>\u6700\u8fd1\u300c\u5b9f\u8df5Rust\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u300d\u3092\u5165\u624b\u3057\u3066\u52c9\u5f37\u3057\u3066\u3044\u307e\u3057\u3066\u3001Chapter8\u300c\u7d44\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u300d\u3067L\u30c1\u30ab\u306e\u304a\u984c(Cortex-M4)\u304c\u51fa\u3066\u304f\u308b\u306e\u3067\u3059\u304c\u3001Arduino\u3067\u3082Rust\u3067\u304d\u306a\u3044\u304b\u306a\u3068\u601d\u3044\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>MAC\u74b0\u5883\uff08Docker\u672a\u4f7f\u7528\uff09\u3067\u3001Rust\uff0bArduino\u3067L\u30c1\u30ab\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u7e8f\u3081\u3066\u3044\u307e\u3059\u3002<br \/>\n\u521d\u5fc3\u8005\u5411\u3051\u306b\u30b5\u30af\u3063\u3068\u5b9f\u884c\u3067\u304d\u308b\u69d8\u306b\u66f8\u3044\u305f\u3064\u3082\u308a\u3067\u3059\u3002<br \/>\n\u300c\u305d\u3046\u3044\u3048\u3070Arduino\u62bc\u5165\u308c\u3067\u7720\u3063\u3066\u308b\u308f\u300d\u3068\u3044\u3046\u65b9\u306f\u662f\u975e\u304a\u8a66\u3057\u4e0b\u3055\u3044\u3002<\/p>\n<h1>Arduino\u3067L\u30c1\u30ab<\/h1>\n<p>\u307e\u305a\u306fRust\u7121\u3057\u3067\u3001Arduino\u3092\u4f7f\u3063\u3066\u3075\u3064\u30fc\u306bL\u30c1\u30ab\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\uff08MAC\u3068Arduino\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30dd\u30fc\u30c8\u540d\u3092\u8abf\u3079\u308b\u70ba\u306a\u306e\u3067\u3001\u4e0d\u8981\u306a\u5834\u5408\u306f\u98db\u3070\u3057\u3066\u4e0b\u3055\u3044\uff09<\/p>\n<h2>Arduino IDE<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/7-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-09-06 17.11.18.png\" \/><\/div>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fzip\u3092\u89e3\u51cd\u3057\u3001Arduino.app\u3092\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u3053\u306e\u6642\u3001Arduino\u672c\u4f53\u306fUSB\u306b\u63a5\u7d9a\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/9-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-09-06 17.14.34.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/10-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-09-06 17.22.22.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/11-0.jpeg\" alt=\"L\u3066\u3099\u3059.jpg\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/12-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-09-06 17.31.17.png\" \/><\/div>\n<h1>Rust\uff0bArduino\u3067L\u30c1\u30ab<\/h1>\n<p>\u3053\u3053\u307e\u3067\u3067\u304a\u8179\u3044\u3063\u3071\u3044\u306b\u306a\u3089\u306a\u304b\u3063\u305f\u65b9\u306f\u3001\u7d9a\u3044\u3066Rust\u3092\u4f7f\u3063\u305fL\u30c1\u30ab\u306b\u30c8\u30e9\u30a4\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\nArduino-IDE\u306fRust\u306b\u5bfe\u5fdc\u3057\u3066\u304a\u3089\u305a\u3001cargo\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883\u69cb\u7bc9<\/h2>\n<h3>Rust<\/h3>\n<p>\u307e\u305a\u306fRust\u74b0\u5883\u3092MAC\u306b\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\uff08\u666e\u6bb5\u304b\u3089Rust\u3092\u4f7f\u3063\u3066\u3044\u308b\u306a\u3089\u4e0d\u8981\u3060\u3068\u601d\u3044\u307e\u3059\uff09\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/18-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2020-09-06 17.44.14.png\" \/><\/div>\n<pre class=\"post-pre\"><code>cargo\r\nrustup\r\nrustc\r\n<\/code><\/pre>\n<h3>avr-gcc<\/h3>\n<p>Arduino\u306b\u306f\u3001AVR\u30d5\u30a1\u30df\u30ea\u306e\u30de\u30a4\u30af\u30ed\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fcATmega\u30b7\u30ea\u30fc\u30ba\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\navr-gcc \u306f\u3001ATmega\u7528\u306e\u30b3\u30f3\u30d1\u30a4\u30e9\u3067\u3059\u3002\u5f8c\u8ff0\u306eblink\u3067\u30d3\u30eb\u30c9\u3059\u308b\u969b\u306b\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\uff08\u203b\u3053\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308c\u3070\u3001avr-gcc\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>brew tap osx-cross\/avr\r\nbrew install avr-gcc\r\n<\/code><\/pre>\n<h3>\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30e9\uff08Rust with AVR support\uff09<\/h3>\n<p>AVR\u3092Rust\u3067\u30d3\u30eb\u30c9\u3067\u304d\u308b\u69d8\u306b\u3059\u308b\u70ba\u3001Rust with AVR support\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<br \/>\nMAC\u7528\u306e\u624b\u9806\u306f\u30b3\u30c1\u30e9\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3067\u3059\u3002<\/p>\n<p>MAC\u3067\u306f\u30d3\u30eb\u30c9\u69cb\u6210\u90fd\u5408\u4e0a\u3001\u4e8b\u524d\u306b\u300c\/usr\/local\/avr-rust\u300d\u30d5\u30a9\u30eb\u30c0\u3092\u624b\u52d5\u3067\u4f5c\u6210\u3057\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u305d\u308c\u3089\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo mkdir \/usr\/local\/avr-rust &amp;&amp; sudo chown ${USER}:admin \/usr\/local\/avr-rust\r\n<\/code><\/pre>\n<p>\u307e\u305f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 coreutils \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u69d8\u3067\u3059\uff08\u79c1\u306f\u4e0d\u8981\u3067\u3057\u305f\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install coreutils\r\n<\/code><\/pre>\n<p>\u3067\u306f\u3001avr-toolchain\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\navr-rust\/rust.git\u3092clone\u3057\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3(&#8211;recursive)\u304c\u4ed8\u3044\u3066\u3044\u308b\u70b9\u306b\u6ce8\u610f\u3002<\/p>\n<pre class=\"post-pre\"><code># Grab the avr-rust sources\r\ngit clone https:\/\/github.com\/avr-rust\/rust.git --recursive\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092build\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code># Create a directory to place built files in\r\nmkdir build &amp;&amp; cd build\r\n<\/code><\/pre>\n<p>\u81ea\u4f5c\u3057\u305f\u30d5\u30a9\u30eb\u30c0build\u306f\u3001git clone\u3067\u751f\u6210\u3055\u308c\u305f\u30d5\u30a9\u30eb\u30c0\uff08rust\uff09\u3068\u540c\u968e\u5c64\u3067\u3042\u308b\u70b9\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n\u53c2\u8003\uff1a<br \/>\navr-rust<br \/>\n\u251c\u2500\u2500 build<br \/>\n\u2514\u2500\u2500 rust<\/p>\n<p>confiugre\u3067Makefile\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code># Generate Makefile using settings suitable for an experimental compiler\r\n..\/rust\/configure \\\r\n  --enable-debug \\\r\n  --disable-docs \\\r\n  --enable-llvm-assertions \\\r\n  --enable-debug-assertions \\\r\n  --enable-optimize \\\r\n  --enable-llvm-release-debuginfo \\\r\n  --experimental-targets=AVR \\\r\n  --prefix=\/usr\/local\/avr-rust\r\n<\/code><\/pre>\n<p>make\u3057\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u79c1\u306e\u74b0\u5883\u3067\u306f\u5c0f\u4e00\u6642\u9593\u304b\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"post-pre\"><code># Build the compiler, install it to \/usr\/local\/avr-rust\r\nmake\r\nmake install\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001make\u3055\u308c\u305favr-toolchain\u304c\u300c\/usr\/local\/avr-rust\u300d\u306b\u914d\u7f6e\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001avr-toolchain\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code># Register the toolchain with rustup\r\nrustup toolchain link avr-toolchain \/usr\/local\/avr-rust\r\n\r\n# Optionally enable the avr toolchain globally\r\nrustup default avr-toolchain\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001avr\u7528\u306eRust\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d3\u30eb\u30c9\u3067\u304d\u308b\u69d8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>avrdude<\/h3>\n<p>MAC\u3067\u30d3\u30eb\u30c9\u3057\u305fRust\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb(.elf\uff09\u3092Arduino\u306b\u66f8\u304d\u8fbc\u3080\u70ba\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u4f7f\u3048\u308b\u69d8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>brew install avrdude\r\n<\/code><\/pre>\n<h2>\u30d3\u30eb\u30c9(rust)<\/h2>\n<p>\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u516c\u5f0f\u30b5\u30f3\u30d7\u30eb\u300cblink\u300d\u3067L\u30c1\u30ab\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>blink\u30b5\u30f3\u30d7\u30eb\uff08ruduino\uff09<\/h3>\n<p>blink\uff08\u70b9\u6ec5\uff09\u306f\u3001ArduinoL\u3067\u30c1\u30ab\u7528\u306eRust\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002<br \/>\nATmega\u7528\u30e2\u30b8\u30e5\u30fc\u30eb(.elf)\u3092\u751f\u6210\u3059\u308b\u70ba\u306e\u74b0\u5883\u304c\u6574\u3063\u3066\u3044\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u30af\u30ed\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/avr-rust\/blink.git\r\n<\/code><\/pre>\n<p>\u30d5\u30a9\u30eb\u30c0\u300cblink\u300d\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u53c2\u8003\uff1a\u79c1\u306e\u74b0\u5883\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\navr-rust<br \/>\n\u251c\u2500\u2500 blink<br \/>\n\u251c\u2500\u2500 build<br \/>\n\u2514\u2500\u2500 rust<\/p>\n<p>\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u300cblink\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>cd ..\/blink\r\n<\/code><\/pre>\n<p>\u3067\u306f\u3001\u30d3\u30eb\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30d3\u30eb\u30c9\u306fnightly\u3067\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u70ba\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup override set nightly\r\n\r\n# Compile the crate to an ELF executable.\r\ncargo build -Z build-std=core --target avr-atmega328p.json --release\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u306b\u5931\u6557\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u3001\u518d\u3073\u30d3\u30eb\u30c9\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup component add rust-src\r\n<\/code><\/pre>\n<p>\u30d3\u30eb\u30c9\u306b\u6210\u529f\u3059\u308b\u3068\u3001\u300ctarget\/avr-atmega328p\/release\/blink.elf\u300d\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3092Arduino\u306b\u66f8\u304d\u8fbc\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>Arduino\u3078\u66f8\u304d\u8fbc\u3080<\/h2>\n<p>MAC\u304b\u3089Arduino\u3078\u66f8\u304d\u8fbc\u3080\u306b\u306f\u3001\u300cavrdude\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br \/>\n\uff08\u53c2\u8003\u30b5\u30a4\u30c8\uff09<\/p>\n<p>\u307e\u305a\u3001MAC\u3068Arduino\u304c\u7e4b\u304c\u3063\u3066\u3044\u308b\u30dd\u30fc\u30c8\u540d\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u30dd\u30fc\u30c8\u540d\u306e\u8abf\u3079\u65b9\u306f\u3001\u672c\u8a18\u4e8b\u306e\u4e0a\u8a18\u300cArduino\u3067L\u30c1\u30ab\u300d\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u300c\/dev\/cu.usbmodem141401\u300d\u3067\u3042\u308b\u3068\u3057\u3066\u8a71\u3092\u9032\u3081\u307e\u3059\u3002<\/p>\n<h3>Arduino\u3078\u66f8\u304d\u8fbc\u3080<\/h3>\n<p>Arduino\u304cMAC\u3068\u7e4b\u304c\u3063\u3066\u3044\u308b\u72b6\u614b\u3067\u3001\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\n\u300c-P\/dev\/cu.usbmodem141401\u300d\u306e\u90e8\u5206\u306f\u3001\u81ea\u5206\u306e\u74b0\u5883\u7528\u306b\u9069\u6642\u4fee\u6b63\u3057\u3066\u4f7f\u3063\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>avrdude -patmega328p -carduino -P\/dev\/cu.usbmodem141401 -b115200 -D -Uflash:w:target\/avr-atmega328p\/release\/blink.elf:e\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/68-1.gif\" alt=\"tenor.gif\" \/><\/div>\n<h2>blink\u3092\u6539\u9020\u3057\u3088\u3046<\/h2>\n<p>\u3057\u304b\u3057\u3001\u5148\u7a0b\u306e\u300cArduino\u3067L\u30c1\u30ab\uff08\u975eRust\uff09\u300d\u3068\u7d50\u679c\u304c\u540c\u3058\u3067\u5206\u304b\u308a\u306b\u304f\u3044\u3067\u3059\u3088\u306d\u3002<br \/>\n\u5c11\u3057\u6539\u9020\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>blink\/src\/main.rs\u3092\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u306b\u4e0a\u66f8\u304d\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>#![feature(llvm_asm)]\r\n\r\n#![no_std]\r\n#![no_main]\r\n\r\nuse ruduino::cores::atmega328 as avr_core;\r\nuse ruduino::Register;\r\n\r\nuse avr_core::{DDRB, PORTB};\r\n\r\n#[no_mangle]\r\npub extern fn main() {\r\n    let mut param = 0;\r\n\r\n    \/\/ Set all PORTB pins up as outputs\r\n    DDRB::set_mask_raw(0xFFu8);\r\n\r\n    loop {\r\n        \/\/ Set all pins on PORTB to high.\r\n        PORTB::set_mask_raw(0xFF);\r\n\r\n        small_delay(param);\r\n        \/\/ Set all pins on PORTB to low.\r\n        PORTB::unset_mask_raw(0xFF);\r\n\r\n        small_delay(param \/ 2);\r\n\r\n        param += 50000;\r\n        if param &gt;= 800000 {\r\n            param = 0;\r\n        }\r\n    }\r\n}\r\n\r\n\/\/\/ A small busy loop.\r\nfn small_delay(atai: u32) {\r\n    \/\/for _ in 0..400000 {\r\n    for _ in 0..atai {\r\n        unsafe { llvm_asm!(\"\" :::: \"volatile\")}\r\n    }\r\n}\r\n\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/73-0.gif\" alt=\"ezgif.com-resize.gif\" \/><\/div>\n<h1>\u65b9\u6cd5\u305d\u306e\uff12\uff08avr-hal\uff09<\/h1>\n<p>\u4eca\u5ea6\u306f\u3053\u306e\u4f8b\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u540c\u3058\u69d8\u306aL\u30c1\u30ab\u3067\u3059\u304c\u3001\u5b9f\u88c5\u65b9\u6cd5\u306e\u7570\u306a\u308b\u4f8b\u3067\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306e\u65b9\u304c\u3001\u3069\u3061\u3089\u304b\u3068\u3044\u3046\u3068\u300c\u5b9f\u8df5Rust\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u300d\u3067\u306e\u7d39\u4ecb\u4f8b(\u4f46\u3057\u3053\u3061\u3089\u306fArduino\u3067\u306f\u7121\u304fCortex-M4)\u306b\u8fd1\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u306e\u4f7f\u3044\u65b9\u306f\u3053\u306e\u30d6\u30ed\u30b0\u306b\u7e8f\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30d3\u30eb\u30c9\u74b0\u5883\u306fMAC\u3067\u306f\u306a\u304f Arch Linux \u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001MAC\u3067\u30d3\u30eb\u30c9\u3057\u3066L\u30c1\u30ab\u3067\u304d\u308b\u69d8\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>rust-arduino-blink<\/h2>\n<p>\u65e9\u901f\u30af\u30ed\u30fc\u30f3\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/creativcoder\/rust-arduino-blink.git\r\n<\/code><\/pre>\n<p>\u30d5\u30a9\u30eb\u30c0\u300crust-arduino-blink\u300d\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u203b\u53c2\u8003\uff1a\u3053\u306e\u6642\u70b9\u3067\u306e\u79c1\u306e\u74b0\u5883\u306f\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u3067\u3059\u3002<br \/>\navr-rust<br \/>\n\u251c\u2500\u2500 blink<br \/>\n\u251c\u2500\u2500 build<br \/>\n\u251c\u2500\u2500 rust<br \/>\n\u2514\u2500\u2500 rust-arduino-blink<\/p>\n<p>\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u300crust-arduino-blink\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>cd ..\/rust-arduino-blink\r\n<\/code><\/pre>\n<p>\u3053\u306e\u69cb\u6210\u306e\u7279\u5fb4\u306f\u3001\u30d5\u30a9\u30eb\u30c0\u300c.cargo\u300d\u306e\u4e2d\u306b\u300cconfig.toml\u300d\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u70b9\u3067\u3059\u3002<br \/>\n\u30d3\u30eb\u30c9\u6642\u306e\u5404\u7a2e\u8a2d\u5b9a\u304c\u66f8\u304b\u308c\u3066\u304a\u308a\u3001 cargo build \u6642\u306b\u4f59\u8a08\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u305a\u306b\u30d3\u30eb\u30c9\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3001\u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u306a\u300cpacman -S avr-gcc\u300d\u306a\u3069\u306fArchLinux\u3067\u306e\u65b9\u6cd5\u306a\u306e\u3067\u3053\u3053\u3067\u306f\u98db\u3070\u3057\u3066\u3044\u304d\u307e\u3059\uff08MAC\u3067\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5(brew)\u306f\u672c\u8a18\u4e8b\u306e\u4e0a\u306e\u65b9\u3067\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\uff09\u3002<\/p>\n<p>\u3055\u3063\u305d\u304f\u30d3\u30eb\u30c9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup override set nightly\r\n\r\ncargo build\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001target\u914d\u4e0b\uff08\u4eca\u5ea6\u306fdebug\uff09\u306b.elf\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u203b\u8ffd\u8a18\uff1a<br \/>\n\u30d3\u30eb\u30c9\u6642\u3001\u4e0b\u8a18\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u304c\u3042\u308b\u69d8\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>error: language item required, but not found: `eh_personality`\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306f\u3001rustup toolchain \u7b49\u306e\u8a2d\u5b9a\u306b\u3088\u308a\u8d77\u3053\u308b\u4e8b\u304c\u3042\u308b\u69d8\u306a\u306e\u3067\u3059\u304c\u3001\u5177\u4f53\u7684\u306a\u767a\u751f\u7406\u7531\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u305f\u3060\u3001\u767a\u751f\u3057\u305f\u969b\u306f\u3001Cargo.toml\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\u4e8b\u3067\u89e3\u6d88\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[profile.dev]\r\npanic = \"abort\"\r\n\r\n[profile.release]\r\npanic = \"abort\"\r\n<\/code><\/pre>\n<p>\u203b\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Arduino\u306b\u66f8\u304d\u8fbc\u3080\u70ba\u3001avrdude\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<br \/>\n\u203b\u30dd\u30fc\u30c8\u540d\u3092\u81ea\u5206\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u308b\u4e8b\u3068\u3001.elf\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u30d1\u30b9\u304c\u9055\u3046\u70b9\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>avrdude -patmega328p -carduino -P\/dev\/cu.usbmodem141401 -b115200 -D -Uflash:w:target\/avr-atmega328p\/debug\/rust-arduino-blink.elf:e\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/97-0.gif\" alt=\"\u30b3\u30ec\" \/><\/div>\n<p>\u203b\u3053\u3063\u3061\u306eL\u30c1\u30ab\u3082\u3001\u5b9f\u88c5\u306f\u9055\u3044\u307e\u3059\u304c\u70b9\u6ec5\u901f\u5ea6\u304c\u5f90\u3005\u306b\u9045\u304f\u306a\u308b\u611f\u3058\u306e\u3084\u3064\u3067\u3059\u3002\u70b9\u6ec5\u901f\u5ea6\u3084\u52d5\u304d\u3067\u9055\u3044\u3092\u611f\u3058\u3066\u4e0b\u3055\u3044\u3002L\u30c1\u30ab\u3067\u306f\u51fa\u6765\u308b\u4e8b\u306f\u9650\u3089\u308c\u307e\u3059\u3088\u306d\u301c?<\/p>\n<h1>\u74b0\u5883\u3092\u623b\u3059\u306b\u306f<\/h1>\n<p>avr\u3067\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u70ba\u306brustup\u30b3\u30de\u30f3\u30c9\u3067\u8272\u3005\u5909\u66f4\u3092\u52a0\u3048\u305f\u70ba\u3001\u3082\u3057\u304b\u3057\u305f\u3089Arduino\u4ee5\u5916\u306e\u666e\u901a\u306e\u30d3\u30eb\u30c9\u304c\u901a\u3089\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5143\u306b\u623b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff08\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5b9f\u884c\u3057\u3066\u4e0b\u3055\u3044\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup default stable\r\n<\/code><\/pre>\n<h1>\u307e\u3068\u3081<\/h1>\n<p>Rust\u3092\u4f7f\u3063\u3066Arduino\u3067L\u30c1\u30ab\u3059\u308b\u65b9\u6cd5\u3092\uff12\u3064\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30fb\uff11\u3064\u3081\uff08https:\/\/github.com\/avr-rust\/blink\uff09 \u2192 ruduino<br \/>\n\u30fb\uff12\u3064\u3081\uff08https:\/\/github.com\/creativcoder\/rust-arduino-blink\uff09 \u2192 avr-hal<\/p>\n<p>\u300c\u5b9f\u8df5Rust\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u300d(github)\u3067\u306f\u3001\uff12\u3064\u3081\u306e\u624b\u6cd5\u306b\u8fd1\u3044\u30b5\u30f3\u30d7\u30eb\u304c\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u304a\u305d\u3089\u304f\uff12\u3064\u3081\u306e\u624b\u6cd5\uff08avr-hal, .cargo\/config.toml\u3092\u4f7f\u7528\u3059\u308b\u4f8b\uff09\u304c\u4e00\u822c\u7684\uff08\uff1f\uff09\u306b\u306a\u308b\u306e\u304b\u306a\u3001\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u300c\u5b9f\u8df5Rust\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5165\u9580\u300d\u306eSection8-5\u300c\u7d44\u8fbc\u307f\u5411\u3051\u30af\u30ec\u30fc\u30c8\u300d\u3067\u306f\u3001\u7d44\u8fbc\u307f\u74b0\u5883\u3067\u4f7f\u3046\u30af\u30ec\u30fc\u30c8\uff08alloc, heapless, panic\u7b49\uff09\u306e\u89e3\u8aac\u304c\u7e8f\u3081\u3089\u308c\u3066\u3044\u3066\u3001L\u30c1\u30ab\u304b\u3089\u4e00\u6b69\u5148\u306b\u9032\u3080\u70ba\u306e\u60c5\u5831\u304c\u5f97\u3089\u308c\u3001Arduino\u89e3\u8aac\u3067\u306f\u306a\u3044\u3067\u3059\u304c\u3068\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u672c\u306f\u5165\u9580\u66f8\u3068\u3057\u3066\u306e\u8aad\u307f\u3084\u3059\u3055\u3082\u30d0\u30c4\u30b0\u30f3\u3067\u3059\u306e\u3067\u3001\u8208\u5473\u3042\u308b\u65b9\u306f\u5165\u624b\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<p>L\u30c1\u30ab\u5973\u5b50\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eRust\u306f\u3001\u4f4e\u30ec\u30d9\u30eb\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u5411\u3051\u306b\u4f5c\u3089\u308c\u305f\u306c\u308b\u307d\u304c\u767a\u751f\u3057\u306a\u3044\u30e1\u30e2\u30ea\u30fc\u30bb\u30fc\u30d5\u306a\u30d7\u30ed\u30b0\u30e9\u30df [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45006","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\/45006-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eRust\u306f\u3001\u4f4e\u30ec\u30d9\u30eb\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u5411\u3051\u306b\u4f5c\u3089\u308c\u305f\u306c\u308b\u307d\u304c\u767a\u751f\u3057\u306a\u3044\u30e1\u30e2\u30ea\u30fc\u30bb\u30fc\u30d5\u306a\u30d7\u30ed\u30b0\u30e9\u30df [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-01T05:28:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T06:50:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/7-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\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, \u9896\" \/>\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\/45006-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-01T05:28:29+00:00\",\"dateModified\":\"2024-04-30T06:50:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45006-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\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45006-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\/45006-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9eRust\u306f\u3001\u4f4e\u30ec\u30d9\u30eb\u306e\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u5411\u3051\u306b\u4f5c\u3089\u308c\u305f\u306c\u308b\u307d\u304c\u767a\u751f\u3057\u306a\u3044\u30e1\u30e2\u30ea\u30fc\u30bb\u30fc\u30d5\u306a\u30d7\u30ed\u30b0\u30e9\u30df [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-01T05:28:29+00:00","article_modified_time":"2024-04-30T06:50:33+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5c4f37434c4406cedd3f\/7-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45006-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-01T05:28:29+00:00","dateModified":"2024-04-30T06:50:33+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45006-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\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45006-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\/45006","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45006"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45006\/revisions"}],"predecessor-version":[{"id":92561,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45006\/revisions\/92561"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}