{"id":100,"date":"2026-05-10T16:13:18","date_gmt":"2026-05-10T08:13:18","guid":{"rendered":"https:\/\/blog.shufue.top\/?p=100"},"modified":"2026-05-10T16:13:18","modified_gmt":"2026-05-10T08:13:18","slug":"rust_emb%e5%bc%80%e5%a7%8b%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/blog.shufue.top\/?p=100","title":{"rendered":"[Rust_emb]\u5f00\u59cb\u5b9e\u8df5"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4f7f\u7528cargo-generate\u521b\u5efa\u6a21\u7248<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\u5b89\u88c5cargo-generate<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cargo install cargo-generate<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u751f\u6210\u4e00\u4e2a\u9879\u76ee<\/p>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"wp-block-code\"><code>cargo generate --git https:\/\/github.com\/knurling-rs\/app-template<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code> Project Name: app\n Creating project called `app`...\n Done! New project created \/tmp\/app<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>cd app<\/code><\/pre>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u914d\u7f6e\u6587\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e00\u6b65\u5728&nbsp;<code>.cargo\/config.toml<\/code>&nbsp;\u4e2d\u8bbe\u7f6e\u4e00\u4e2a\u9ed8\u8ba4\u7684\u7f16\u8bd1\u76ee\u6807\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Pick ONE of these compilation targets\n# target = \"thumbv6m-none-eabi\"    # Cortex-M0 and Cortex-M0+\n# target = \"thumbv7m-none-eabi\"    # Cortex-M3\n# target = \"thumbv7em-none-eabi\"   # Cortex-M4 and Cortex-M7 (no FPU)\ntarget = \"thumbv7em-none-eabihf\" # Cortex-M4F and Cortex-M7F (with FPU)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b2c\u4e8c\u6b65\u662f\u5c06\u5185\u5b58\u533a\u57df\u4fe1\u606f\u8f93\u5165\u5230&nbsp;<code>memory.x<\/code>&nbsp;\u6587\u4ef6\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Linker script for the STM32F303VCT6 *\/\nMEMORY\n{\n  \/* NOTE 1 K = 1 KiBi = 1024 bytes *\/\n  FLASH : ORIGIN = 0x08000000, LENGTH = 256K\n  RAM : ORIGIN = 0x20000000, LENGTH = 40K\n}<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u6ce8\u610f\uff1a\u5982\u679c\u4f60\u5728\u9996\u6b21<code>build<\/code>\u7279\u5b9a\u6784\u5efa\u76ee\u6807\u540e\uff0c\u51fa\u4e8e\u67d0\u79cd\u539f\u56e0\u66f4\u6539\u4e86&nbsp;<code>memory.x<\/code>&nbsp;\u6587\u4ef6\uff0c\u90a3\u4e48\u5728\u6267\u884c&nbsp;<code>cargo build<\/code>&nbsp;\u4e4b\u524d\u8981\u5148\u6267\u884c&nbsp;<code>cargo clean<\/code>&nbsp;\uff0c\u56e0\u4e3a&nbsp;<code>cargo build<\/code>&nbsp;\u53ef\u80fd\u65e0\u6cd5\u53ca\u65f6\u8ddf\u8e2a&nbsp;<code>memory.x<\/code>&nbsp;\u7684\u66f4\u65b0\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728&nbsp;<code>bin\/hello.rs<\/code>&nbsp;\u4e2d\u68c0\u67e5\u5185<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary><span style=\"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: -webkit-standard; font-size: medium; letter-spacing: normal; white-space: normal;\">\u4e0e\u539f\u6587\u5dee\u5f02\u539f\u56e0<\/span><\/summary>\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u5b8f<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>hprintln<\/code><\/td><td>\u65e7\u7248&nbsp;<code>cortex-m<\/code>&nbsp;\u7684\u6253\u5370\u5b8f\uff0c\u65b0\u7248\u672c\u5df2\u79fb\u9664<\/td><\/tr><tr><td><a href=\"vscode-file:\/\/vscode-app\/Applications\/Visual%20Studio%20Code.app\/Contents\/Resources\/app\/out\/vs\/code\/electron-browser\/workbench\/workbench.html\">defmt::println<\/a><\/td><td>\u65b0\u7248\u63a8\u8350\u4f7f\u7528\u7684\u6253\u5370\u5b8f\uff08\u901a\u8fc7 RTT \u8f93\u51fa\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u7684&nbsp;<a href=\"vscode-file:\/\/vscode-app\/Applications\/Visual%20Studio%20Code.app\/Contents\/Resources\/app\/out\/vs\/code\/electron-browser\/workbench\/workbench.html\">Cargo.toml<\/a>&nbsp;\u5df2\u7ecf\u5305\u542b&nbsp;<a href=\"vscode-file:\/\/vscode-app\/Applications\/Visual%20Studio%20Code.app\/Contents\/Resources\/app\/out\/vs\/code\/electron-browser\/workbench\/workbench.html\">defmt-rtt<\/a>\uff0c\u6240\u4ee5\u4f7f\u7528&nbsp;<a href=\"vscode-file:\/\/vscode-app\/Applications\/Visual%20Studio%20Code.app\/Contents\/Resources\/app\/out\/vs\/code\/electron-browser\/workbench\/workbench.html\">defmt::println<\/a>&nbsp;\u662f\u6b63\u786e\u9009\u62e9\u3002<\/p>\n<\/details>\n\n\n\n<pre class=\"wp-block-code\"><code>#!&#91;no_main]\n#!&#91;no_std]\n\nuse app as _; \/\/ global logger + panicking-behavior + memory layout\nuse cortex_m_rt::entry;\n\n#&#91;entry]\nfn main() -&gt; ! {\n    defmt::println!(\"Hello, world!\");\n\n    loop {}\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Memory Mapped Registers \u5185\u5b58\u6620\u5c04\u5bc4\u5b58\u5668<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5185\u5b58\u6620\u5c04\u5bc4\u5b58\u5668\uff08MMIO\uff09\uff1a\u628a\u786c\u4ef6\u8bbe\u5907\u201c\u62bd\u8c61\u6210\u5185\u5b58\u201d\uff0c\u8ba9 CPU \u7528\u666e\u901a\u7684\u8bfb\u5199\u6307\u4ee4\u5c31\u80fd\u63a7\u5236\u5916\u8bbe\u53ca\u901a\u8fc7\u201c\u5bf9\u7279\u5b9a\u5730\u5740\u7684\u8bfb\u5199\u201d\u6765\u8fdb\u884c\u63a7\u5236\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"578\" height=\"301\" src=\"https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/crates.png\" alt=\"\" class=\"wp-image-102\" srcset=\"https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/crates.png 578w, https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/crates-300x156.png 300w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n            \u2502         \u5e94\u7528\u5c42 (App)          \u2502\n            \u2502  main.rs \/ \u4e1a\u52a1\u903b\u8f91 \/ RTOS    \u2502\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b2\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                         \u2502 \u8c03\u7528 API\n            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n            \u2502        HAL \u5c42 (\u786c\u4ef6\u62bd\u8c61)      \u2502\n            \u2502  stm32f3xx-hal               \u2502\n            \u2502  GPIO \/ UART \/ SPI \/ I2C     \u2502\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b2\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                         \u2502 \u8c03\u7528\u5bc4\u5b58\u5668\n            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n            \u2502      PAC \u5c42 (\u5bc4\u5b58\u5668\u6620\u5c04)      \u2502\n            \u2502  stm32f3 (svd2rust \u751f\u6210)     \u2502\n            \u2502  RCC \/ GPIOx \/ USARTx        \u2502\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b2\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                         \u2502 CPU\u63a7\u5236 \/ \u6307\u4ee4\n            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n            \u2502 Micro-architecture \u5c42        \u2502\n            \u2502 cortex-m \/ cortex-m-rt       \u2502\n            \u2502 NVIC \/ SCB \/ asm \/ \u542f\u52a8\u903b\u8f91  \u2502\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u25b2\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n                         \u2502\n            \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510\n            \u2502        \u786c\u4ef6\u5c42 (MCU)          \u2502\n            \u2502  Cortex-M4 + Flash + RAM     \u2502\n            \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Micro-architecture crate\uff08CPU \u5c42\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u662f\u5e95\u5c42\u5bf9CPU\u7684\u4f4e\u7ea7\u8bbf\u95ee\uff0c\u662f\u5173\u4e8eCPU\u57fa\u7840\u884c\u4e3a\u5b9a\u4e49<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">cortex-m crate<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cortex-m-rt crate<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Peripheral Access Crate (PAC)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5730\u5740 + \u504f\u79fb \u7684\u7c7b\u578b\u5b89\u5168\u5c01\u88c5<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">stm32f3 crate<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">HAL Crate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u628a\u5bf9\u5bc4\u5b58\u5668\u76f4\u63a5\u7684\u64cd\u4f5c\u62bd\u8c61\u6210\u4e3a\u6613\u4e8e\u7406\u89e3\u7684API<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">stm32f3xx-hal crate<\/p>\n<\/blockquote>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u4f8b\u5b50<\/summary>\n<pre class=\"wp-block-code\"><code>let led = gpioa.pa5.into_push_pull_output();\nled.set_high();<\/code><\/pre>\n<\/details>\n\n\n\n<h3 class=\"wp-block-heading\">Board Crate<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&nbsp;\u6bd4 HAL Crate \u66f4\u8fdb\u4e00\u6b65\uff0c\u901a\u8fc7\u9884\u5148\u914d\u7f6e\u5404\u79cd\u5916\u8bbe\u548c GPIO \u5f15\u811a\u4ee5\u9002\u5e94\u4f60\u4f7f\u7528\u7684\u7279\u5b9a\u5f00\u53d1\u8005\u5957\u4ef6\u6216\u677f\uff0c\u4f8b\u5982\u7528\u4e8e STM32F3DISCOVERY \u677f\u7684 stm32f3-discovery\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/docs.rust-embedded.org\/book\/start\/semihosting.html#semihosting\">Semihosting<\/a>\u534a\u4e3b\u673a\u6a21\u5f0f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e2a\u4eba\u611f\u89c9\u4e0d\u5b9e\u7528\u53ef\u4ee5\u7528<strong><code><a href=\"https:\/\/defmt.ferrous-systems.com\/introduction\" data-type=\"link\" data-id=\"https:\/\/defmt.ferrous-systems.com\/introduction\">defmt<\/a><\/code><\/strong> \u4ee3\u66ff<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Panicking<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u662fRust\u8bed\u8a00\u7684\u6838\u5fc3\uff0c\u662f\u5185\u7f6e\u5728operation\u6216index\u4e2d\u7684\u7528\u6765\u4fdd\u8bc1\u5185\u5b58\u5b89\u5168\uff0c\u5f53\u5c1d\u8bd5\u8d8a\u754c\u65f6\u56de\u8fd4\u56depanic\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53 panic \u53d1\u751f\u65f6\uff0cRust \u4f1a\u56de\u6eaf\u5f53\u524d\u7ebf\u7a0b\u7684\u8c03\u7528\u6808\uff08\u9010\u5c42\u9000\u51fa\u51fd\u6570\u5e76\u6267\u884c\u6e05\u7406\uff09\uff0c\u9664\u975e\u4f60\u9009\u62e9\u8ba9\u7a0b\u5e8f\u5728 panic \u65f6\u76f4\u63a5\u7ec8\u6b62\uff08abort\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u4e3a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u9700\u6c42\u5dee\u5f02\u5f88\u5927\uff08\u4ece\u53ef\u4ee5\u5d29\u6e83\u5230\u7edd\u4e0d\u80fd\u5d29\u6e83\uff09\uff0c\u6240\u4ee5 <code>panic<\/code> \u7684\u5904\u7406\u65b9\u5f0f\u6ca1\u6709\u7edf\u4e00\u6807\u51c6\uff0c\u4f46\u5e38\u89c1\u7b56\u7565\uff08\u505c\u673a\u3001\u6253\u5370\u3001\u91cd\u542f\u7b49\uff09\u5df2\u7ecf\u88ab\u5c01\u88c5\u6210 <code>crate<\/code>\u5728<code>#[panic_handler]<\/code>\uff0c\u4f60\u53ea\u9700\u8981\u9009\u62e9\u5408\u9002\u7684<code> panic handler<\/code> \u5373\u53ef\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><code>panic-abort<\/code>&nbsp;. \u4e00\u4e2a<code>panic<\/code>\u4f1a\u5bfc\u81f4\u6267\u884c\u4e2d\u6b62\u6307\u4ee4\u76f4\u63a5\u505c\u6b62\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>panic-halt<\/code>&nbsp;. \u4e00\u4e2a<code>panic<\/code>\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u6216\u5f53\u524d\u7ebf\u7a0b\u901a\u8fc7\u8fdb\u5165\u65e0\u9650\u5faa\u73af\u800c\u505c\u6b62\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>panic-probe<\/code>&nbsp;. <code>panic<\/code>\u4fe1\u606f\u901a\u8fc7RTT\uff08\u5185\u5b58\u901a\u9053\uff09\u8fdb\u884c\u8f93\u51fa\u65e5\u5fd7\u8bb0\u5f55\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>panic-itm<\/code>&nbsp;. <code>panic<\/code>\u4fe1\u606f\u901a\u8fc7 ITM\uff08ARM Cortex-M \u7279\u5b9a\u5916\u8bbe\uff09\u8fdb\u884c\u8bb0\u5f55\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>panic-semihosting<\/code>&nbsp;. <code>painc<\/code>\u4fe1\u606f\u901a\u8fc7<code>semihosting<\/code>\u6280\u672f\u8bb0\u5f55\u5230\u4e3b\u673a\u4e0a\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u5728 <a href=\"https:\/\/crates.io\/keywords\/panic-handler\" data-type=\"link\" data-id=\"https:\/\/crates.io\/keywords\/panic-handler\">crates.io<\/a> \u4e0a\u641c\u7d22&nbsp;<code>panic-handler<\/code>&nbsp;\u5173\u952e\u8bcd\uff0c\u6216\u8bb8\u80fd\u627e\u5230\u66f4\u591a crate\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Exceptions\u4e0d\u60f3\u770b\u4e86<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f02\u5e38\u548c\u4e2d\u65ad\u662f\u5904\u7406\u5668\u63d0\u4f9b\u7684\u4e00\u79cd\u786c\u4ef6\u673a\u5236\uff0c\u7528\u6765\u5904\u7406\u5f02\u6b65\u4e8b\u4ef6\uff08\u6bd4\u5982\u5916\u8bbe\u4e2d\u65ad\uff09\u548c\u81f4\u547d\u9519\u8bef\uff08\u6bd4\u5982\u975e\u6cd5\u6307\u4ee4\uff09\u3002\u5f53\u8fd9\u4e9b\u4e8b\u4ef6\u53d1\u751f\u65f6\uff0cCPU \u4f1a\u62a2\u5360\u5f53\u524d\u6267\u884c\u6d41\u7a0b\uff0c\u8df3\u8f6c\u5230\u5bf9\u5e94\u7684\u5f02\u5e38\u5904\u7406\u51fd\u6570\uff08handler\uff09\u6765\u5904\u7406\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"1024\" src=\"https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/ChatGPT-Image-2026\u5e744\u670828\u65e5-23_37_20-683x1024.png\" alt=\"\" class=\"wp-image-105\" srcset=\"https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/ChatGPT-Image-2026\u5e744\u670828\u65e5-23_37_20-683x1024.png 683w, https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/ChatGPT-Image-2026\u5e744\u670828\u65e5-23_37_20-200x300.png 200w, https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/ChatGPT-Image-2026\u5e744\u670828\u65e5-23_37_20-768x1152.png 768w, https:\/\/blog.shufue.top\/wp-content\/uploads\/2026\/04\/ChatGPT-Image-2026\u5e744\u670828\u65e5-23_37_20.png 1024w\" sizes=\"auto, (max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Interrupts\u4e0d\u60f3\u770b\u4e86<\/h2>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528cargo-generate\u521b\u5efa\u6a21\u7248 \u9996\u5148\u5b89\u88c5cargo-generate \u751f\u6210\u4e00\u4e2a\u9879\u76ee \u914d\u7f6e\u6587\u4ef6 \u7b2c\u4e00\u6b65 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":4,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/blog.shufue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shufue.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}